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

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

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

Defined in

Last Updated: 08 January, 2020