Interface: AfterToolHookContext

Defined in: hooks/types.ts:266

Context for after:tool hook

Extends

Properties

durationMs

durationMs: number;

Defined in: hooks/types.ts:275

Duration of tool execution in milliseconds

input

input: Record<string, unknown>;

Defined in: hooks/types.ts:225

Input arguments for the tool

Inherited from

ToolHookContext.input

iteration

iteration: number;

Defined in: hooks/types.ts:28

Current iteration number (1-indexed)

Inherited from

ToolHookContext.iteration

metadata

metadata: Record<string, unknown>;

Defined in: hooks/types.ts:38

Custom metadata that can be passed between hooks

Inherited from

ToolHookContext.metadata

result

result: ToolExecutionResult;

Defined in: hooks/types.ts:270

Result from tool execution

sessionId

sessionId: string;

Defined in: hooks/types.ts:23

Current session ID

Inherited from

ToolHookContext.sessionId

signal?

optional signal?: AbortSignal;

Defined in: hooks/types.ts:33

Abort signal for cancellation

Inherited from

ToolHookContext.signal

toolName

toolName: string;

Defined in: hooks/types.ts:220

Name of the tool being executed

Inherited from

ToolHookContext.toolName