MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / tool

Function tool

packages/plugins/apps/src/pipeline/publish.test.ts:14–22  ·  view source on GitHub ↗
(description = "Tool")

Source from the content-addressed store, hash-verified

12const file = (path: string, body: string) => ({ path, bytes: encoder.encode(body) });
13
14const tool = (description = "Tool") => `
15 import { z } from "zod";
16 import { defineTool } from "executor:app";
17 export default defineTool({
18 description: ${JSON.stringify(description)},
19 input: z.object({ value: z.string() }),
20 handler(input) { return input; },
21 });
22`;
23
24const makeMemoryStore = (): AppsStore & {
25 readonly rows: Map<string, unknown>;

Callers 1

publish.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected