MCPcopy
hub / github.com/claude-code-best/claude-code / createToolUseMessage

Function createToolUseMessage

src/utils/messages.ts:4762–4770  ·  view source on GitHub ↗
(
  toolName: string,
  input: { [key: string]: string | number },
)

Source from the content-addressed store, hash-verified

4760}
4761
4762function createToolUseMessage(
4763 toolName: string,
4764 input: { [key: string]: string | number },
4765): UserMessage {
4766 return createUserMessage({
4767 content: `Called the ${toolName} tool with the following input: ${jsonStringify(input)}`,
4768 isMeta: true,
4769 })
4770}
4771
4772export function createSystemMessage(
4773 content: string,

Callers 1

Calls 2

createUserMessageFunction · 0.85
jsonStringifyFunction · 0.85

Tested by

no test coverage detected