Sdk Execute Tool
Execute a tool via the SDK. Validates that the requested tool is in the scoped token's ``allowed_tools`` list (stored in ``api_key.scopes``), resolves the prefixed name to a server + tool, and delegates to the shared ``execute_tool`` function.
Authorization
User API Key User API key (mgw_usr_live_* or mgw_usr_test_*)
In: header
Cookie Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://loading/api/v1/sdk/tools/execute" \ -H "Content-Type: application/json" \ -d '{ "tool_name": "string" }'{
"result": null,
"tool_name": "string",
"duration_ms": 0,
"error": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Sdk Cache Set
Write to cache. Keys are auto-namespaced by ``user_id`` and ``skill_id`` to prevent cross-tenant leakage.
Sdk Search Tools
Search tools via the SDK. Delegates to the shared ``search_tools`` function. If the token has scoped ``allowed_tools``, results are post-filtered to only include those tools.
