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

Function getToolComponent

cli/src/components/tools/registry.ts:73–77  ·  view source on GitHub ↗
(
  toolName: ToolName,
)

Source from the content-addressed store, hash-verified

71 * @returns The tool component, or undefined if not registered
72 */
73export function getToolComponent(
74 toolName: ToolName,
75): ToolComponent | undefined {
76 return toolComponentRegistry.get(toolName)
77}
78
79/**
80 * Render a tool using its registered component, or return null for default rendering.

Callers 2

renderToolComponentFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected