MCPcopy
hub / github.com/AstrBotDevs/AstrBot / list_tools

Function list_tools

astrbot/dashboard/api/tools.py:181–185  ·  view source on GitHub ↗
(
    _auth: AuthContext = Depends(require_tool_scope),
    service: ToolsService = Depends(get_service),
)

Source from the content-addressed store, hash-verified

179
180@router.get("/tools")
181async def list_tools(
182 _auth: AuthContext = Depends(require_tool_scope),
183 service: ToolsService = Depends(get_service),
184):
185 return await _run(service.get_tool_list)
186
187
188@router.patch("/tools/{tool_id:path}/enabled")

Callers

nothing calls this directly

Calls 1

_runFunction · 0.70

Tested by

no test coverage detected