create Method

Look up a tool by toolId and, if found, create an instance with the supplied arguments.

create(toolId: string, ...args: any[]): Tool | undefined

@returns an instance of the registered Tool class, or undefined if toolId is not registered.

Parameter Type Description
toolId string the toolId of the tool
...args any[] arguments to pass to the constructor.

Returns - Tool | undefined

an instance of the registered Tool class, or undefined if toolId is not registered.

Defined in

Last Updated: 28 April, 2026