web agent | Final text, optional JSON, optional schema-validated output | Run status, step summaries, optional signed Debug UI URL while live | Direct terminal workflows and operator tasks |
SDK web.agent() | Final text, structured output, artifacts, streaming events | Browser ID, status, steps, approvals, artifacts, recordings when enabled | Application features, backend jobs, and recurring automations |
MCP run_web_agent | Final text, optional structured content | Browser-agent run metadata and tool summaries | Coding-agent hosts that should delegate the whole goal |
| Advanced SDK browser-code execution | The value returned by your browser code | Page metadata, compact status, bounded observation, logs, artifacts | Exact browser steps in application code |
| MCP runtime browser-code execution | The value returned by the host’s snippet | Structured content with logs, status, artifacts, and observation | Coding-agent hosts that plan each browser step |
| REST browser-code execution | JSON response from browser execution | Status, observation, logs, artifacts when requested | Non-TypeScript backends and workers |
| Quick actions | Scraped content, screenshot, or PDF result | Response metadata, policy/proxy behavior, error codes | One URL-level browser operation |