research
Search the web, fetch top results, and synthesize them into a research brief with source references, replacing multiple search+fetch calls.
Instructions
One-shot research: search the web, fetch the top results, return both.
Best for:
- Open-ended questions that need finding sources AND reading them
("what's new with X", "summarize the controversy around Y").
- Replacing a `search` + N x `fetch` chain with one call.
- Producing a citable brief with [n]-style source references.
Not recommended for:
- You only need links -> `search` (cheaper, no fetching).
- You only need to read one URL you already have -> `fetch`.
- You want to query previously-fetched cached pages -> `cache_search`.
Returns:
- markdown (default): a "Research brief" with a Sources index then the
full Markdown body of each fetched document, separated by horizontal
rules; includes a token estimate.
- json: {question, engines, sources:[{rank,title,url,snippet,...}],
documents:[...], tokens_estimated, errors}.
Common mistakes:
- Using `depth=8` for a quick lookup — that's 8 page fetches; 2-3 is
almost always enough.
- Calling `research` for a known URL — that's `fetch` territory.
- Forgetting that `fetch=False` returns sources only (much cheaper if
the LLM only needs to pick which one to read).
Args:
question: What you want to know, in natural language.
depth: How many top results to fetch (1-8). 3 is a good default.
engines: Override the engine set (see `engines()` for names).
fetch: If False, return source list without reading them.
use_cache: Reuse cached search/page data within TTL.
max_age_hours: Treat cached search results older than this as a miss
(0 = force-refresh search; None = server default TTL).
format: "markdown" or "json".Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | ||
| depth | No | ||
| engines | No | ||
| fetch | No | ||
| use_cache | No | ||
| max_age_hours | No | ||
| freshness | No | ||
| include_domains | No | ||
| exclude_domains | No | ||
| category | No | ||
| include_text | No | ||
| exclude_text | No | ||
| format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |