MCPcopy Index your code
hub / github.com/anomalyco/opencode / runInvalid

Function runInvalid

packages/opencode/src/cli/cmd/run/tool.ts:426–433  ·  view source on GitHub ↗
(p: ToolProps<typeof InvalidTool>)

Source from the content-addressed store, hash-verified

424}
425
426function runInvalid(p: ToolProps<typeof InvalidTool>): ToolInline {
427 return {
428 icon: "✗",
429 title: text(p.frame.state.title) || "Invalid Tool",
430 mode: "block",
431 body: p.frame.status === "completed" ? text(p.frame.state.output) : undefined,
432 }
433}
434
435function runBatch(p: ToolProps): ToolInline {
436 const calls = list(dict(p.input).tool_calls).length

Callers

nothing calls this directly

Calls 1

textFunction · 0.70

Tested by

no test coverage detected