MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / toolThen

Function toolThen

test-hook-integration.mjs:42–48  ·  view source on GitHub ↗
(name, args)

Source from the content-addressed store, hash-verified

40
41const sayThenEnd = (t) => function* () { yield { type: "text", text: t } }
42const toolThen = (name, args) =>
43 function* () {
44 yield {
45 type: "native_tool_calls",
46 toolCalls: [{ index: 0, id: "call_1", function: { name, arguments: JSON.stringify(args) } }],
47 }
48 }
49
50// A — PreToolUse exit-2 blocks REAL tool execution (the command never runs).
51{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected