MCPcopy Index your code
hub / github.com/simstudioai/sim / stripCustomToolPrefix

Function stripCustomToolPrefix

apps/sim/executor/constants.ts:474–478  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

472}
473
474export function stripCustomToolPrefix(name: string): string {
475 return name.startsWith(AGENT.CUSTOM_TOOL_PREFIX)
476 ? name.slice(AGENT.CUSTOM_TOOL_PREFIX.length)
477 : name
478}
479
480export function stripMcpToolPrefix(name: string): string {
481 return name.startsWith(MCP.TOOL_PREFIX) ? name.slice(MCP.TOOL_PREFIX.length) : name

Callers 5

groupToolCallsByNameFunction · 0.90
formatToolCallMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected