Web Search
webSearchSearch the web and return ranked results with titles, URLs, descriptions, and sources.
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": "webSearch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query text, trimmed before sending, containing 1 to 1000 characters. | |
| country | No | Two-letter country code to search from, sent in lowercase. | us |
| numResults | No | Number of search results to request, as an integer from 10 to 100. Fewer results may be returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Parsed response JSON or text. | |
| error | No | ||
| headers | Yes | Response headers with credentials removed. | |
| status_code | Yes | Upstream HTTP status, or null for a network failure. |