Skip to content

applyRungAwareToolDescriptions

applyRungAwareToolDescriptions<T>(tools, options): T[]

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/config/tool-descriptions.ts:250

§4.5 — at tool-registration time, append the rung’s sentence to the description of every tool that is NOT auto-approved at that rung, and leave every granted tool’s description untouched.

Mutates in place (and returns the same array): the tools are about to be handed to createAgent/createDeepAgent, and the array is freshly resolved per init. Idempotent — any previously-appended suffix is stripped first, so re-registration at a different rung replaces the sentence rather than stacking one.

A tool with no name is left alone (provider-native “magic object” tools carry no name and cannot be classified); a tool with an empty description gets the suffix as its whole description rather than a leading space.

T extends DescribableTool

T[]

readonly string[]

"read-only" | "write" | "auto-safe" | "full-auto" | "bypass"

T[]