Search API
search-apiSearch the web with the Desearch Search API and return ranked pages, each with its title, URL, publication date when known, and the passage that best matches the query. Set page_text to add each page's full text. Returns { results, cost_usd, usage_count, service, currency }. 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?' | |
| 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). |