All browser tools require CodeFire to be running. Interactive tools (click, type, etc.) require the browser tab to be visible.
Navigation
browser_navigate
Navigate the browser to a URL. Opens a new tab if none are open. Waits for page load to complete.URL to navigate to
Page Inspection
browser_snapshot
Get the accessibility tree of the current page as compact structured text. Returns ARIA roles, labels, and interactive element refs. This is the primary tool for understanding page content and structure.Tab ID (defaults to active tab)
Maximum response size in bytes (default: 102400 = 100KB). Set to 0 for unlimited. Large pages may be truncated with a hint to use browser_extract.
browser_extract
Extract text content from a page element using a CSS selector. Returns the text content of the first matching element.CSS selector to find the element
Tab ID (defaults to active tab)
browser_screenshot
Take a PNG screenshot of the current page. Returns the file path so you can read the image.Tab ID (defaults to active tab)
browser_console_logs
Get JavaScript console log entries (log, warn, error, info) from a browser tab. Useful for debugging web applications.Tab ID (defaults to active tab)
Filter by level:
log, warn, error, or infoTab Management
browser_list_tabs
List all open browser tabs with their URLs, titles, and loading state. Example:browser_tab_open
Open a new browser tab. Optionally navigate to a URL.URL to navigate to (optional)
browser_tab_close
Close a browser tab by its ID.ID of the tab to close
browser_tab_switch
Switch the active browser tab to the specified tab.ID of the tab to switch to
Interactions
browser_click
Click an element by its ref from browser_snapshot. Automatically scrolls into view first.Element ref from browser_snapshot (e.g. ‘e5’)
Tab ID (defaults to active tab)
browser_type
Type text into an input or textarea element by ref. Clears existing content by default. Works with React and other framework-controlled inputs.Element ref from browser_snapshot
Text to type
Clear existing content first (default: true)
Tab ID (defaults to active tab)
browser_select
Select an option from a<select> dropdown by value or visible label text. On mismatch, returns all available options.
Element ref of the select element
Option value to select
Option visible text to select (alternative to value)
Tab ID (defaults to active tab)
browser_scroll
Scroll the page by direction/amount, or scroll a specific element into view. Returns scroll position info.Scroll this element into view (overrides direction/amount)
Scroll direction:
up, down, top, or bottomPixels to scroll (default: 500, ignored for top/bottom)
Tab ID (defaults to active tab)
browser_wait
Wait for an element to appear on the page. Use after clicking something that triggers async loading. Accepts ref or CSS selector. Returns found status, not an error on timeout.Wait for element with this ref to exist
CSS selector to wait for (use when element has no ref yet)
Max seconds to wait (default: 5, max: 15)
Tab ID (defaults to active tab)
browser_press
Press a key or key combination. Targets a specific element by ref, or the currently focused element if no ref is provided.Key to press: Enter, Tab, Escape, Backspace, ArrowUp, ArrowDown, ArrowLeft, ArrowRight, Space, Delete, Home, End, PageUp, PageDown, or any single character
Modifier keys to hold:
shift, ctrl, alt, metaElement ref to target (defaults to currently focused element)
Tab ID (defaults to active tab)
browser_hover
Hover over an element by ref. Dispatches mouseenter and mouseover events. Useful for dropdown menus, tooltips, and hover-state UI.Element ref from browser_snapshot
Tab ID (defaults to active tab)
Advanced Interactions
browser_upload
Set a file on an<input type='file'> element. Reads the file from disk, encodes it, and assigns it to the input.
Element ref of the file input from browser_snapshot
Absolute path to the file on disk
Tab ID (defaults to active tab)
browser_drag
Drag an element to a target element using HTML5 drag and drop events.Ref of the element to drag
Ref of the drop target element
Tab ID (defaults to active tab)
browser_iframe
Switch execution context to an iframe for subsequent commands (snapshot, click, type, etc.), or back to the main frame. Only same-origin iframes are accessible.Ref of the iframe element to enter. Omit to return to main frame.
Tab ID (defaults to active tab)
browser_eval
Execute JavaScript on the page and return the result. Use ‘return’ to return values and ‘await’ for promises.JavaScript to evaluate. Use ‘return’ to return a value (e.g. ‘return document.title’)
Tab ID (defaults to active tab)
Session & Storage
browser_clear_session
Clear browsing data (cookies, cache, localStorage). Useful for resetting login state or testing fresh page loads.Data types to clear:
cookies, cache, localStorage, or all (default: all)Tab ID (defaults to active tab)
browser_get_cookies
Get cookies for the current page, including httpOnly cookies not visible to JavaScript.Filter cookies by domain substring (e.g. ‘example.com’)
Tab ID (defaults to active tab)
browser_set_cookie
Set a cookie on the current page. Useful for testing auth flows or setting feature flags.Cookie name
Cookie value
Cookie domain (defaults to current page domain)
Cookie path (defaults to ’/’)
Max age in seconds
Secure flag
SameSite attribute:
Strict, Lax, or NoneTab ID (defaults to active tab)
browser_get_storage
Read localStorage or sessionStorage contents. Returns item count, key-value pairs, and total size in bytes.Which storage to read:
localStorage or sessionStorageOnly return keys starting with this prefix
Tab ID (defaults to active tab)
Network Monitoring
get_network_requests
Get a list of network requests made by the current page. Returns HTTP requests with method, URL, status code, and timing information.Tab ID (defaults to active tab)
Filter requests by URL substring
Unique request identifier
HTTP method (GET, POST, etc.)
Request URL
HTTP status code
Request timestamp (milliseconds since epoch)
Request duration in milliseconds
get_request_detail
Get detailed information about a specific network request including headers, body, and response data.Request ID from
get_network_requestsHTTP request headers
Request body (if present)
HTTP response headers
Response body (truncated if very large)
Detailed timing breakdown (DNS, connection, transfer, etc.)
clear_network_log
Clear the network request log for the current tab. Useful for isolating requests from a specific action.Tab ID (defaults to active tab)
