getTool

declare function getTool(toolName: ToolName): IAgentTool<Record<string, ToolValue>>;

Retrieves a tool schema by its name from the swarm's tool schema service. Logs the operation if logging is enabled in the global configuration.

Parameter Description
toolName The name of the tool to retrieve.