MCPcopy Create free account
hub / github.com/continuedev/continue / getToolObject

Function getToolObject

core/tools/definitions/toolDefinitions.test.ts:16–23  ·  view source on GitHub ↗
(
    toolDefinition: Tool | GetTool,
  )

Source from the content-addressed store, hash-verified

14
15 // Helper function to get the actual tool object
16 const getToolObject = async (
17 toolDefinition: Tool | GetTool,
18 ): Promise<Tool> => {
19 if (typeof toolDefinition === "function") {
20 return toolDefinition(mockParams);
21 }
22 return toolDefinition;
23 };
24
25 it("should have all required parameters defined in properties for each tool", async () => {
26 const exportedTools = Object.values(toolDefinitions);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected