Web Search
web_searchGeneral web search via the Brave index. Returns title, URL, description snippet, age, language, and site categories. Optional country, language, safesearch, and freshness filters.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"q": "best practices for machine learning"
},
"name": "web_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search query | |
| count | No | Results to return (1-20, default 10) | |
| offset | No | 0-9 page offset (default 0) | |
| country | No | 2-letter country code (e.g., "us", "gb") | |
| freshness | No | pd (past day) | pw (past week) | pm (past month) | py (past year) | YYYY-MM-DDtoYYYY-MM-DD | |
| safesearch | No | strict | moderate | off (default moderate) | |
| search_lang | No | 2-letter language (e.g., "en") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The original search query | |
| total | Yes | Total results available for the query | |
| altered | Yes | Altered query if Brave modified it, otherwise null | |
| results | Yes | Array of web search results | |
| returned | Yes | Number of results returned in this response |