ToolContext
Defined in: src/tools/tool.ts:12
Context provided to tool implementations during execution. Contains framework-level state and information from the agent invocation.
Properties
Section titled “Properties”toolUse
Section titled “toolUse”toolUse: ToolUse;Defined in: src/tools/tool.ts:17
The tool use request that triggered this tool execution. Contains the tool name, toolUseId, and input parameters.
agent: AgentData;Defined in: src/tools/tool.ts:23
The agent instance that is executing this tool. Provides access to agent state and other agent-level information.