Search the web
/web_searchSearch the web and optionally return page content or relevant passages with each result.
- Finished calls, last 7 days
- 0
Cancellations excluded. Execution times cover successful calls.
Use it with your agent
Set up https://www.agentrouter.to/SKILL.md, then use Context.dev’s /web_search endpoint through AgentRouter.
Inputs
queryRequired- Search query. Accepts natural language as well as Google-style search operators such as `site:`, `-site:`, `inurl:`, `intitle:`, quoted phrases, and `OR`.
numResultsOptional- Number of results to request and return (1–100). Defaults to 10.
includeDomainsOptional- Allowlist — only return results from these domains. Up to 100 domains. Example: ["arxiv.org", "github.com"].
excludeDomainsOptional- Blocklist — drop results from these domains. Up to 100 domains. Example: ["pinterest.com", "reddit.com"].
freshnessOptional- Restrict results to content published within this window.
countryOptional- Two-letter ISO 3166-1 alpha-2 country code to localize results to a specific country (maps to Google's `gl` parameter). Example: "us", "gb", "de".
languagesOptional- Languages to return results in, as BCP 47 language codes such as `en` or `de`, or "all" for any language. Defaults to "all". Example: ["en", "de"].
queryFanoutOptional- Currently has no effect.
markdownOptionsOptional- Inline Markdown scraping for each result. Set `enabled: true` to activate.
highlightsOptionsOptional- Passages from each result page that are relevant to the query. Pages are read with the `markdownOptions` settings.
descriptionMaxCharactersOptional- Maximum length of each result's `description`, in characters.
timeoutOptsOptional- Request deadline and what to return when it passes.
zdrOptional- `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless your organization has ZDR.
Example input
{
"query": "Stripe API authentication",
"numResults": 3
}Output
Native JSON envelope, including result, cursor, partial-result and credit metadata.