agent
Research any question across the web without providing URLs: plan searches, fetch and filter pages, then return a prose or structured answer.
Instructions
Use this when you need an autonomous agent to research, navigate, and synthesise an answer from the web - no URLs required. The agent plans search queries, fetches and filters relevant pages, and returns a prose or structured answer. model:"pro" uses deep multi-source research. Hard limits: maxSteps<=10, maxUrls<=20, 120s wall-clock. Confirms before pro runs. Degraded-but-useful output if no LLM keys/Ollama. Not for a URL you already have (scrape) or a question one search answers (search_web). Pages that block a plain fetch are retried in the stealth browser automatically (at most 2 a run, URLs you name first; evidence marked via:"stealth"). Cost: 18 credits at most - 8, plus 5 per stealth retry that gets the page; a retry that is blocked again is free. Example: agent({prompt:"What are the top 5 MCP servers in 2025?", maxUrls:10})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | Optional seed URLs to include (max 20) | |
| model | No | "default" = SamplingClient loop (no keys needed); "pro" = full ResearchOrchestrator | default |
| prompt | Yes | Natural-language task or question | |
| schema | No | Optional JSON schema for structured output | |
| maxUrls | No | Max URLs to fetch (hard cap: 20) | |
| maxSteps | No | Max fetch iterations (hard cap: 10) | |
| max_inline_chars | No | Largest result to return inline, in characters of its JSON. Over it, the call returns a preview plus a result_handle for read_result instead of the whole result (default 40,000; env CRAWLFORGE_MAX_INLINE_CHARS) |