Search API
search-apiWeb search on the Desearch index (POST /search). Returns ranked pages, each with its title, URL, publication date when known, and the passage that best matches the query. Set summary: true for a short answer written from the results with numbered citations; [n] in summary.text refers to summary.citations[].index. Set page_text to add each page's full text. Returns { summary, results, meta, cost_usd, usage_count, service, currency }, with summary first when requested; summary is null and meta.notices says 'Summary unavailable.' when it could not be written. Use search for titles and links only, and web-search for SERP-style snippets.
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": "search-api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'fast' returns results sooner; 'balanced' (API default) favors relevance. | |
| count | No | Number of results: 10 (API default), 15, or 20. | |
| query | Yes | Search query, example: 'Who won the 2024 Nobel Prize in Physics?' | |
| summary | No | Also return a short answer written from the results, with numbered citations (API default false). No extra charge. | |
| end_date | No | Only pages published on or before this date (YYYY-MM-DD). | |
| page_text | No | Include each page's full text (API default false). | |
| highlights | No | Include the passage that best matches the query (API default true). | |
| start_date | No | Only pages published on or after this date (YYYY-MM-DD). | |
| exclude_domains | No | Never pages on these domains or their subdomains (at most 1,200). Wins over include_domains and site:. | |
| include_domains | No | Only pages on these domains or their subdomains (at most 100), example: ['bbc.com', 'reuters.com'] |