Deep Search
Overview
The search tool performs deep multi-round web research. It iteratively searches from multiple angles, fetches pages in parallel, chases the most-referenced external sources, and produces a structured research report.
Usage
Call search with a query and optional depth. The tool will:
- Round 1: Search the web using Perplexity Sonar (preferred) or other available engines
- Rounds 2+: Generate follow-up queries from different angles (time-qualified, subtopic-focused, controversy/analysis)
- Parallel fetch: Crawl all discovered URLs concurrently (8 connections)
- Reference chasing: Extract outbound links from crawled pages, fetch the most-cited external sources
- Report: Build a structured report with overview, source previews, and search query log
- Save: Everything saved under
./research/<query-slug>/
Parameters
- query (required, string): The research topic or question to investigate.
- depth (optional, integer, default: 2): Research depth:
1 = Quick: single search round + crawl (~1 min, up to 10 pages)
2 = Standard: 3 search rounds + reference chasing (~3 min, up to 30 pages)
3 = Thorough: 5 search rounds + aggressive link chasing (~5 min, up to 50 pages)
- max_results (optional, integer, default: 8): Number of search results per round (1-10).
- search_engine (optional, string): Preferred search engine. Options:
perplexity, duckduckgo, brave, you. Defaults to auto-detection (prefers Perplexity).
Example
{
"query": "AI regulations worldwide 2026",
"depth": 2
}
Output
Returns a structured research report including:
- Overview (initial search answer)
- Source details with inline previews (first 2000 chars of each page)
- List of all search queries used
- Summary with page count and save location
Use read_file on specific source files for full content when you need detailed synthesis.
Saved Files
Results are saved to ./research/<query-slug>/:
_<query-slug>.md -- structured research report (topic-named; leading _ keeps it out of read_sources' source-ingestion path on subsequent synthesis runs; see issue #897)
_search_results.md -- combined raw search results from all rounds
01_<domain>.md -- full page content from first source
02_<domain>.md -- full page content from second source
- etc.
Environment Variables
PERPLEXITY_API_KEY -- enables Perplexity Sonar (recommended, best for deep research)
BRAVE_API_KEY -- enables Brave Search
YDC_API_KEY -- enables You.com search
Without API keys, DuckDuckGo HTML search is used as fallback.
1---2name: deep-search3description: Deep Search4---56# Deep Search78## Overview910The `search` tool performs deep multi-round web research. It iteratively searches from multiple angles, fetches pages in parallel, chases the most-referenced external sources, and produces a structured research report.1112## Usage1314Call `search` with a query and optional depth. The tool will:15161. **Round 1**: Search the web using Perplexity Sonar (preferred) or other available engines172. **Rounds 2+**: Generate follow-up queries from different angles (time-qualified, subtopic-focused, controversy/analysis)183. **Parallel fetch**: Crawl all discovered URLs concurrently (8 connections)194. **Reference chasing**: Extract outbound links from crawled pages, fetch the most-cited external sources205. **Report**: Build a structured report with overview, source previews, and search query log216. **Save**: Everything saved under `./research/<query-slug>/`2223### Parameters2425- **query** (required, string): The research topic or question to investigate.26- **depth** (optional, integer, default: 2): Research depth:27 - `1` = Quick: single search round + crawl (~1 min, up to 10 pages)28 - `2` = Standard: 3 search rounds + reference chasing (~3 min, up to 30 pages)29 - `3` = Thorough: 5 search rounds + aggressive link chasing (~5 min, up to 50 pages)30- **max_results** (optional, integer, default: 8): Number of search results per round (1-10).31- **search_engine** (optional, string): Preferred search engine. Options: `perplexity`, `duckduckgo`, `brave`, `you`. Defaults to auto-detection (prefers Perplexity).3233### Example3435```json36{37 "query": "AI regulations worldwide 2026",38 "depth": 239}40```4142### Output4344Returns a structured research report including:45- Overview (initial search answer)46- Source details with inline previews (first 2000 chars of each page)47- List of all search queries used48- Summary with page count and save location4950Use `read_file` on specific source files for full content when you need detailed synthesis.5152### Saved Files5354Results are saved to `./research/<query-slug>/`:5556- `_<query-slug>.md` -- structured research report (topic-named; leading `_` keeps it out of `read_sources`' source-ingestion path on subsequent synthesis runs; see issue #897)57- `_search_results.md` -- combined raw search results from all rounds58- `01_<domain>.md` -- full page content from first source59- `02_<domain>.md` -- full page content from second source60- etc.6162### Environment Variables6364- `PERPLEXITY_API_KEY` -- enables Perplexity Sonar (recommended, best for deep research)65- `BRAVE_API_KEY` -- enables Brave Search66- `YDC_API_KEY` -- enables You.com search6768Without API keys, DuckDuckGo HTML search is used as fallback.