MCPcopy Create free account
hub / github.com/cloudflare/mcp / toolError

Function toolError

src/tools/non-codemode.ts:130–132  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

128}
129
130function toolError(message: string): CallToolResult {
131 return { content: [{ type: 'text', text: message }], isError: true }
132}
133
134function toWireTool(tool: NonCodemodeTool): Tool {
135 const { name, title, description, inputSchema } = tool

Callers 3

registerNonCodemodeToolsFunction · 0.85
callNonCodemodeToolFunction · 0.85
validationErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected