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

Method addTool

packages/core/src/core/core.ts:881–885  ·  view source on GitHub ↗

* Tool management (delegated to RunHandler)

(
    tool: FrontendTool<T>,
  )

Source from the content-addressed store, hash-verified

879 * Tool management (delegated to RunHandler)
880 */
881 addTool<T extends Record<string, unknown> = Record<string, unknown>>(
882 tool: FrontendTool<T>,
883 ): void {
884 this.runHandler.addTool(tool);
885 }
886
887 removeTool(id: string, agentId?: string): void {
888 this.runHandler.removeTool(id, agentId);

Calls

no outgoing calls

Tested by 2

startMcpServerFunction · 0.36
startMcpServerFunction · 0.36