Strands Agents Typescript SDK
    Preparing search index...

    Class ToolResultBlock

    Tool result content block.

    Implements

    Index

    Constructors

    Properties

    type: "toolResultBlock" = ...

    Discriminator for tool result content.

    toolUseId: string

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

    status: "success" | "error"

    Status of the tool execution.

    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.