MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createToolBlock

Function createToolBlock

cli/src/utils/__tests__/collapse-helpers.test.ts:34–45  ·  view source on GitHub ↗
(
  toolCallId: string,
  isCollapsed?: boolean,
  userOpened?: boolean,
)

Source from the content-addressed store, hash-verified

32
33// Helper to create tool blocks
34const createToolBlock = (
35 toolCallId: string,
36 isCollapsed?: boolean,
37 userOpened?: boolean,
38): ContentBlock => ({
39 type: 'tool',
40 toolCallId,
41 toolName: 'read_files',
42 input: {},
43 isCollapsed,
44 userOpened,
45})
46
47// Helper to create agent blocks
48const createAgentBlock = (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected