MCPcopy Create free account
hub / github.com/Noumena-Network/code / getCommandDescription

Function getCommandDescription

src/tools/SkillTool/prompt.ts:44–51  ·  view source on GitHub ↗
(cmd: Command)

Source from the content-addressed store, hash-verified

42}
43
44function getCommandDescription(cmd: Command): string {
45 const desc = cmd.whenToUse
46 ? `${cmd.description} - ${cmd.whenToUse}`
47 : cmd.description
48 return desc.length > MAX_LISTING_DESC_CHARS
49 ? desc.slice(0, MAX_LISTING_DESC_CHARS - 1) + '\u2026'
50 : desc
51}
52
53function formatCommandDescription(cmd: Command): string {
54 // Debug: log if userFacingName differs from cmd.name for plugin skills

Callers 2

formatCommandDescriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected