ToolResultBlockData
Defined in: src/types/messages.ts:217
Data for a tool result block.
Properties
Section titled “Properties”toolUseId
Section titled “toolUseId”toolUseId: string;Defined in: src/types/messages.ts:221
The ID of the tool use that this result corresponds to.
status
Section titled “status”status: "success" | "error";Defined in: src/types/messages.ts:226
Status of the tool execution.
content
Section titled “content”content: ToolResultContentData[];Defined in: src/types/messages.ts:231
The content returned by the tool.
error?
Section titled “error?”optional error: Error;Defined in: src/types/messages.ts:238
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.