browser_task
Run natural-language web tasks in a cloud browser: AI agent navigates, clicks, types, scrolls, and extracts data for multi-step flows. Returns structured results with run metadata.
Instructions
Run a natural-language task in a real cloud browser driven by an AI agent: it navigates, clicks, types, scrolls, and extracts on your behalf ("find the cheapest 65-inch TV on this site and list its specs", "fill the contact form with …"). Use when scrape cannot do the job (multi-step flows, interactions, complex navigation) and no Wire action covers the site (check wire_discover first — Wire actions are faster and cheaper). Async; runs up to ~5 minutes and this tool polls to completion. For login-protected tasks pass session_id from session_list — never put passwords in the prompt. Supply output_schema to get structured JSON back. It does not execute payments or transfer funds; such tasks are refused. Returns the task result plus run metadata (steps taken, duration, run_id).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Navigate here before starting. Omit to let the agent follow URLs named in the prompt. | |
| prompt | Yes | The task in natural language. Be specific about the goal and what to return. Never include passwords or secrets — use session_id for authenticated sites. | |
| max_steps | No | Cap on agent steps (navigation/click/type actions). | |
| session_id | No | Saved browser-session ID (from session_list) so the task runs logged in. | |
| timeout_ms | No | Task timeout in milliseconds (server caps runs at ~330s regardless). | |
| output_schema | No | JSON Schema for the result — the agent returns structured data conforming to it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cached | No | ||
| result | No | The task result — structured JSON matching output_schema if it was supplied, otherwise a free-form value. | |
| run_id | No | ||
| success | No | ||
| iterations | No | ||
| duration_ms | No | ||
| steps_taken | No |