Exa Web Search
exa_searchSearch the web when you lack a URL, using filters for research papers, companies, people, news, X posts, and competitors; return cited synthesized answers or ranked results.
Instructions
Search the web with Exa. Use for discovery when you don't have a URL yet. Covers specialized searches through filters: research papers (category 'publication'), companies (category 'company', optionally subpages), people (category 'people'), news, posts on X (includeDomains ['x.com','twitter.com']), and competitors (describe the business, excludeDomains its own site). Set outputSchema for a synthesized, cited answer; set rerank for Voyage relevance ordering. Use answer_question for a direct answer to one question, code_search for code, web_fetch to read known URLs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "exa_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query | |
| rerank | No | Rerank with Voyage: fetch extra candidates, score them against the query, return the best numResults with scores. Needs VOYAGE_API_KEY | |
| category | No | Filter by content category. 'publication' = research papers and academic sources. 'company' and 'people' do not allow date filters or excludeDomains. | |
| subpages | No | Also crawl up to this many subpages per result (e.g. a company's about/pricing pages) | |
| objective | No | The broader goal behind the search, to improve relevance | |
| moderation | No | Filter unsafe content | |
| numResults | No | Number of search results to return (default: DEFAULT_NUM_RESULTS, 3) | |
| searchType | No | Search type: 'instant' (lowest latency), 'fast', 'auto' (default), 'deep-lite', 'deep' (multi-step, slower), 'deep-reasoning' (most thorough) | |
| excludeText | No | Deprecated by Exa: words that results should not contain (approximate, word-level matching) | |
| includeText | No | Deprecated by Exa: words that results should contain (approximate, word-level matching) | |
| maxAgeHours | No | Content freshness: 0 = always fetch fresh, -1 = cache only, 1-720 = max cache age in hours. Omit to use cache and fetch live only when nothing is cached. | |
| outputSchema | No | JSON Schema for a synthesized answer grounded in the results. Root type 'text' or 'object' (max 10 properties, 2 nesting levels). Adds ~2s. | |
| summaryQuery | No | Guide each result's summary with this question (implies includeSummary) | |
| systemPrompt | No | Extra instructions for the synthesized output | |
| userLocation | No | Two-letter ISO country code to localize results (e.g. 'US') | |
| includeExtras | No | Include embedded links and image links from each result | |
| subpageTarget | No | Keywords to pick which subpages to crawl (e.g. ['about', 'pricing']) | |
| summarySchema | No | JSON Schema for a structured summary per result (implies includeSummary) | |
| excludeDomains | No | Exclude results from these domains (e.g. a company's own domain when looking for its competitors) | |
| includeDomains | No | Only return results from these domains (e.g. ['x.com', 'twitter.com'] for posts on X; ['example.com'] for one company's site) | |
| includeSummary | No | Include an LLM-generated summary for each result | |
| highlightsQuery | No | Pick highlights relevant to this query (implies includeHighlights) | |
| includePageText | No | Include each result's page text, up to DEFAULT_MAX_CHARACTERS (default 3000) characters. Off by default: results carry highlights instead | |
| endPublishedDate | No | Only results published before this date (ISO 8601) | |
| livecrawlTimeout | No | Live crawl timeout in milliseconds (1-90000, Exa default 10000) | |
| rerankCandidates | No | With rerank: candidates to fetch before reranking (default 3 x numResults, max 100) | |
| additionalQueries | No | Extra query variations (deep search types only) | |
| includeHighlights | No | Include key excerpts from each result (default: on unless page text is requested) | |
| textMaxCharacters | No | Include page text up to this many characters per result (implies includePageText) | |
| startPublishedDate | No | Only results published after this date (ISO 8601) |