MCPcopy Create free account
hub / github.com/arctic-cli/interface / tool

Function tool

packages/plugin/src/tool.ts:10–16  ·  view source on GitHub ↗
(input: {
  description: string
  args: Args
  execute(args: z.infer<z.ZodObject<Args>>, context: ToolContext): Promise<string>
})

Source from the content-addressed store, hash-verified

8}
9
10export function tool<Args extends z.ZodRawShape>(input: {
11 description: string
12 args: Args
13 execute(args: z.infer<z.ZodObject<Args>>, context: ToolContext): Promise<string>
14}) {
15 return input
16}
17tool.schema = z
18
19export type ToolDefinition = ReturnType<typeof tool>

Callers 2

ExamplePluginFunction · 0.90
resolveToolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected