devtools-fleet-mcp
v0.5.1chrome-devtools-mcp for ten agents at once: one isolated Chrome per agent, saved login states, origin allowlists, and a CLI to see and reap them all
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
browser_start
Start this session's own Chrome (isolated from every other agent). Optional: the first browser tool call starts one with defaults anyway. Call it explicitly to load a saved login (`state`), to pick headless/viewport/channel, or to open a URL. A browser started from a state can only visit that state's allowed origins. If this session already had a browser before a reconnect, it is picked up again with its tabs.
| Parameter | Type | Description |
|---|---|---|
allowedOrigins | array | Without a state: restrict this browser to these origins, e.g. ["http://localhost:3000"] |
channel | string | |
headless | boolean | Run without a window (default from config, normally true) |
state | string | Name of a saved login state (see state_list) |
url | string | Open this URL in the first tab |
viewport | string | Window size, e.g. "1280x720" |
browser_status
Show this session's browser: id, saved state, allowlist, headless, open tabs, uptime.
browser_restart
Relaunch this session's browser keeping cookies, localStorage and open tabs. Pass headless: false to get a visible window (e.g. so the person can solve a captcha or pass 2FA in it), headless: true to hide it again. Pages reload. If the person only wants to watch, browser_show is lighter: it doesn't reload anything.
| Parameter | Type | Description |
|---|---|---|
headless | boolean |
browser_stop
Close this session's browser and delete its temporary profile.
state_save
Save the current browser's login (cookies + localStorage) as a named state, so other sessions can start already logged in. Only cookies for the allowed origins are kept. allowedOrigins defaults to the http(s) origins open in tabs; it can never be wider than this browser's own allowlist. Can't overwrite a login a person made. For a fresh login by the person, use state_login instead: it opens the window and saves the result as theirs.
| Parameter | Type | Description |
|---|---|---|
name * | string | State name: letters, digits, . _ - |
allowedOrigins | array | Origins this state may be used on, e.g. ["https://staging.example.com"] |
overwrite | boolean | |
strict | boolean | Block every request (not just navigations) outside the allowlist when the state is used |
state_list
List saved login states: name, allowed origins, cookie counts, when saved and when the first cookie expires. Never shows cookie values.
state_login
Have the person log in to a site so agents can use that login: opens a visible Chrome window at `url` for the person to log in by hand (passwords, 2FA, SSO, captchas all happen in that window). Use it whenever a task needs a login and state_list has no fitting state, or a state's cookies have expired (overwrite: true). You open the window; never type credentials yourself, and don't ask the person to run a terminal command for this. Then tell the person to log in and say when they're done, and call state_login_finish. Needs this session to have no browser running (browser_stop first).
| Parameter | Type | Description |
|---|---|---|
name * | string | State name: letters, digits, . _ -, e.g. "staging-admin" |
url * | string | Where the person starts, usually the login page |
allow | array | Extra origins the state should work on, beyond where the login starts and ends |
overwrite | boolean | Log in again over an existing state (a person-made one keeps its allowed origins) |
strict | boolean | When the state is used, block every request outside its allowlist, not just navigations |
state_login_finish
Finish a state_login once the person says they have logged in. Without confirm: returns the proposed allowlist (where the login started and ended; origins only passed through, like an SSO provider, are left out so their session isn't handed to agents) for you to show the person. With confirm: true: saves the login as a state the person made, closes the window, and says how to use it.
| Parameter | Type | Description |
|---|---|---|
allowedOrigins | array | Use these origins instead of the proposal, when the person asked for a different list |
confirm | boolean | true once the person agreed to the allowed origins: save and close the window |
state_delete
Delete a saved state that an agent saved with state_save. Logins a person made can't be deleted by agents.
| Parameter | Type | Description |
|---|---|---|
name * | string |
browser_show
Let the person watch this session's browser live, without disturbing it: opens Chrome DevTools with a screencast of a tab in the person's default browser, and returns the URL. Use it when the person asks to see or follow what you're doing. Works for headless browsers too. To let them type into the page (captcha, 2FA), use browser_restart({ headless: false }) instead.
| Parameter | Type | Description |
|---|---|---|
open | boolean | false: only return the URL, e.g. when the person is on another machine |
tab | integer | Which tab, 1-based in the order returned (default: the first web page) |
fleet_doctor
Check devtools-fleet's setup: Node, which Chrome it launches, chrome-devtools-mcp version, permissions, config file, saved states and browsers in use. Run it yourself when a browser won't start, before asking the person anything.
click
Clicks on the provided element
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
uid * | string | The uid of an element on the page from the page content snapshot |
dblClick | boolean | Set to true for double clicks. Default is false. |
includeSnapshot | boolean | Whether to include a snapshot in the response. Default is false. |
close_page
Closes the page by its index. The last open page cannot be closed.
| Parameter | Type | Description |
|---|---|---|
pageId * | number | The ID of the page to close. Call list_pages to list pages. |
drag
Drag an element onto another element
| Parameter | Type | Description |
|---|---|---|
from_uid * | string | The uid of the element to drag |
pageId * | number | Targets a specific page by ID. |
to_uid * | string | The uid of the element to drop into |
includeSnapshot | boolean | Whether to include a snapshot in the response. Default is false. |
emulate
Emulates various features on the target page. Each call replaces all emulation settings (except extraHttpHeaders), so pass all desired settings in a single call.
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
colorScheme | string | Emulate the dark or the light mode. Omit or set to "auto" to reset to the default. |
cpuThrottlingRate | number | Represents the CPU slowdown factor. Omit or set the rate to 1 to disable throttling |
extraHttpHeaders | string | Extra HTTP headers as a JSON string object, e.g. {"X-Custom": "value", "Authorization": "Bearer token"}. Headers are included into every HTTP request originating from the page and persist across navig… |
forcedColors | string | Emulate the `forced-colors` CSS media feature. Omit or set to "auto" to reset to the default. |
geolocation | string | Geolocation (`<latitude>,<longitude>`) to emulate. Latitude between -90 and 90. Longitude between -180 and 180. Omit to clear the geolocation override. |
networkConditions | string | Throttle network. Omit to disable throttling. |
prefersContrast | string | Emulate the `prefers-contrast` CSS media feature. Omit or set to "auto" to reset to the default. |
prefersReducedMotion | string | Emulate the `prefers-reduced-motion` CSS media feature. Omit or set to "auto" to reset to the default. |
userAgent | string | User agent to emulate. Omit or set to empty string to clear the user agent override. |
viewport | string | Emulate device viewports '<width>x<height>x<devicePixelRatio>[,mobile][,touch][,landscape]'. 'touch' and 'mobile' to emulate mobile devices. 'landscape' to emulate landscape mode. Omit to clear the vi… |
evaluate_script
Evaluate JavaScript inside the target page. The source can be provided inline or loaded from a local file. Returns the response as JSON, so returned values have to be JSON-serializable.
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
args | array | An optional list of arguments (element uids from the page content snapshot) to pass to the function. |
dialogAction | string | Handle dialogs while execution. "accept", "dismiss", or string for response of window.prompt. Defaults to accept. |
filePath | string | The absolute or relative path to a file to save the script output to. If omitted, the output is returned inline. |
format | string | How to interpret the source. "function" treats it as a function declaration and supports args. "script" evaluates it as classic JavaScript and does not support args. Defaults to "function". ECMAScript… |
function | string | JavaScript source to execute in the target page. Provide either this or sourcePath, but not both. The source is interpreted according to format. Example without arguments: `() => document.title` or `a… |
sourcePath | string | The absolute or relative path to a JavaScript file on the MCP server's local filesystem. Provide either this or function, but not both. |
waitForStableDom | boolean | Whether to wait for the DOM to settle. Pass false if the script only reads data. Defaults to true. |
fill
Type text into an input, text area or select an option from a <select> element.
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
uid * | string | The uid of an element on the page from the page content snapshot |
value * | string | The value to fill in. "true" or "false" for checkboxes and toggles, "true" for radio buttons. |
includeSnapshot | boolean | Whether to include a snapshot in the response. Default is false. |
fill_form
Fill out multiple form elements (inputs, selects, checkboxes, radios) at once. ALWAYS prefer this tool over multiple individual 'fill' or 'click' calls when interacting with forms. It is significantly faster, more reliable, and reduces turn count. Example: Fill username, password, and check "Remember Me" in one call.
| Parameter | Type | Description |
|---|---|---|
elements * | array | Elements from snapshot to fill out. |
pageId * | number | Targets a specific page by ID. |
includeSnapshot | boolean | Whether to include a snapshot in the response. Default is false. |
get_console_message
Gets a console message by its ID. You can get all messages by calling list_console_messages.
| Parameter | Type | Description |
|---|---|---|
msgid * | number | The msgid of a console message on the page from the listed console messages |
pageId * | number | Targets a specific page by ID. |
get_css_styles
Retrieve computed styles, matched CSS rules, inline styles (element.style), inherited styles, custom properties, and cascade wrappers (@layer, @media, @container, @scope) for an element identified by its UID. Computed styles for the target element itself (not its pseudo-elements) appears as the first entry, showing display, width, height, and properties from matched or inherited rules; pass computedProperties to include additional CSS properties in Computed styles. Matched CSS rules follow from highest to lowest cascade precedence and include source line numbers (e.g. index:196). Active (winni…
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
uid * | string | The uid of the element on the page from the page content snapshot to inspect CSS styles for |
computedProperties | array | Additional CSS property names (in kebab-case, e.g. "position", "z-index", "overflow") to include in Computed styles even when not matched by any CSS rule. |
pageIdx | integer | Page number to return (0-based). Defaults to 0 (the first page). |
pageSize | integer | Maximum number of CSS rules to return per page. Defaults to 10. |
get_network_request
Gets a network request by an optional reqid, if omitted returns the currently selected request in the DevTools Network panel. Useful for inspecting request headers (including 'Cookie') and response headers (including 'Set-Cookie' and directives).
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
reqid | number | The reqid of the network request. If omitted returns the currently selected request in the DevTools Network panel. |
requestFilePath | string | The absolute or relative path to a .network-request file to save the request body to. If omitted, the body is returned inline. |
responseFilePath | string | The absolute or relative path to a .network-response file to save the response body to. If omitted, the body is returned inline. |
handle_dialog
If a browser dialog was opened, use this command to handle it
| Parameter | Type | Description |
|---|---|---|
action * | string | Whether to dismiss or accept the dialog |
pageId * | number | Targets a specific page by ID. |
promptText | string | Optional prompt text to enter into the dialog. |
hover
Hover over the provided element
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
uid * | string | The uid of an element on the page from the page content snapshot |
includeSnapshot | boolean | Whether to include a snapshot in the response. Default is false. |
lighthouse_audit
Get Lighthouse scores, failing audits, and the DOM nodes they flag for accessibility, SEO, best practices, and agentic browsing. Full reports are saved to disk. This excludes performance. For performance audits, run performance_start_trace
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
device | string | Device to emulate. |
mode | string | "navigation" reloads & audits. "snapshot" analyzes current state. |
outputDirPath | string | Directory for reports. If omitted, uses temporary files. |
list_console_messages
List all console messages for the target page since the last navigation.
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
includePreservedMessages | boolean | Set to true to return the preserved messages over the last 3 navigations. |
includeStackTraces | boolean | Set to true to include the stack trace for each message when available. Increases the response size. |
pageIdx | integer | Page number to return (0-based). When omitted, returns the first page. Ignored unless pageSize is set. |
pageSize | integer | Maximum number of messages to return. When omitted, returns all messages. |
types | array | Filter messages to only return messages of the specified resource types. When omitted or empty, returns all messages. |
list_network_requests
Lists the most recent requests for the target page since the last navigation.
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
includePreservedRequests | boolean | Set to true to return the preserved requests over the last 3 navigations. |
pageIdx | integer | Page number to return (0-based). When omitted, returns the first page. Ignored unless pageSize is set. |
pageSize | integer | Maximum number of requests to return. When omitted, returns all requests. |
resourceTypes | array | Filter requests to only return requests of the specified resource types. When omitted or empty, returns all requests. |
list_pages
Get a list of pages open in the browser.
new_page
Open a new tab and load a URL. Use project URL if not specified otherwise.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL to load in a new page. |
background | boolean | Whether to open the page in the background without bringing it to the front. Default is false (foreground). |
isolatedContext | string | 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 isolate… |
timeout | integer | Maximum wait time in milliseconds. If set to 0, the default timeout will be used. |
performance_analyze_insight
Provides more detailed information on a specific Performance Insight of an insight set that was highlighted in the results of a trace recording.
| Parameter | Type | Description |
|---|---|---|
insightName * | string | The name of the Insight you want more information on. For example: "DocumentLatency" or "LCPBreakdown" |
insightSetId * | string | The id for the specific insight set. Only use the ids given in the "Available insight sets" list. |
pageId * | number | Targets a specific page by ID. |
performance_start_trace
Start a performance trace on the target webpage. Use to find frontend performance issues, Core Web Vitals (LCP, INP, CLS), and improve page load speed.
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
autoStop | boolean | Determines if the trace recording should be automatically stopped. |
filePath | string | 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). |
ignoreCache | boolean | Whether to bypass the HTTP cache when reloading the page, to measure a cold page load. Only applies if reload is true. Active network mocks always disable the page HTTP cache. |
reload | boolean | Determines if, once tracing has started, the target page should be automatically reloaded. Navigate the page to the right URL using the navigate_page tool BEFORE starting the trace if reload or autoSt… |
performance_stop_trace
Stop the active performance trace recording on the target webpage.
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
filePath | string | 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). |
press_key
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). Note: On macOS, native <select> elements cannot be operated with ArrowDown/Enter via press_key; use fill() on the combobox or click() on the option instead.
| Parameter | Type | Description |
|---|---|---|
key * | string | A key or a combination (e.g., "Enter", "Control+A", "Control++", "Control+Shift+R"). Modifiers: Control, Shift, Alt, Meta |
pageId * | number | Targets a specific page by ID. |
includeSnapshot | boolean | Whether to include a snapshot in the response. Default is false. |
resize_page
Requests the specified page dimensions. Chrome may enforce a minimum window size, so the resulting page dimensions can differ from the requested values.
| Parameter | Type | Description |
|---|---|---|
height * | integer | Page height |
pageId * | number | Targets a specific page by ID. |
width * | integer | Page width |
screencast_start
Starts recording a screencast (video) of the target page.
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
filePath | string | Output file path (.mp4). Uses mkdtemp to generate a unique path if not provided. |
screencast_stop
Stops the active screencast recording on the target page.
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
select_page
Select a page as a context for future tool calls.
| Parameter | Type | Description |
|---|---|---|
pageId * | number | The ID of the page to select. Call list_pages to get available pages. |
bringToFront | boolean | Whether to focus the page and bring it to the top. |
set_logpoints
Set the complete set of logpoints of the selected page: logpoints not in the list are removed, new ones are added, and an empty list removes all. A logpoint logs expressions to the console every time a line executes, without pausing or changing the source, like logpoints in the DevTools Sources panel. Locations are script URLs or original source files resolved through source maps (not available with --no-source-maps; scripts in workers and out-of-process iframes are not supported). A location in a generated script moves to its original source line when a source map covers it, and locations on…
| Parameter | Type | Description |
|---|---|---|
logpoints * | array | Logpoints formatted as <url>:<lineNumber>[:<columnNumber>] <expression>. The url is a script URL or the path of an original source file from a source map, exact or as a path suffix (e.g. "src/app.ts")… |
pageId * | number | Targets a specific page by ID. |
take_heapsnapshot
Capture a heap snapshot of the target page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | A path to a .heapsnapshot file to save the heapsnapshot to. |
pageId * | number | Targets a specific page by ID. |
take_screenshot
Take a screenshot of the page or element.
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
filePath | string | 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 | string | Type of format to save the screenshot as. Default is "png" |
fullPage | boolean | If set to true takes a screenshot of the full page instead of the currently visible viewport. Incompatible with uid. |
omitBackground | boolean | Hide the default white background, allowing transparent PNG and WebP screenshots. Does not remove CSS backgrounds. Ignored for JPEG. |
quality | number | Compression quality for JPEG and WebP formats (0-100). Higher values mean better quality but larger file sizes. Ignored for PNG format. |
uid | string | The uid of an element on the page from the page content snapshot. If omitted, takes a page screenshot. |
take_snapshot
Take a text snapshot of the target 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).
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
filePath | string | 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 | Whether to include all possible information available in the full a11y tree. Default is false. |
type_text
Type text using keyboard into a previously focused input
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
text * | string | The text to type |
submitKey | string | Optional key to press after typing. E.g., "Enter", "Tab", "Escape" |
upload_file
Upload a file through a provided element.
| Parameter | Type | Description |
|---|---|---|
filePaths * | array | One or more files paths to upload. File paths have to be local to the browser instance (not the MCP). |
pageId * | number | Targets a specific page by ID. |
uid * | string | 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 | Whether to include a snapshot in the response. Default is false. |
wait_for
Wait for the specified text to appear on the selected page. By default, hidden text is also matched. Set visible to true to wait until the matched text is visible.
| Parameter | Type | Description |
|---|---|---|
pageId * | number | Targets a specific page by ID. |
text * | array | Non-empty list of texts. Resolves when any value matches an accessible name exactly or is a substring of DOM text. Matching is case-sensitive. DOM text preserves spaces and newlines, unlike snapshot t… |
timeout | integer | Maximum wait time in milliseconds. If set to 0, the default timeout will be used. |
visible | boolean | If true, wait until the matching text is visible. By default, hidden text also counts. |