docs/tool-reference.md
clickDescription: Clicks on the provided element
Parameters:
dragDescription: Drag an element onto another element
Parameters:
dragfillDescription: Type text into a input, text area or select an option from a <select> element.
Parameters:
fill infill_formDescription: Fill out multiple form elements at once
Parameters:
fill out.handle_dialogDescription: If a browser dialog was opened, use this command to handle it
Parameters:
hoverDescription: Hover over the provided element
Parameters:
press_keyDescription: Press a key or key combination. Use this when other input methods like fill() cannot be used (e.g., keyboard shortcuts, navigation keys, or special key combinations).
Parameters:
type_textDescription: Type text using keyboard into a previously focused input
Parameters:
upload_fileDescription: Upload a file through a provided element.
Parameters:
close_pageDescription: Closes the page by its index. The last open page cannot be closed.
Parameters:
list_pages to list pages.list_pagesDescription: Get a list of pages open in the browser.
Parameters: None
navigate_pageDescription: Go to a URL, or back, forward, or reload. Use project URL if not specified otherwise.
Parameters:
new_pageDescription: Open a new tab and load a URL. Use project URL if not specified otherwise.
Parameters:
select_pageDescription: Select a page as a context for future tool calls.
Parameters:
list_pages to get available pages.wait_forDescription: Wait for the specified text to appear on the selected page.
Parameters:
emulateDescription: Emulates various features on the selected page.
Parameters:
Emulate the dark or the light mode. Set to "auto" to reset to the default.<latitude>x<longitude>) to emulate. Latitude between -90 and 90. Longitude between -180 and 180. Omit clear the geolocation override.emulate. Set to empty string to clear the user agent override.Emulate device viewports '<width>x<height>x<devicePixelRatio>[,mobile][,touch][,landscape]'. 'touch' and 'mobile' to emulate mobile devices. 'landscape' to emulate landscape mode.resize_pageDescription: Resizes the selected page's window so that the page has specified dimension
Parameters:
performance_analyze_insightDescription: Provides more detailed information on a specific Performance Insight of an insight set that was highlighted in the results of a trace recording.
Parameters:
performance_start_traceDescription: Start a performance trace on the selected webpage. Use to find frontend performance issues, Core Web Vitals (LCP, INP, CLS), and improve page load speed.
Parameters:
navigate_page tool BEFORE starting the trace if reload or autoStop is set to true.performance_stop_traceDescription: Stop the active performance trace recording on the selected webpage.
Parameters:
take_memory_snapshotDescription: Capture a memory heapsnapshot of the currently selected page to memory leak debugging
Parameters:
get_network_requestDescription: Gets a network request by an optional reqid, if omitted returns the currently selected request in the DevTools Network panel.
Parameters:
list_network_requestsDescription: List all requests for the currently selected page since the last navigation.
Parameters:
evaluate_scriptDescription: Evaluate a JavaScript function inside the currently selected page. Returns the response as JSON, so returned values have to be JSON-serializable.
Parameters:
function (string) (required): A JavaScript function declaration to be executed by the tool in the currently selected page.
Example without arguments: () => { return document.title } or async () => { return await fetch("example.com") }.
Example with arguments: (el) => { return el.innerText; }
args (array) (optional): An optional list of arguments to pass to the function.
get_console_messageDescription: Gets a console message by its ID. You can get all messages by calling list_console_messages.
Parameters:
lighthouse_auditDescription: Get Lighthouse score and reports for accessibility, SEO and best practices. This excludes performance. For performance audits, run performance_start_trace
Parameters:
emulate.list_console_messagesDescription: List all console messages for the currently selected page since the last navigation.
Parameters:
take_screenshotDescription: Take a screenshot of the page or element.
Parameters:
take_snapshotDescription: Take a text snapshot of the currently selected page based on the a11y tree. The snapshot lists page elements along with a unique identifier (uid). Always use the latest snapshot. Prefer taking a snapshot over taking a screenshot. The snapshot indicates the element selected in the DevTools Elements panel (if any).
Parameters: