- Input automation (9 tools)
- Navigation automation (6 tools)
- Emulation (2 tools)
- Performance (4 tools)
- Network (2 tools)
- Debugging (6 tools)
Description: Clicks on the provided element
Parameters:
- uid (string) (required): The uid of an element on the page from the page content snapshot
- dblClick (boolean) (optional): Set to true for double clicks. Default is false.
- includeSnapshot (boolean) (optional): Whether to include a snapshot in the response. Default is false.
Description: Drag an element onto another element
Parameters:
- from_uid (string) (required): The uid of the element to
drag - to_uid (string) (required): The uid of the element to drop into
- includeSnapshot (boolean) (optional): Whether to include a snapshot in the response. Default is false.
Description: Type text into a input, text area or select an option from a <select> element.
Parameters:
- uid (string) (required): The uid of an element on the page from the page content snapshot
- value (string) (required): The value to
fillin - includeSnapshot (boolean) (optional): Whether to include a snapshot in the response. Default is false.
Description: Fill out multiple form elements at once
Parameters:
- elements (array) (required): Elements from snapshot to
fillout. - includeSnapshot (boolean) (optional): Whether to include a snapshot in the response. Default is false.
Description: If a browser dialog was opened, use this command to handle it
Parameters:
- action (enum: "accept", "dismiss") (required): Whether to dismiss or accept the dialog
- promptText (string) (optional): Optional prompt text to enter into the dialog.
Description: Hover over the provided element
Parameters:
- uid (string) (required): The uid of an element on the page from the page content snapshot
- includeSnapshot (boolean) (optional): Whether to include a snapshot in the response. Default is false.
Description: 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:
- key (string) (required): A key or a combination (e.g., "Enter", "Control+A", "Control++", "Control+Shift+R"). Modifiers: Control, Shift, Alt, Meta
- includeSnapshot (boolean) (optional): Whether to include a snapshot in the response. Default is false.
Description: Type text using keyboard into a previously focused input
Parameters:
- text (string) (required): The text to type
- submitKey (string) (optional): Optional key to press after typing. E.g., "Enter", "Tab", "Escape"
Description: Upload a file through a provided element.
Parameters:
- filePath (string) (required): The local path of the file to upload
- uid (string) (required): The uid of the file input element or an element that will open file chooser on the page from the page content snapshot
- includeSnapshot (boolean) (optional): Whether to include a snapshot in the response. Default is false.
Description: Closes the page by its index. The last open page cannot be closed.
Parameters:
- pageId (number) (required): The ID of the page to close. Call
list_pagesto list pages.
Description: Get a list of pages open in the browser.
Parameters: None
Description: Go to a URL, or back, forward, or reload. Use project URL if not specified otherwise.
Parameters:
- handleBeforeUnload (enum: "accept", "decline") (optional): Whether to auto accept or beforeunload dialogs triggered by this navigation. Default is accept.
- ignoreCache (boolean) (optional): Whether to ignore cache on reload.
- initScript (string) (optional): A JavaScript script to be executed on each new document before any other scripts for the next navigation.
- timeout (integer) (optional): Maximum wait time in milliseconds. If set to 0, the default timeout will be used.
- type (enum: "url", "back", "forward", "reload") (optional): Navigate the page by URL, back or forward in history, or reload.
- url (string) (optional): Target URL (only type=url)
Description: Open a new tab and load a URL. Use project URL if not specified otherwise.
Parameters:
- url (string) (required): URL to load in a new page.
- background (boolean) (optional): Whether to open the page in the background without bringing it to the front. Default is false (foreground).
- isolatedContext (string) (optional): If specified, the page is created in an isolated browser context with the given name. Pages in the same browser context share cookies and storage. Pages in different browser contexts are fully isolated.
- timeout (integer) (optional): Maximum wait time in milliseconds. If set to 0, the default timeout will be used.
Description: Select a page as a context for future tool calls.
Parameters:
- pageId (number) (required): The ID of the page to select. Call
list_pagesto get available pages. - bringToFront (boolean) (optional): Whether to focus the page and bring it to the top.
Description: Wait for the specified text to appear on the selected page.
Parameters:
- text (array) (required): Non-empty list of texts. Resolves when any value appears on the page.
- timeout (integer) (optional): Maximum wait time in milliseconds. If set to 0, the default timeout will be used.
Description: Emulates various features on the selected page.
Parameters:
- colorScheme (enum: "dark", "light", "auto") (optional):
Emulatethe dark or the light mode. Set to "auto" to reset to the default. - cpuThrottlingRate (number) (optional): Represents the CPU slowdown factor. Omit or set the rate to 1 to disable throttling
- geolocation (string) (optional): Geolocation (
<latitude>x<longitude>) toemulate. Latitude between -90 and 90. Longitude between -180 and 180. Omit clear the geolocation override. - networkConditions (enum: "Offline", "Slow 3G", "Fast 3G", "Slow 4G", "Fast 4G") (optional): Throttle network. Omit to disable throttling.
- userAgent (string) (optional): User agent to
emulate. Set to empty string to clear the user agent override. - viewport (string) (optional):
Emulatedevice viewports '<width>x<height>x<devicePixelRatio>[,mobile][,touch][,landscape]'. 'touch' and 'mobile' toemulatemobile devices. 'landscape' toemulatelandscape mode.
Description: Resizes the selected page's window so that the page has specified dimension
Parameters:
- height (number) (required): Page height
- width (number) (required): Page width
Description: Provides more detailed information on a specific Performance Insight of an insight set that was highlighted in the results of a trace recording.
Parameters:
- insightName (string) (required): The name of the Insight you want more information on. For example: "DocumentLatency" or "LCPBreakdown"
- insightSetId (string) (required): The id for the specific insight set. Only use the ids given in the "Available insight sets" list.
Description: 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:
- autoStop (boolean) (optional): Determines if the trace recording should be automatically stopped.
- filePath (string) (optional): The absolute file path, or a file path relative to the current working directory, to save the raw trace data. For example, trace.json.gz (compressed) or trace.json (uncompressed).
- reload (boolean) (optional): Determines if, once tracing has started, the current selected page should be automatically reloaded. Navigate the page to the right URL using the
navigate_pagetool BEFORE starting the trace if reload or autoStop is set to true.
Description: Stop the active performance trace recording on the selected webpage.
Parameters:
- filePath (string) (optional): The absolute file path, or a file path relative to the current working directory, to save the raw trace data. For example, trace.json.gz (compressed) or trace.json (uncompressed).
Description: Capture a memory heapsnapshot of the currently selected page to memory leak debugging
Parameters:
- filePath (string) (required): A path to a .heapsnapshot file to save the heapsnapshot to.
Description: Gets a network request by an optional reqid, if omitted returns the currently selected request in the DevTools Network panel.
Parameters:
- reqid (number) (optional): The reqid of the network request. If omitted returns the currently selected request in the DevTools Network panel.
- requestFilePath (string) (optional): The absolute or relative path to save the request body to. If omitted, the body is returned inline.
- responseFilePath (string) (optional): The absolute or relative path to save the response body to. If omitted, the body is returned inline.
Description: List all requests for the currently selected page since the last navigation.
Parameters:
- includePreservedRequests (boolean) (optional): Set to true to return the preserved requests over the last 3 navigations.
- pageIdx (integer) (optional): Page number to return (0-based). When omitted, returns the first page.
- pageSize (integer) (optional): Maximum number of requests to return. When omitted, returns all requests.
- resourceTypes (array) (optional): Filter requests to only return requests of the specified resource types. When omitted or empty, returns all requests.
Description: 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 }orasync () => { 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.
Description: Gets a console message by its ID. You can get all messages by calling list_console_messages.
Parameters:
- msgid (number) (required): The msgid of a console message on the page from the listed console messages
Description: Get Lighthouse score and reports for accessibility, SEO and best practices. This excludes performance. For performance audits, run performance_start_trace
Parameters:
- device (enum: "desktop", "mobile") (optional): Device to
emulate. - mode (enum: "navigation", "snapshot") (optional): "navigation" reloads & audits. "snapshot" analyzes current state.
- outputDirPath (string) (optional): Directory for reports. If omitted, uses temporary files.
Description: List all console messages for the currently selected page since the last navigation.
Parameters:
- includePreservedMessages (boolean) (optional): Set to true to return the preserved messages over the last 3 navigations.
- pageIdx (integer) (optional): Page number to return (0-based). When omitted, returns the first page.
- pageSize (integer) (optional): Maximum number of messages to return. When omitted, returns all requests.
- types (array) (optional): Filter messages to only return messages of the specified resource types. When omitted or empty, returns all messages.
Description: Take a screenshot of the page or element.
Parameters:
- filePath (string) (optional): The absolute path, or a path relative to the current working directory, to save the screenshot to instead of attaching it to the response.
- format (enum: "png", "jpeg", "webp") (optional): Type of format to save the screenshot as. Default is "png"
- fullPage (boolean) (optional): If set to true takes a screenshot of the full page instead of the currently visible viewport. Incompatible with uid.
- quality (number) (optional): Compression quality for JPEG and WebP formats (0-100). Higher values mean better quality but larger file sizes. Ignored for PNG format.
- uid (string) (optional): The uid of an element on the page from the page content snapshot. If omitted takes a pages screenshot.
Description: 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:
- filePath (string) (optional): The absolute path, or a path relative to the current working directory, to save the snapshot to instead of attaching it to the response.
- verbose (boolean) (optional): Whether to include all possible information available in the full a11y tree. Default is false.