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

Function makeTool

desktop/src/features/agents/ui/agentSessionImageContent.test.mjs:13–30  ·  view source on GitHub ↗
(overrides = {})

Source from the content-addressed store, hash-verified

11};
12
13function makeTool(overrides = {}) {
14 return {
15 id: "tool:1",
16 type: "tool",
17 title: "view_image",
18 toolName: "view_image",
19 buzzToolName: null,
20 status: "completed",
21 args: {},
22 result: "",
23 isError: false,
24 timestamp: "2026-06-14T19:00:00.000Z",
25 startedAt: "2026-06-14T19:00:00.000Z",
26 completedAt: "2026-06-14T19:00:01.000Z",
27 descriptor: imageDescriptor,
28 ...overrides,
29 };
30}
31
32test("buildImageContent returns null for non image render class", () => {
33 assert.equal(

Calls

no outgoing calls

Tested by

no test coverage detected