import type { ToolRegistry } from '../index.js'; import type { MCPRegistryHandle } from './mcp-control.js'; import type { Tool } from '../types/tool.js'; /** * `mcp_use` — meta-tool for ephemeral MCP tool calls in token-saving mode. * * Instead of the 4-step manual cycle (list → activate → use → deactivate), * the model calls this single tool. It: * 1. Activates the server's tools in the registry * 2. Calls the requested tool with the provided input * 3. Returns the result * 4. Deactivates the server's tools * * The tool is registered only when features.lazyMcp is active so the model * always has a way to reach MCP tools without them being in the prompt. */ export interface CreateMcpUseToolOptions { /** Live MCP registry handle (activate/deactivate/describe). */ registry: MCPRegistryHandle; /** Tool registry — needed to resolve and call MCP tools by name. */ toolRegistry: ToolRegistry; } export declare function createMcpUseTool(opts: CreateMcpUseToolOptions): Tool; //# sourceMappingURL=mcp-use.d.ts.map