web_search
Search the web and get a ranked list of results with titles, URLs, snippets, and page dates. Supports site: filters, quoted phrases, freshness, and country or language targeting.
Instructions
Search the web and return a ranked list of results: title, url, snippet, and the page date when Brave knows one. One request per call; supports site: and quoted phrases. When you want the page content itself, use web_context instead.
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": "web_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Results to return (1-20, default 5); Brave may return fewer. | |
| query | Yes | The search query. | |
| country | No | Country code such as US, CN or ALL (default ALL). | |
| freshness | No | Age filter: pd (day), pw (week), pm (month), py (year), or YYYY-MM-DDtoYYYY-MM-DD. | |
| search_lang | No | Language code, e.g. en, zh-hans, de. Chinese queries default to zh-hans, others to en. |