Skip to content

@BindTool

The @BindTool(ToolClass, options?) method decorator ("@agboss/core") binds a method on a workflow provider class to a @Tool or @McpTool (optionally scoped to a specific @Agent via { agent: MyAgent }).

How to configure @BindTool options and signatures

Section titled “How to configure @BindTool options and signatures”
Parameter Type Required Description
tool Class | string Yes The @Tool / @McpTool class (or snake_case tool name string) handled or intercepted by this method.
options.agent Class | string No Optional @Agent class (or kebab-case agent name) restricting the binding to calls made by that specific agent.