Skip to content

Documentation / @agentick/shared / ToolResult

Interface: ToolResult ​

Defined in: tools.ts:113

Tool result - represents the result of a tool execution.

Used in stream events and execution tracking.

Properties ​

content ​

content: ContentBlock[]

Defined in: tools.ts:123

Result content (tool results are ContentBlock[] for rich output)


error? ​

optional error: string

Defined in: tools.ts:125

Error message if success is false


executedBy? ​

optional executedBy: ToolExecutor

Defined in: tools.ts:127

Who executed this tool


id? ​

optional id: string

Defined in: tools.ts:115

Optional unique ID for the result itself


metadata? ​

optional metadata: object

Defined in: tools.ts:131

Execution metadata for observability.

Index Signature ​

[key: string]: unknown

cacheHit? ​

optional cacheHit: boolean

executionTimeMs? ​

optional executionTimeMs: number

retryCount? ​

optional retryCount: number


name ​

name: string

Defined in: tools.ts:119

Tool name


success ​

success: boolean

Defined in: tools.ts:121

Whether execution succeeded


toolUseId ​

toolUseId: string

Defined in: tools.ts:117

ID of the tool call this result is for (matches ToolCall.id)

Released under the ISC License.