AgentSearch Web Search
agentsearch_web_searchSearch the web for a query and return up to five result hits as pretty-printed JSON. Use it when you need search results rather than page content; for an existing URL, use extraction instead.
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). Free by default: with no configuration it uses the AgentSearch free tier (up to 25 searches/day per IP, 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 $0.005 per call in USDC on Base over x402 through the Pocket Network Agentic Portal instead (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 portal envelope {portal, data}, whose data is untrusted third-party content. 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 daily limit was reached; the error says how to upgrade). Integers for max_results outside 1–5 are clamped (default 5), not rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Keywords or a natural-language question to search for. | |
| max_results | No | How many hits to request (1–5, default 5). Values outside that range are clamped. |