Strands Agents Typescript SDK
    Preparing search index...

    Interface ToolContext

    Context provided to tool implementations during execution. Contains framework-level state and information from the agent invocation.

    interface ToolContext {
        toolUse: ToolUse;
        agent: AgentData;
    }
    Index

    Properties

    Properties

    toolUse: ToolUse

    The tool use request that triggered this tool execution. Contains the tool name, toolUseId, and input parameters.

    agent: AgentData

    The agent instance that is executing this tool. Provides access to agent state and other agent-level information.