We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2e531a commit ce5c46cCopy full SHA for ce5c46c
toolcall/handler.cpp
@@ -189,7 +189,7 @@ static mcp::tools_call_request tools_call_request_from_local_json(nlohmann::json
189
nlohmann::json j = json::parse(local_json);
190
mcp::tool_arg_list args;
191
for (const auto & [key, val] : j["parameters"].items()) {
192
- args.push_back({key, val.dump()});
+ args.push_back({key, val});
193
}
194
return mcp::tools_call_request(id, j["name"], args);
195
toolcall/mcp_messages.h
@@ -230,7 +230,7 @@ namespace mcp
230
231
struct tool_arg {
232
std::string name;
233
- std::string value;
+ nlohmann::json value;
234
};
235
236
using tool_arg_list = std::vector<tool_arg>;
0 commit comments