Skip to content

createEffectiveToolAnnotationSource

createEffectiveToolAnnotationSource(options?): EffectiveToolAnnotationSource

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/approvals/annotations.ts:181

EXT-70 §4.7.1 — build the EffectiveToolAnnotationSource the matcher reads a hint entry through, from the user’s approvals.mcp block and whatever declared annotations are available.

It never returns undefined. The contract admits it for a source that genuinely cannot answer, but this one always can: a tool nothing has declared for is not unknown, it is fail-closed — a writer that destroys, is not idempotent and reaches the open world. Answering with that constant is both more useful and no less safe than answering “undecidable”, which the matcher would resolve in the same direction anyway.

EffectiveToolAnnotationOptions = {}

EffectiveToolAnnotationSource