MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getBuiltInCommand

Function getBuiltInCommand

src/services/command/built-in-commands.ts:306–318  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

304 * Get a specific built-in command by name
305 */
306export async function getBuiltInCommand(name: string): Promise<Command | undefined> {
307 const cmd = BUILT_IN_COMMANDS[name]
308 if (!cmd) return undefined
309
310 return {
311 name: cmd.name,
312 content: cmd.content,
313 source: "built-in" as const,
314 filePath: `<built-in:${name}>`,
315 description: cmd.description,
316 argumentHint: cmd.argumentHint,
317 }
318}
319
320/**
321 * Get names of all built-in commands

Callers 2

getCommandFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected