MCPcopy Create free account
hub / github.com/block/buzz / makeTool

Function makeTool

desktop/src/features/agents/ui/agentSessionFileRead.test.mjs:16–33  ·  view source on GitHub ↗
(overrides = {})

Source from the content-addressed store, hash-verified

14};
15
16function makeTool(overrides = {}) {
17 return {
18 id: "tool:1",
19 type: "tool",
20 title: "read_file",
21 toolName: "read_file",
22 buzzToolName: null,
23 status: "completed",
24 args: { path: "src/App.tsx" },
25 result: "",
26 isError: false,
27 timestamp: "2026-06-14T19:00:00.000Z",
28 startedAt: "2026-06-14T19:00:00.000Z",
29 completedAt: "2026-06-14T19:00:01.000Z",
30 descriptor: baseDescriptor,
31 ...overrides,
32 };
33}
34
35test("buildFileReadContent returns null for non file-read render class", () => {
36 assert.equal(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected