MCPcopy Create free account
hub / github.com/arctic-cli/interface / formatValidationError

Function formatValidationError

packages/arctic/src/tool/batch.ts:22–31  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

20 .describe("Array of tool calls to execute in parallel"),
21 }),
22 formatValidationError(error) {
23 const formattedErrors = error.issues
24 .map((issue) => {
25 const path = issue.path.length > 0 ? issue.path.join(".") : "root"
26 return ` - ${path}: ${issue.message}`
27 })
28 .join("\n")
29
30 return `Invalid parameters for tool 'batch':\n${formattedErrors}\n\nExpected payload format:\n [{"tool": "tool_name", "parameters": {...}}, {...}]`
31 },
32 async execute(params, ctx) {
33 const { Session } = await import("../session")
34 const { Identifier } = await import("../id/id")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected