MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getAgentToolName

Function getAgentToolName

packages/agent-runtime/src/templates/prompts.ts:37–39  ·  view source on GitHub ↗
(agentType: AgentTemplateType)

Source from the content-addressed store, hash-verified

35 * subagent calls. Agent IDs remain hyphenated; tool names use underscores.
36 */
37export function getAgentToolName(agentType: AgentTemplateType): string {
38 return getAgentShortName(agentType).replace(/-/g, '_')
39}
40
41/**
42 * Builds an input schema for an agent tool with prompt and params as top-level fields.

Callers 2

matchesAgentToolNameFunction · 0.90
buildAgentToolSetFunction · 0.85

Calls 1

getAgentShortNameFunction · 0.85

Tested by

no test coverage detected