MCPcopy Index your code
hub / github.com/CopilotKit/CopilotKit / registerRenderToolCall

Function registerRenderToolCall

packages/angular/src/lib/tools.ts:108–119  ·  view source on GitHub ↗
(renderToolCall: RenderToolCallConfig<Args>)

Source from the content-addressed store, hash-verified

106}
107
108export function registerRenderToolCall<
109 Args extends Record<string, unknown> = Record<string, unknown>,
110>(renderToolCall: RenderToolCallConfig<Args>): void {
111 const copilotKit = inject(CopilotKit);
112 const destroyRef = inject(DestroyRef);
113
114 copilotKit.addRenderToolCall(renderToolCall);
115
116 destroyRef.onDestroy(() => {
117 copilotKit.removeTool(renderToolCall.name, renderToolCall.agentId);
118 });
119}
120
121export function registerFrontendTool<
122 Args extends Record<string, unknown> = Record<string, unknown>,

Callers 1

constructorMethod · 0.90

Calls 2

addRenderToolCallMethod · 0.80
removeToolMethod · 0.45

Tested by 1

constructorMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…