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

Function makeTool

desktop/src/features/agents/ui/agentSessionToolSummary.test.mjs:8–24  ·  view source on GitHub ↗
(overrides = {})

Source from the content-addressed store, hash-verified

6const baseTimestamp = "2026-06-14T19:00:00.000Z";
7
8function makeTool(overrides = {}) {
9 return {
10 id: "tool:1",
11 type: "tool",
12 title: "Tool call",
13 toolName: "shell",
14 buzzToolName: null,
15 status: "completed",
16 args: {},
17 result: "",
18 isError: false,
19 timestamp: baseTimestamp,
20 startedAt: baseTimestamp,
21 completedAt: "2026-06-14T19:00:01.000Z",
22 ...overrides,
23 };
24}
25
26test("buildCompactToolSummary formats Buzz send_message preview", () => {
27 const summary = buildCompactToolSummary(

Calls

no outgoing calls

Tested by

no test coverage detected