MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / include_preceding_tool_call_open

Function include_preceding_tool_call_open

server/src/server/tool_parser.cpp:128–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127 // object / array — try JSON parse
128 if (ptype == "object" || ptype == "array") {
129 try { return json::parse(val); } catch (...) { return val; }
130 }
131
132 // fallback: try JSON parse, then return as string
133 try { return json::parse(val); } catch (...) { return val; }
134}
135
136// ─── Removal tracking ───────────────────────────────────────────────────
137
138struct Span {
139 size_t start, end;

Callers 1

parse_tool_callsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected