Use Browser
Connect your agent to Browser — drive a real Chrome inside a sandbox dedicated to each session: automation over CDP, live screen view, and session recordings, integrated over MCP.
Prerequisites
A GreenNode account, and having completed Getting Started with AgentBase
An account enabled in the Built-in Tools whitelist — see Built-in Tools if not yet enabled
An agent with MCP client support (Claude Code, Cursor, or an MCP SDK)
If your agent does its own automation: a Chrome DevTools Protocol (CDP) client — Playwright, Puppeteer, or any CDP client
Connecting over MCP
Step 1: Get the Browser MCP endpoint:
https://gw-greennode-builtin-tools-110718.agentbase-gateway.aiplatform.vngcloud.vn/browserStep 2: Add it to your MCP client configuration, with a header pointing to the Browser to use. Example for Claude Code:
claude mcp add --transport http --scope user browser \
"https://gw-greennode-builtin-tools-110718.agentbase-gateway.aiplatform.vngcloud.vn/browser" \
--header "x-browser-id: <YOUR_BROWSER_ID>"Or for Cursor / VS Code — add the header to the config:
{
"mcpServers": {
"browser": {
"url": "https://gw-greennode-builtin-tools-110718.agentbase-gateway.aiplatform.vngcloud.vn/browser",
"headers": {
"x-browser-id": "<YOUR_BROWSER_ID>"
}
}
}
}Replace <YOUR_BROWSER_ID> with the id of the Browser you created — every call over this MCP connection goes into that exact Browser.
Step 3: Sign in the first time — your client runs the login flow itself (Dynamic Client Registration) and opens the GreenNode Portal login URL in the browser; the access token is kept and refreshed automatically afterwards. Tokens from a Root user, IAM user, or Service Account all work.
How it works
Each session is a real Chrome browser running inside its own sandbox. There are three separate streams:
Automation stream — your agent drives Chrome: the service relays your CDP connection to Chrome's debug port inside the sandbox. Playwright / Puppeteer work as if on localhost.
Live view — a human watches Chrome's screen live over noVNC, embedded in the portal via an iframe.
Recording — a session recording is preserved when the session ends.
The full flow: your agent (with an automation library such as Playwright or browser-use) receives a query → the LLM picks tool calls (click, type, goto...) → CDP commands travel over the automation stream into the Chromium inside the session → page content and screenshots return to the agent:
Browser follows the same pattern as Code Interpreter: create the resource, wait for ACTIVE, create sessions (one sandbox per session), delete when done.
Driving Chrome with the automation stream
Step 1: Create a Browser with the POST /v1/browsers API, wait for the ACTIVE status, then create a session — same as Code Interpreter. The id returned on creation is the value for the x-browser-id header when connecting over MCP.
Step 2: Enable the automation stream for the session (tool / API PUT .../sessions/{sessionId}/streams). The stream can be toggled per session.
Step 3: Point your CDP client (Playwright, Puppeteer) at the session's automation stream address. The service relays your connection to Chrome inside the sandbox and rewrites the debugger address to point back at itself.
Watching live (live view)
Chrome's screen is served over noVNC and embedded in the portal via an iframe. Because iframes and WebSockets cannot carry authentication headers, live view uses a signed URL (like a presigned URL):
The portal requests a signed live-view URL for the session (ticket valid for 5 minutes).
The URL is placed in the
iframe src— the ticket travels in the WebSocket path and is stripped before reaching the sandbox.An established connection is not re-authenticated; each connection lives at most 1 hour. On expiry, the portal signs a new URL and reloads the iframe.
Recordings
The recording file lives inside the sandbox and would be lost when the session is deleted. Therefore, when you delete a session, the service reads the recording file just before the sandbox is destroyed and stores it on object storage. You can then fetch it with GET .../sessions/{sessionId}/recording.
Main API
Path under /v1/browsers
Purpose
POST, GET, GET /{id}, DELETE /{id}
Create, list, view, delete a Browser
POST/GET/DELETE /{id}/sessions[/{sessionId}]
Manage sessions — each session is one Chrome in one sandbox
PUT /{id}/sessions/{sessionId}/streams
Enable/disable the automation stream
/{id}/sessions/{sessionId}/automation-stream[/*]
CDP relay, all methods
POST .../live-view-stream-sign and GET .../live-view-stream[/*]
Sign a live-view URL, and the view stream
GET .../recording
Fetch the stored recording
Deleting
Delete the session — the service saves the recording (if enabled), then destroys the sandbox and all state.
Delete the Browser when no longer needed — this returns the quota.
Result
Your agent can drive a real Chrome (CDP), you can watch the screen live in the portal, and you can download the session recording after it ends.
Let my agent run Python / shell
See all limits and the security model
Last updated

