diff --git a/README.md b/README.md index 8a325fdee..d70019483 100644 --- a/README.md +++ b/README.md @@ -1240,7 +1240,6 @@ Use `--tools ` to restrict available built-in tools. | `todo_write` | Phased task tracking with progress management | | `fetch` | Fetch and extract URL content | | `web_search` | Multi-provider web search | -| `deep_search` | AI-powered deep research with synthesized results (Exa) | | `write` | Create/overwrite files | | `generate_image` | Generate or edit images using Gemini image models | diff --git a/packages/coding-agent/src/sdk.ts b/packages/coding-agent/src/sdk.ts index 654802369..4c35a1a5d 100644 --- a/packages/coding-agent/src/sdk.ts +++ b/packages/coding-agent/src/sdk.ts @@ -1009,7 +1009,9 @@ export async function createAgentSession(options: CreateAgentSessionOptions = {} } // Add web search tools - customTools.push(...getSearchTools()); + if (options.toolNames?.includes("web_search")) { + customTools.push(...getSearchTools()); + } // Discover and load custom tools from .omp/tools/, .claude/tools/, etc. const builtInToolNames = builtinTools.map(t => t.name);