websearch
Execute web searches with adjustable depth and result count to obtain information for code analysis and generation tasks.
Instructions
Perform web search using Codex CLI with web search enabled
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 | The search query to execute | |
| numResults | No | Number of search results to return (1-50, default: 10) | |
| searchDepth | No | Search depth: basic (faster) or full (deeper analysis, default: basic) |