Strands Agents Typescript SDK
    Preparing search index...

    Interface ToolResultBlockData

    Data for a tool result block.

    interface ToolResultBlockData {
        toolUseId: string;
        status: "success" | "error";
        content: ToolResultContentData[];
        error?: Error;
    }

    Implemented by

    Index

    Properties

    toolUseId: string

    The ID of the tool use that this result corresponds to.

    status: "success" | "error"

    Status of the tool execution.

    content: ToolResultContentData[]

    The content returned by the tool.

    error?: Error

    The original error object when status is 'error'. Available for inspection by hooks, error handlers, and event loop. Tools must wrap non-Error thrown values into Error objects.