web_context
Search the web and return extracted page content—passages, tables, and code—instead of links, so you can gather source material for a topic without a URL.
Instructions
Search the web and return the pages' extracted content - passages, tables, code - instead of links or snippets. Fast and cheap, and the best default when you need material on a topic but have no URL yet. max_tokens and max_urls control how much comes back; both are approximate budgets. Each source comes with its URL and its page date when Brave knows one.
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_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search query (1-400 characters, at most 50 words). | |
| country | No | Country code such as US or CN (default US). | |
| max_urls | No | Sources to return (1-50, default 20). | |
| freshness | No | Age filter: pd (day), pw (week), pm (month), py (year), or YYYY-MM-DDtoYYYY-MM-DD. | |
| threshold | No | Relevance filter: strict returns fewer but more relevant sources, lenient (default) returns more, disabled applies no filtering. | |
| max_tokens | No | Approximate context budget in tokens (1024-32768, default 8192). | |
| search_lang | No | Language preference, e.g. en, zh-hans (default en). |