Skip to main content

Type Alias: ToolCallContext

ToolCallContext = object

Defined in: toolGate.ts:14

Full context passed to gates, buildContext, and onError on every tool invocation. Having all three fields in one object means gate callbacks can be both identity-aware and args-aware without multiple parameters.

Properties​

args​

args: Record<string, unknown>

Defined in: toolGate.ts:21

The validated tool input. Arg-conditional gates read this to vary their predicate per call.


handler​

handler: string

Defined in: toolGate.ts:23

Tool name, for error attribution and gate labelling.


identity​

identity: ToolIdentity

Defined in: toolGate.ts:16

The resolved caller identity.