Browser (debug): act
navig_browser_debug_actControl a NAVIG debug browser: launch or navigate pages, click, type, press keys, scroll, screenshot, switch tabs, inject scripts, evaluate JS, log in, detach, or stop.
Instructions
Act in a NAVIG-launched debug browser: launch/new/navigate/click/type/key/scroll/move/screenshot/switch, detach/stop, or evaluate/inject/login. State-changing and high-risk; injected scripts persist until removed and login fills a real credential (never returned). Use navig_browser_debug to inspect and get refs first. Returns the dispatch result; re-snapshot to verify.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Viewport X coordinate; omit when clicking by accessibility ref Used by: click, move. | |
| y | No | Viewport Y coordinate; omit when clicking by accessibility ref Used by: click, move. | |
| all | No | Detach from every attached tab, not just the current one Used by: detach, stop. | |
| app | No | chrome|edge|brave or a path. Used by: new, launch. | chrome |
| out | No | Output filename. Used by: screenshot. | |
| ref | No | a11y ref id. Used by: click. | |
| tab | No | Tab index from cdp_tabs to act on. Used by: click, type, key, switch, screenshot, login, inject. | |
| url | No | URL to load in the attached tab Used by: navigate, click, type, key, switch, screenshot, login, inject. | |
| port | No | Debug port (auto if omitted). Used by: new, navigate, click, type, key, scroll, move, switch, screenshot, detach, stop, launch, eval, login, inject. | |
| text | No | Text to type into the currently focused element Used by: type. | |
| combo | No | Key or chord to press, e.g. Enter or Control+A Used by: key. | Enter |
| action | Yes | Operation to perform. Required parameters per action: new: none; navigate: url; click: none; type: text; key: combo; scroll: none; move: x, y; switch: none; screenshot: none; detach: none; stop: none; launch: app; eval: expression; login: none; inject: script. What each action does: new: Open a COMPLETELY FRESH, isolated browser (own profile + auto-allocated debug port) (required: none) | navigate: Load a URL in the attached page and wait for the load event (required: url) | click: Click a button, link, checkbox or any element in the attached page — by the accessibility ref from cdp_snapshot, or at viewport coordinates (x, y) (required: none) | type: Type text into the element that currently has focus in the attached page (required: text) | key: Press a key or chord (Enter, Control+A, Escape) in the attached page (required: combo) | scroll: Scroll the page by a wheel delta (positive delta_y = down) (required: none) | move: Move the mouse to viewport coordinates (x, y) in the attached page — this does not click (required: x, y) | switch: Make a specific open tab the active target (by tab index or url substring) (required: none) | screenshot: Screenshot the attached page (to a file, or base64 with as_base64=true) (required: none) | detach: Disconnect NAVIG's session but LEAVE the browser running (its debug port stays on) (required: none) | stop: Close a NAVIG-launched debug browser and turn its debug port off (required: none) | launch: Launch an app with a CDP debug port so it can be driven (required: app) | eval: Evaluate a JavaScript expression in the attached page and return its value (required: expression) | login: Auto-login on the attached page using a VAULTED website credential (required: none) | inject: Register a persistent userscript on the attached browser (CDP Page.addScriptToEvaluateOnNewDocument) — re-runs at document-start on every navigation, current and future pages (required: script) | |
| button | No | Mouse button: left (default), right, or middle Used by: click. | left |
| domain | No | Site host, e.g. github.com (default: current page). Used by: login. | |
| script | No | User script source to register on the attached browser Used by: inject. | |
| delta_x | No | Horizontal wheel delta: positive scrolls right Used by: scroll. | |
| delta_y | No | Wheel delta: positive scrolls down Used by: scroll. | |
| profile | No | Named persistent profile. Used by: new. | |
| headless | No | Launch without a visible window. Defaults to TRUE for agent calls — you have no screen, and a visible window renders blank and piles up on the operator's desktop. Set false ONLY when a human has asked to watch the browser. Used by: new, launch. | |
| open_url | No | Navigate here first, then log in. Used by: login. | |
| username | No | Account, when the site has several. Used by: login. | |
| as_base64 | No | Return base64 image data instead of writing a file Used by: screenshot. | |
| full_page | No | Capture the whole scrollable page instead of just the viewport Used by: screenshot. | |
| expression | No | JavaScript expression to evaluate in the page Used by: eval. | |
| auto_submit | No | Submit the login form automatically after filling it Used by: login. | |
| window_size | No | Pin the window/viewport to WxH, e.g. 1440x900 (deterministic, portable shots). Used by: new. | |
| force_restart | No | Quit a running instance first (destructive). Used by: launch. | |
| user_data_dir | No | Optional profile dir (browsers). Used by: launch. | |
| allow_insecure | No | Allow http (localhost/dev only). Used by: login. | |
| load_extension | No | Unpacked extension folder(s) to load in isolation (path, or comma-separated list). Used by: new, launch. |