Browser Session
browser_sessionDrive a real Chrome browser step by step with persistent sessions and server-side page understanding to automate navigation, interaction, and observation for web testing.
Instructions
Drive a real Chrome on THIS machine step by step, like Playwright, while the DebuggAI servers do the page understanding. The session stays open between calls. Pass an "action":
"open" {url?, allowedDomains?, headless?, viewport?, useProfile?, credentialRef?, idleTimeoutMs?} → {sessionId}. localhost needs no tunnel. credentialRef ('env:NAME' | 'simpli:/') is resolved locally; type it with text "{{cred:password}}" so the secret never enters the transcript.
"act" {sessionId, steps:[{action: navigate|click|dblclick|type|fill|press|select|check|uncheck|hover|scroll|wait_for|screenshot|evaluate|back|reload, ref|selector, url | text (fill/type; value also accepted) | value (select) | key (press) | forText/forUrl/ms (wait_for) | expression (evaluate)}]} → runs up to 20 steps in one call, stops at the first failure, returns a minimal delta (url change, console errors, failed requests).
"observe" {sessionId, fast?, screenshot?} → the SERVER-computed view of the page: visible text and interactive elements with stable refs to use in act. fast:true returns only the cheap local facts.
"close" {sessionId} - "list" Sessions idle out after 10 minutes. Navigation is limited to allowedDomains (the opened URL's host plus localhost). Stdio MCP only: the browser is on your machine.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "browser_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | [open] First page to load. | |
| fast | No | [observe] Cheap local facts only, no server call. | |
| steps | No | [act] Steps to run in order. | |
| action | Yes | ||
| waitMs | No | [act] Max ms to wait for the steps to finish. | |
| fullPage | No | [observe] Full-page screenshot. | |
| headless | No | ||
| repoName | No | ||
| viewport | No | ||
| projectId | No | [open] Record this session into this project (uuid). Default: the project of the git repo you run in; with neither, the run is saved without a project and does not show in any project's Dev tab. | |
| sessionId | No | [act|observe|close] Session id from open. | |
| screenshot | No | [observe] Include a screenshot. | |
| useProfile | No | [open] MCP-owned logged-in profile (never your everyday Chrome). | |
| userChrome | No | [open] OPT-IN, only when the user explicitly asks: run on a throwaway COPY of the user's real Chrome profile (directory name like 'Default' or its display name). Needs allowedDomains. Never the default; never implied by useProfile. | |
| credentialRef | No | [open] Password pointer, resolved locally. | |
| environmentId | No | ||
| idleTimeoutMs | No | [open] Idle close, 10s..1h. Default 10 min. | |
| allowedDomains | No | [open] Extra hostnames the session may visit. |