Default recommendation
| Situation | Start here |
|---|---|
| You are evaluating Webcompute | Run web agent from the quickstart. |
| The browser task belongs in your app | Use SDK web.agent(). |
| Your code must own every action | Use SDK web.browser and browser.playwright.execute(). |
| A coding-agent host needs a browser | Use MCP runtime tools. |
| You need one scrape, screenshot, or PDF | Use quick actions. |
| You already have a browser framework | Attach through CDP, then use Webcompute APIs when you need observations or resources. |
| You want to | Use | Why |
|---|---|---|
| Run a browser task from the terminal | web agent | Fastest way to prove a delegated browser workflow |
| Embed delegated browsing in an app | SDK web.agent() | Model-backed browser work with policy, approvals, structured output, and artifacts |
| Control every browser action | SDK web.browser and browser.playwright.execute() | Deterministic Playwright code against a managed browser |
| Give a coding agent a browser | MCP manage_browsers and execute_playwright_code | The host writes focused Playwright snippets and reads observations after each step |
| Let a coding agent delegate the whole task | MCP run_web_agent | Optional higher-level goal execution when the MCP surface is agent or all |
| Integrate from another language | REST and OpenAPI | Language-neutral browser lifecycle, execution, resources, and quick actions |
| Reuse an existing automation stack | CDP URL | Attach external browser frameworks when protocol-level interop matters |
| Capture one page quickly | Quick actions | Scrape, screenshot, or PDF a URL without owning browser lifecycle |
Start with web agent
Use web agent when you want a browser task to work before you design an application around it.
--debug-url only when you intentionally want a signed live-browser link in the output.
Move delegated work into web.agent()
Use the SDK agent harness when the same task belongs in your app, worker, queue, or backend service.
web.agent() when the model should decide the browser steps. Use direct Playwright execution when your code should decide them.
Use Playwright execution for exact control
Useweb.browser when you want deterministic browser code, explicit cleanup, and direct access to resources.
getByRole, getByLabel, and getByText. Webcompute returns the code result and, when capture is enabled, bounded status and observation data you can use for the next step.
Use MCP for coding agents
Use MCP when Codex, Claude Code, Cursor, OpenCode, Devin, or another MCP host should operate a browser.| Tool | Use it for |
|---|---|
manage_browsers | Create, list, inspect, stop, resume, close, and retrieve Debug UI or CDP URLs. |
execute_playwright_code | Run focused Playwright snippets and receive result, status, logs, artifacts, and observation. |
run_web_agent:
run_web_agent only when you want Webcompute’s model-backed harness to own the browsing goal. Use the runtime tools when the host should plan each step.
Use REST, CDP, or quick actions
Use REST when TypeScript is not the application boundary. The OpenAPI reference covers browser lifecycle, Playwright execution, resources, recordings, events, dialogs, permissions, and quick actions. Use CDP when an existing framework must attach directly to the browser. Direct CDP clients do not automatically receive Webcompute post-step observations; use Webcompute execution APIs when agent-readable observations matter. Use quick actions when you need one scrape, screenshot, or PDF and do not need a persistent browser session.Move between paths
Most teams start with one surface and then move as the workflow becomes more specific:| Start | Move when | Next path |
|---|---|---|
web agent | The task belongs in product code | SDK web.agent() |
SDK web.agent() | A step must be exact or validated | browser.playwright.execute() before or after the agent run |
| MCP runtime tools | The workflow becomes a product feature | SDK browser lifecycle and Playwright execution |
| Quick actions | The job needs state, files, downloads, dialogs, or recordings | Managed browser lifecycle |
| CDP | You need Webcompute observations or resource APIs | SDK or REST execution APIs |
Next steps
Run the CLI quickstart
Install Webcompute, configure model access, run a public browser task, and inspect the result.
Build with the SDK
Move a proven agent task into application code.
Execute Playwright code
Control browser steps directly with normal Playwright.
Connect MCP
Give a coding-agent host a managed browser runtime.
For coding agents
Give an agent host the exact runtime contract: lifecycle, Playwright snippets, observations, and cleanup.