AgentSearch Web Search
agentsearch_web_searchSearch the web for a query and return up to five ranked hits as pretty-printed JSON. Use it when you need links and snippets instead of page text.
Instructions
Search the web with AgentSearch and return the response as pretty-printed JSON text. Use this when you have a query and need hits rather than a page body; if you already have a URL, use agentsearch_extract instead (or agentsearch_render for JavaScript-heavy pages). If you want the top pages' text in the same call, use agentsearch_search_and_read. Free by default: with no configuration it uses the AgentSearch free tier (25 free searches per IP in total, then pay per call, subject to shared daily capacity, no payment), even if a wallet key is set for Extract/Render. Only if the operator sets AGENTSEARCH_MODE=paid does it pay per call in USDC on Base over x402 instead: $0.003 to AgentSearch's own x402 API by default, or $0.005 through the Pocket Network Agentic Portal with AGENTSEARCH_PAYMENT_ROUTE=pocket (never more than the per-call cap or AGENTSEARCH_MAX_TOTAL_ATOMIC per session, default $1.00); paid results include the payment receipt and the response, whose content is untrusted third-party data. If AGENTSEARCH_BASE_URL is set, it calls your self-hosted AgentSearch API instead (no payment). Read-only: not destructive, but it uses the network and can hit rate limits (on the free tier, a 429 means the 25 free searches per IP in total are used up or shared daily capacity is reached; the error says how to upgrade). Integers for max_results outside 1–5 are clamped (default 5), not rejected. Filters (freshness or date_from/date_to, country, language, include_domains, exclude_domains) apply on the paid direct route (AGENTSEARCH_MODE=paid); the free tier ignores them. For recent news articles use agentsearch_news_search.
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": "agentsearch_web_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Keywords or a natural-language question to search for (at least 2 characters). | |
| country | No | 2-letter ISO 3166-1 country code to localise results, e.g. us, gb, de. | |
| date_to | No | Latest publish date, YYYY-MM-DD. | |
| language | No | ISO 639-1 language, e.g. en, es or pt-BR. | |
| date_from | No | Earliest publish date, YYYY-MM-DD. | |
| freshness | No | Only results from the past day, week, month or year. Do not combine with date_from/date_to. | |
| max_results | No | How many hits to request (1–5, default 5). Values outside that range are clamped. | |
| exclude_domains | No | Never return results from these domains, up to 5. | |
| include_domains | No | Only return results from these domains (subdomains included), up to 5. |