stripRungToolDescriptionSuffix
stripRungToolDescriptionSuffix(
description):string
Defined in: core/dist/config/tool-descriptions.d.ts:128
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.
Parameters
Section titled “Parameters”description
Section titled “description”string
Returns
Section titled “Returns”string