Interface: ToolHookContext
Defined in: hooks/types.ts:216
Context for tool hooks
Extends
Extended by
Properties
input
input: Record<string, unknown>;
Defined in: hooks/types.ts:225
Input arguments for the tool
iteration
iteration: number;
Defined in: hooks/types.ts:28
Current iteration number (1-indexed)
Inherited from
metadata
metadata: Record<string, unknown>;
Defined in: hooks/types.ts:38
Custom metadata that can be passed between hooks
Inherited from
sessionId
sessionId: string;
Defined in: hooks/types.ts:23
Current session ID
Inherited from
signal?
optional signal?: AbortSignal;
Defined in: hooks/types.ts:33
Abort signal for cancellation
Inherited from
toolName
toolName: string;
Defined in: hooks/types.ts:220
Name of the tool being executed