HKUDS/DeepTutor · error · HTTPException
api.tool_not_found
Error message
api.tool_not_found
What it means
Sentinel 404 from POST /plugins/tools/{tool_name}/execute: the tool registry has no tool registered under tool_name, so the Playground test cannot execute it — the name (after plugin loading/registration) is unknown, not merely disabled.
Solutions
- List mounted tools via the registry endpoint to see exact registered names
- Enable or install the plugin that provides the tool, then retry
- Check for name typos or a stale name from an unloaded plugin
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at deeptutor/api/routers/plugins_api.py:120 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of HKUDS/DeepTutor@3e82f13042 (2026-08-27).
Data as JSON: /api/errors/41ca1fdb1a4ce998.
Report an issue: GitHub.
Appendix: source
Thrown at deeptutor/api/routers/plugins_api.py:120
"author": plugin.author,
}
for plugin in plugin_manifests
]
return {
"tools": tools,
"capabilities": capabilities,
"plugins": plugins,
}
@router.post("/tools/{tool_name}/execute")
async def execute_tool(tool_name: str, body: ToolExecuteRequest):
"""Execute a single tool with explicit parameters (for Playground testing)."""
registry = get_tool_registry()
tool = registry.get(tool_name)
if not tool:
raise HTTPException(status_code=404, detail=t("api.tool_not_found", name=tool_name))
try:
result = await tool.execute(**body.params)
return {
"success": result.success,
"content": result.content,
"sources": result.sources,
"metadata": result.metadata,
}
except Exception as exc:
logger.exception("Tool execution failed: %s", tool_name)
raise HTTPException(status_code=500, detail=str(exc))
def _sse(event: str, payload: dict[str, Any]) -> str:
return f"event: {event}\ndata: {json.dumps(payload, ensure_ascii=False, default=str)}\n\n"
View on GitHub (pinned to 3e82f13042)