Skip to content

ToolTimeoutError

Thrown by ctx.tool(...) when a tool declared needsApproval: true is denied by a human (the __approval signal resolves with approved: false). Catch it inside the calling flow action node to route gracefully (e.g. escalate or end).

  • Error
new ToolTimeoutError(toolName, timeoutMs): ToolTimeoutError;
Parameter Type

toolName

string

timeoutMs

number

ToolTimeoutError

Error.constructor
readonly timeoutMs: number;

readonly toolName: string;