When to use the agent
The agent fits tasks where you care about the outcome, not the exact clicks: data extraction from sites that change layout, workflows across several pages, form submission, or anything you’d rather describe than script. If you need pixel-exact control or deterministic repetition, drive a browser session directly instead, or record an agent run once and replay it with cache scripts.What the agent can do
- Structured output — get results as typed JSON matching your schema
- Follow-up tasks — continue in the same browser with context intact
- Streaming — watch steps as they happen
- Workspaces — files the agent reads and writes during a run
- Human-in-the-loop — take over the browser mid-task, then hand back
- Models — pick the LLM that drives the loop
- Cache scripts — record a run, replay it without LLM calls