Web search
web_searchGeneral web search. mode=index searches AgentWeb's own indexed pages with a short time budget; mode=hybrid also queries external sources (the default). Returns the top web results (title, URL, snippet) for a query as a short numbered list: general web pages, not just businesses. Use for research, finding pages, and current info. Add site:docs.python.org to the query to search one site. Pair with web_fetch to read a result.
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": {
"q": "<q>"
},
"name": "web_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search query | |
| num | No | Number of results (default 10, max 20) | |
| mode | No | hybrid | |
| format | No | text (default) is short and readable. json is the full API response. | text |
| snippet_chars | No | Length of each snippet in mode=index (default 240). A longer snippet often answers the question without a fetch |