GatedToolSpec
@forge/monorepo / backend/src / GatedToolSpec
Type Alias: GatedToolSpec<I, O>
GatedToolSpec<
I,O> =Omit<ToolSpec<I,O>,"effect"|"approvalPolicy"|"requiresIdempotencyKey">
Defined in: backend/src/tools/define.ts:87
The spec a confirmation wrapper accepts — the three classification fields removed.
Removed rather than defaulted, so passing one is a compile error instead of a silent override. "Visible in
review" was the weaker version of this requirement: a reviewer reading confirms({ …, approvalPolicy: "never" })
has to notice a contradiction, and the type system can refuse it instead.
Type Parameters
I
I
O
O