You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When dynamic loading is active (#578), the model may need a tool that wasn't in the initial top-K. `mcp_load` is the escape hatch: the model calls it with a natural-language query, and Zoo Code attaches the matching tools to the next API turn.
New native tool definition `src/core/prompts/tools/native-tools/mcp_load.ts`: schema `{ query: string }`.
New tool handler `src/core/tools/mcpLoadTool.ts`: calls `ToolRouter.search(query, scopedTools, searchK)`, adds results to `Task.attachedMcpToolNames`, returns the newly attached tool names + one-line descriptions. Idempotent: re-attaching an already-attached tool returns the current list without churn.
Register `mcp_load` in the native tool list; include it in the API tools array whenever dynamic loading is active (i.e. threshold was exceeded).
Activity
[-][Story] W1.4b — mcp_load native tool (dynamic tool attachment escape hatch)[/-][+][Story] mcp_load native tool (dynamic tool attachment escape hatch)[/+]