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

Function tool_input_schema

server/src/server/tool_parser.cpp:407–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405 if (name.empty() || !args.is_object()) return false;
406 out_name = name;
407 out_args = args;
408 return true;
409}
410
411static bool is_ws(char c) {
412 return c == ' ' || c == '\t' || c == '\n' || c == '\r';
413}
414
415static bool span_covers_non_ws(const std::string & text, size_t start, size_t end) {
416 for (size_t i = 0; i < start; i++) {
417 if (!is_ws(text[i])) return false;
418 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected