codex_dom_get_visible
Human-readable visible DOM tree
How to use it
Project documentation lists codex_dom_get_visible for the Codex Browser Bridge MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
Install Codex Browser Bridge
codex-browser-bridge --mode mcpOther tools in Codex Browser Bridge (39)
Activate a background tab (fixes screenshot timeouts)
Claim an existing user tab
Click by CSS selector (JS click)
Click + wait for load (1 call)
Click element from codexfindelement result
Close a tab by ID
Capture console output for a window
Create a new blank tab
Click at exact coordinates (CDP mouse events)
Press key sequence (Enter, Ctrl+C, etc.)
Scroll at coordinates by delta
Type text at current focus
Handle alert / confirm / prompt
Click by accessibility node ID
Full accessibility tree with node IDs; large responses may be truncated
CDP mouse drag (sliders, sortable lists)
Emulate mobile viewport (reset=true to clear)
Execute JavaScript and return a bounded JSON result (returnByValue + awaitPromise; thrown JS becomes a tool error)
Fill input by CSS selector
Find elements by ARIA role + name
Current page title
Current tab URL
Hover over element (dropdowns, tooltips)
List tabs owned by this session
Navigate + wait (1 call instead of 2)
Navigate to URL
Go back one history entry
Go forward one history entry
List page resources; optionally fetch bounded known-size content
DOM nodes, JS heap, event listeners (Performance)
Render page to PDF via bounded CDP stream; returns a size summary, not embedded PDF bytes
Reload current page
Capture viewport screenshot; oversized images return a summary
Capture a single element by selector; oversized images return a summary
Set <select> value + fire change
List all browser tabs (including unclaimed)
Poll a CSS selector until it matches (SPAs)
Poll document.readyState until complete
Poll until URL contains a substring (SPA routes)