Skip to content

stripRungToolDescriptionSuffix

stripRungToolDescriptionSuffix(description): string

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

Remove a previously-appended §4.5 suffix (any rung’s), returning the tool’s own description.

Makes applyRungAwareToolDescriptions idempotent and re-appliable at a different rung — which matters because a resolver may hand back the SAME tool instance on a re-init (an MCP client caches its tool objects), and a second pass would otherwise stack sentences.

string

string