{"at":"2026-11-23T03:39:27.403Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T03:39:28.232Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T03:39:28.332Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T03:39:29.114Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"logging":{},"tools":{"listChanged":true}},"instructions":"Chrome DevTools MCP lets you drive and inspect live Chrome browser(s) with full DevTools access: navigate, interact with pages, and inspect network, console, performance and memory.\n\nA single Chrome browser is connected. Do not pass a `browserIndex` argument to any tool — every tool automatically targets this browser.\n\nIf the connection drops, use `reconnect_browser` to reconnect; the browser must already be running (no start command is configured). Use `list_browsers` to see its connection state and open pages.\n\nCore workflow:\n- Call `take_snapshot` to get a structured text snapshot whose elements carry\n  `uid`s, then pass those `uid`s to the interaction tools (`click`, `fill`,\n  `hover`, `drag`, `fill_form`, ...). Prefer snapshots over screenshots for\n  locating elements.\n- `list_pages`, `new_page`, `select_page`, `navigate_page` and `wait_for`\n  manage tabs and navigation.\n- `list_network_requests`, `list_console_messages`, the performance tracing\n  tools and the emulation tools support debugging.\n\nSecrets:\n- NEVER pass a password or other secret as literal text to `fill`,\n  `fill_form`, `type_text`, `set_cookie` or `evaluate_script`: tool\n  arguments are recorded in the conversation transcript. Instead stage it\n  by reference (e.g.\n  `pass show x > ~/.local/share/chrome-devtools-mcp/secrets/<name>`, never `echo \"<literal>\"`)\n  and pass `{{secret:<name>}}`, which this server substitutes just before\n  the input reaches the browser, so the value never enters the transcript.\n- The secret file is deleted once the call succeeds; append `:keep` to\n  retain it, `:raw` to keep a trailing newline. Pick a unique, specific\n  name - ~/.local/share/chrome-devtools-mcp/secrets is shared by all MCP servers running in\n  parallel.\n- A file passed to evaluate_script's `sourcePath` may carry the same\n  placeholders; they are resolved after the file is read.","protocolVersion":"2025-11-25","serverInfo":{"name":"chrome_devtools","title":"Chrome DevTools MCP server","version":"1.10.1"}}}}
{"at":"2026-11-23T03:39:29.114Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T03:39:29.114Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T03:39:29.175Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"category":"network","readOnlyHint":false},"description":"Deletes cookies from the browser. Pass 'name' and/or 'domain' to delete matching cookies, or 'all' to clear every cookie in the browser. Use this to return to a signed-out or first-visit state.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"all":{"description":"Set to true to delete EVERY cookie in the browser. This signs the user out of every site, so it is required when no other filter is given, to make a full wipe explicit.","type":"boolean"},"domain":{"description":"Only delete cookies for this domain and its subdomains, e.g. \"example.com\" also matches \"www.example.com\" but not \"notexample.com\" (case-insensitive).","type":"string"},"name":{"description":"Only delete cookies with this exact name.","type":"string"},"pageId":{"description":"Targets a specific page by ID.","type":"number"}},"required":["pageId"],"type":"object"},"name":"clear_cookies"},{"annotations":{"category":"input","readOnlyHint":false},"description":"Clicks on the provided element","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"dblClick":{"description":"Set to true for double clicks. Default is false.","type":"boolean"},"includeSnapshot":{"description":"Whether to include a snapshot in the response. Default is false.","type":"boolean"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"uid":{"description":"The uid of an element on the page from the page content snapshot","type":"string"}},"required":["pageId","uid"],"type":"object"},"name":"click"},{"annotations":{"category":"navigation","readOnlyHint":false,"skipBrowserContext":true},"description":"Close the whole browser (not a single tab). The browser window is terminated. reconnect_browser can bring it back if a start command or launch configuration is available.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{},"type":"object"},"name":"close_browser"},{"annotations":{"category":"navigation","readOnlyHint":false},"description":"Closes the page by its index. The last open page cannot be closed.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"pageId":{"description":"The ID of the page to close. Call list_pages to list pages.","type":"number"}},"required":["pageId"],"type":"object"},"name":"close_page"},{"annotations":{"category":"input","readOnlyHint":false},"description":"Drag an element onto another element","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"from_uid":{"description":"The uid of the element to drag","type":"string"},"includeSnapshot":{"description":"Whether to include a snapshot in the response. Default is false.","type":"boolean"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"to_uid":{"description":"The uid of the element to drop into","type":"string"}},"required":["pageId","from_uid","to_uid"],"type":"object"},"name":"drag"},{"annotations":{"category":"emulation","readOnlyHint":false},"description":"Emulates various features on the target page.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"colorScheme":{"description":"Emulate the dark or the light mode. Set to \"auto\" to reset to the default.","enum":["dark","light","auto"],"type":"string"},"cpuThrottlingRate":{"description":"Represents the CPU slowdown factor. Omit or set the rate to 1 to disable throttling","maximum":20,"minimum":1,"type":"number"},"extraHttpHeaders":{"description":"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 navigations until cleared. Pass an empty string to clear all extra headers.","type":"string"},"geolocation":{"description":"Geolocation (`<latitude>,<longitude>`) to emulate. Latitude between -90 and 90. Longitude between -180 and 180. Omit to clear the geolocation override.","type":"string"},"networkConditions":{"description":"Throttle network. Omit to disable throttling.","enum":["Offline","Slow 3G","Fast 3G","Slow 4G","Fast 4G"],"type":"string"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"userAgent":{"description":"User agent to emulate. Set to empty string to clear the user agent override.","type":"string"},"viewport":{"description":"Emulate device viewports '<width>x<height>x<devicePixelRatio>[,mobile][,touch][,landscape]'. 'touch' and 'mobile' to emulate mobile devices. 'landscape' to emulate landscape mode.","type":"string"}},"required":["pageId"],"type":"object"},"name":"emulate"},{"annotations":{"category":"debugging","conditions":["javascriptEvaluation"],"readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"args":{"description":"An optional list of arguments to pass to the function.","items":{"description":"The uid of an element on the page from the page content snapshot","type":"string"},"type":"array"},"dialogAction":{"description":"Handle dialogs while execution. \"accept\", \"dismiss\", or string for response of window.prompt. Defaults to accept.","type":"string"},"filePath":{"description":"The absolute or relative path to a file to save the script output to. If omitted, the output is returned inline.","type":"string"},"format":{"description":"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 modules are not supported.","enum":["function","script"],"type":"string"},"function":{"description":"JavaScript source to execute in the target page. Provide either this or sourcePath, but not both. The source is interpreted according to format.\nExample without arguments: `() => document.title` or `async () => await fetch(\"example.com\")`.\nExample with arguments: `(el) => el.innerText`\nMay contain `{{secret:NAME}}`, which is replaced with the contents of ~/.local/share/chrome-devtools-mcp/secrets/NAME by this MCP server just before the input is sent to the browser, so the secret never has to be passed to this tool. Stage such files by reference (e.g. `pass show x > ~/.local/share/chrome-devtools-mcp/secrets/x`), never by writing the literal value. The secret file is DELETED once the call succeeds; append `:keep` (`{{secret:NAME:keep}}`) to keep it for later calls. Append `:raw` (`{{secret:NAME:raw}}`, `{{secret:NAME:raw:keep}}`) to keep a trailing newline. The directory can be relocated with the CHROME_DEVTOOLS_MCP_SECRETS_DIR environment variable. ALWAYS pick a unique, specific NAME (e.g. \"github-login-7f3a\" rather than \"pw\"): ~/.local/share/chrome-devtools-mcp/secrets is shared by all MCP servers running in parallel, so a generic name can be overwritten by another session and make you fill the wrong value, or be deleted while you still need it.\nA file given as 'sourcePath' may contain the same placeholders; they are resolved after the file is read.\n","type":"string"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"sourcePath":{"description":"The absolute or relative path to a JavaScript file on the MCP server's local filesystem. Provide either this or function, but not both.","type":"string"},"waitForStableDom":{"description":"Whether to wait for the DOM to settle. Pass false if the script only reads data. Defaults to true.","type":"boolean"}},"required":["pageId"],"type":"object"},"name":"evaluate_script"},{"annotations":{"category":"input","readOnlyHint":false},"description":"Type text into an input, text area or select an option from a <select> element.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"includeSnapshot":{"description":"Whether to include a snapshot in the response. Default is false.","type":"boolean"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"uid":{"description":"The uid of an element on the page from the page content snapshot","type":"string"},"value":{"description":"The value to fill in. \"true\" or \"false\" for checkboxes and toggles, \"true\" for radio buttons. May contain `{{secret:NAME}}`, which is replaced with the contents of ~/.local/share/chrome-devtools-mcp/secrets/NAME by this MCP server just before the input is sent to the browser, so the secret never has to be passed to this tool. Stage such files by reference (e.g. `pass show x > ~/.local/share/chrome-devtools-mcp/secrets/x`), never by writing the literal value. The secret file is DELETED once the call succeeds; append `:keep` (`{{secret:NAME:keep}}`) to keep it for later calls. Append `:raw` (`{{secret:NAME:raw}}`, `{{secret:NAME:raw:keep}}`) to keep a trailing newline. The directory can be relocated with the CHROME_DEVTOOLS_MCP_SECRETS_DIR environment variable. ALWAYS pick a unique, specific NAME (e.g. \"github-login-7f3a\" rather than \"pw\"): ~/.local/share/chrome-devtools-mcp/secrets is shared by all MCP servers running in parallel, so a generic name can be overwritten by another session and make you fill the wrong value, or be deleted while you still need it.","type":"string"}},"required":["pageId","uid","value"],"type":"object"},"name":"fill"},{"annotations":{"category":"input","readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"elements":{"description":"Elements from snapshot to fill out.","items":{"description":"An element to fill out","properties":{"uid":{"description":"The uid of the element to fill out","type":"string"},"value":{"description":"Value for the element. \"true\" or \"false\" for checkboxes and toggles, \"true\" for radio buttons. May contain `{{secret:NAME}}`, which is replaced with the contents of ~/.local/share/chrome-devtools-mcp/secrets/NAME by this MCP server just before the input is sent to the browser, so the secret never has to be passed to this tool. Stage such files by reference (e.g. `pass show x > ~/.local/share/chrome-devtools-mcp/secrets/x`), never by writing the literal value. The secret file is DELETED once the call succeeds; append `:keep` (`{{secret:NAME:keep}}`) to keep it for later calls. Append `:raw` (`{{secret:NAME:raw}}`, `{{secret:NAME:raw:keep}}`) to keep a trailing newline. The directory can be relocated with the CHROME_DEVTOOLS_MCP_SECRETS_DIR environment variable. ALWAYS pick a unique, specific NAME (e.g. \"github-login-7f3a\" rather than \"pw\"): ~/.local/share/chrome-devtools-mcp/secrets is shared by all MCP servers running in parallel, so a generic name can be overwritten by another session and make you fill the wrong value, or be deleted while you still need it.","type":"string"}},"required":["uid","value"],"type":"object"},"type":"array"},"includeSnapshot":{"description":"Whether to include a snapshot in the response. Default is false.","type":"boolean"},"pageId":{"description":"Targets a specific page by ID.","type":"number"}},"required":["pageId","elements"],"type":"object"},"name":"fill_form"},{"annotations":{"category":"debugging","readOnlyHint":true},"description":"Gets a console message by its ID. You can get all messages by calling list_console_messages.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"msgid":{"description":"The msgid of a console message on the page from the listed console messages","type":"number"},"pageId":{"description":"Targets a specific page by ID.","type":"number"}},"required":["pageId","msgid"],"type":"object"},"name":"get_console_message"},{"annotations":{"category":"network","readOnlyHint":true},"description":"Gets all cookies stored in the browser's default context and writes them, including their values, to a JSON file. The tool reports only which cookies were found (name, domain, and security metadata); cookie values are never returned inline and only exist in the file.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"domain":{"description":"Only return cookies for this domain and its subdomains, e.g. \"example.com\" also matches \"www.example.com\" (case-insensitive). When omitted, returns all cookies.","type":"string"},"filePath":{"description":"The absolute or relative path to a .json file to write the cookies (including their values) to.","type":"string"},"pageId":{"description":"Targets a specific page by ID.","type":"number"}},"required":["pageId","filePath"],"type":"object"},"name":"get_cookies"},{"annotations":{"category":"debugging","readOnlyHint":true},"description":"Retrieve 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.\nRules are ordered from highest to lowest cascade precedence and include source line numbers (e.g. index:196). Active (winning) declarations have no prefix tag, while (losing) overridden declarations are prefixed with [overloaded].\nTreat the output as authoritative and complete.\nResults are paginated (10 rules per page by default); use pageIdx to page through the remaining rules. Requires a UID from take_snapshot.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"pageId":{"description":"Targets a specific page by ID.","type":"number"},"pageIdx":{"default":0,"description":"Page number to return (0-based). Defaults to 0 (the first page).","maximum":9007199254740991,"minimum":0,"type":"integer"},"pageSize":{"default":10,"description":"Maximum number of CSS rules to return per page. Defaults to 10.","exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"uid":{"description":"The uid of the element on the page from the page content snapshot to inspect CSS styles for","type":"string"}},"required":["pageId","uid"],"type":"object"},"name":"get_css_styles"},{"annotations":{"category":"network","readOnlyHint":false},"description":"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).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"pageId":{"description":"Targets a specific page by ID.","type":"number"},"reqid":{"description":"The reqid of the network request. If omitted returns the currently selected request in the DevTools Network panel.","type":"number"},"requestFilePath":{"description":"The absolute or relative path to a .network-request file to save the request body to. If omitted, the body is returned inline.","type":"string"},"responseFilePath":{"description":"The absolute or relative path to a .network-response file to save the response body to. If omitted, the body is returned inline.","type":"string"}},"required":["pageId"],"type":"object"},"name":"get_network_request"},{"annotations":{"category":"input","readOnlyHint":false},"description":"If a browser dialog was opened, use this command to handle it","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"action":{"description":"Whether to dismiss or accept the dialog","enum":["accept","dismiss"],"type":"string"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"promptText":{"description":"Optional prompt text to enter into the dialog.","type":"string"}},"required":["pageId","action"],"type":"object"},"name":"handle_dialog"},{"annotations":{"category":"input","readOnlyHint":false},"description":"Hover over the provided element","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"includeSnapshot":{"description":"Whether to include a snapshot in the response. Default is false.","type":"boolean"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"uid":{"description":"The uid of an element on the page from the page content snapshot","type":"string"}},"required":["pageId","uid"],"type":"object"},"name":"hover"},{"annotations":{"category":"debugging","readOnlyHint":false},"description":"Get Lighthouse score and reports for accessibility, SEO, best practices, and agentic browsing. This excludes performance. For performance audits, run performance_start_trace","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"device":{"default":"desktop","description":"Device to emulate.","enum":["desktop","mobile"],"type":"string"},"mode":{"default":"navigation","description":"\"navigation\" reloads & audits. \"snapshot\" analyzes current state.","enum":["navigation","snapshot"],"type":"string"},"outputDirPath":{"description":"Directory for reports. If omitted, uses temporary files.","type":"string"},"pageId":{"description":"Targets a specific page by ID.","type":"number"}},"required":["pageId"],"type":"object"},"name":"lighthouse_audit"},{"annotations":{"category":"navigation","readOnlyHint":true,"skipBrowserContext":true},"description":"List the connected browser, its connection state and open pages.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{},"type":"object"},"name":"list_browsers"},{"annotations":{"category":"debugging","readOnlyHint":true},"description":"List all console messages for the target page since the last navigation.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"includePreservedMessages":{"default":false,"description":"Set to true to return the preserved messages over the last 3 navigations.","type":"boolean"},"includeStackTraces":{"default":false,"description":"Set to true to include the stack trace for each message when available. Increases the response size.","type":"boolean"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"pageIdx":{"description":"Page number to return (0-based). When omitted, returns the first page.","maximum":9007199254740991,"minimum":0,"type":"integer"},"pageSize":{"description":"Maximum number of messages to return. When omitted, returns all messages.","exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"serviceWorkerId":{"description":"Filter messages to only return messages of the specified service worker.","type":"string"},"types":{"description":"Filter messages to only return messages of the specified resource types. When omitted or empty, returns all messages.","items":{"enum":["log","debug","info","error","warn","dir","dirxml","table","trace","clear","startGroup","startGroupCollapsed","endGroup","assert","profile","profileEnd","count","timeEnd","verbose","issue"],"type":"string"},"type":"array"}},"required":["pageId"],"type":"object"},"name":"list_console_messages"},{"annotations":{"category":"network","readOnlyHint":true},"description":"Lists the most recent requests for the target page since the last navigation.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"includePreservedRequests":{"default":false,"description":"Set to true to return the preserved requests over the last 3 navigations.","type":"boolean"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"pageIdx":{"description":"Page number to return (0-based). When omitted, returns the first page.","maximum":9007199254740991,"minimum":0,"type":"integer"},"pageSize":{"description":"Maximum number of requests to return. When omitted, returns all requests.","exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"resourceTypes":{"description":"Filter requests to only return requests of the specified resource types. When omitted or empty, returns all requests.","items":{"enum":["document","stylesheet","image","media","font","script","texttrack","xhr","fetch","prefetch","eventsource","websocket","manifest","signedexchange","ping","cspviolationreport","preflight","fedcm","other"],"type":"string"},"type":"array"}},"required":["pageId"],"type":"object"},"name":"list_network_requests"},{"annotations":{"category":"navigation","readOnlyHint":true},"description":"Get a list of pages open in the browser.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{},"type":"object"},"name":"list_pages"},{"annotations":{"category":"navigation","readOnlyHint":false},"description":"Go to a URL, or back, forward, or reload. Use project URL if not specified otherwise.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"handleBeforeUnload":{"description":"Whether to auto accept or beforeunload dialogs triggered by this navigation. Default is accept.","enum":["accept","dismiss"],"type":"string"},"ignoreCache":{"description":"Whether to ignore cache on reload.","type":"boolean"},"initScript":{"description":"A JavaScript script to be executed on each new document before any other scripts for the next navigation.","type":"string"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"timeout":{"description":"Maximum wait time in milliseconds. If set to 0, the default timeout will be used.","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"type":{"description":"Navigate the page by URL, back or forward in history, or reload.","enum":["url","back","forward","reload"],"type":"string"},"url":{"description":"Target URL (only type=url)","type":"string"}},"required":["pageId"],"type":"object"},"name":"navigate_page"},{"annotations":{"category":"navigation","readOnlyHint":false},"description":"Open a new tab and load a URL. Use project URL if not specified otherwise.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"background":{"description":"Whether to open the page in the background without bringing it to the front. Default is false (foreground).","type":"boolean"},"isolatedContext":{"description":"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 (useful for clean-slate testing of cookies and authentication).","type":"string"},"timeout":{"description":"Maximum wait time in milliseconds. If set to 0, the default timeout will be used.","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"url":{"description":"URL to load in a new page.","type":"string"}},"required":["url"],"type":"object"},"name":"new_page"},{"annotations":{"category":"performance","readOnlyHint":true},"description":"Provides more detailed information on a specific Performance Insight of an insight set that was highlighted in the results of a trace recording.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"insightName":{"description":"The name of the Insight you want more information on. For example: \"DocumentLatency\" or \"LCPBreakdown\"","type":"string"},"insightSetId":{"description":"The id for the specific insight set. Only use the ids given in the \"Available insight sets\" list.","type":"string"},"pageId":{"description":"Targets a specific page by ID.","type":"number"}},"required":["pageId","insightSetId","insightName"],"type":"object"},"name":"performance_analyze_insight"},{"annotations":{"category":"performance","readOnlyHint":false},"description":"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.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"autoStop":{"default":true,"description":"Determines if the trace recording should be automatically stopped.","type":"boolean"},"filePath":{"description":"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).","type":"string"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"reload":{"default":true,"description":"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 autoStop is set to true.","type":"boolean"}},"required":["pageId"],"type":"object"},"name":"performance_start_trace"},{"annotations":{"category":"performance","readOnlyHint":false},"description":"Stop the active performance trace recording on the target webpage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"filePath":{"description":"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).","type":"string"},"pageId":{"description":"Targets a specific page by ID.","type":"number"}},"required":["pageId"],"type":"object"},"name":"performance_stop_trace"},{"annotations":{"category":"input","readOnlyHint":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).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"includeSnapshot":{"description":"Whether to include a snapshot in the response. Default is false.","type":"boolean"},"key":{"description":"A key or a combination (e.g., \"Enter\", \"Control+A\", \"Control++\", \"Control+Shift+R\"). Modifiers: Control, Shift, Alt, Meta","type":"string"},"pageId":{"description":"Targets a specific page by ID.","type":"number"}},"required":["pageId","key"],"type":"object"},"name":"press_key"},{"annotations":{"category":"input","readOnlyHint":false},"description":"Press multiple keys or key combinations in sequence. Use this when you need to perform a series of key presses.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"includeSnapshot":{"description":"Whether to include a snapshot in the response. Default is false.","type":"boolean"},"keys":{"description":"An array of keys or key combinations to press in sequence","items":{"description":"A key or a combination (e.g., \"Enter\", \"Control+A\", \"Control+Shift+R\"). Modifiers: Control, Shift, Alt, Meta","type":"string"},"type":"array"},"pageId":{"description":"Targets a specific page by ID.","type":"number"}},"required":["pageId","keys"],"type":"object"},"name":"press_keys"},{"annotations":{"category":"navigation","readOnlyHint":false,"skipBrowserContext":true},"description":"Reconnect the browser if its connection was lost or it is not running yet. If a start command is configured the browser is (re)started.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"url":{"description":"Absolute http(s) URL the browser should open when it is (re)launched. Substituted into the {url} placeholder of the configured start command. Required when that start command contains a {url} placeholder. Only http and https URLs are accepted.","type":"string"}},"type":"object"},"name":"reconnect_browser"},{"annotations":{"category":"emulation","readOnlyHint":false},"description":"Resizes the page's window so that the page has specified dimension","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"height":{"description":"Page height","type":"number"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"width":{"description":"Page width","type":"number"}},"required":["pageId","width","height"],"type":"object"},"name":"resize_page"},{"annotations":{"category":"navigation","readOnlyHint":true},"description":"Select a page as a context for future tool calls.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"bringToFront":{"description":"Whether to focus the page and bring it to the top.","type":"boolean"},"pageId":{"description":"The ID of the page to select. Call list_pages to get available pages.","type":"number"}},"required":["pageId"],"type":"object"},"name":"select_page"},{"annotations":{"category":"network","readOnlyHint":false},"description":"Sets a cookie in the browser. Either 'url' or 'domain' must be given. Use this to restore a session, toggle a feature flag, or reproduce a state that depends on a specific cookie.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"domain":{"description":"The cookie domain, e.g. \"example.com\" or \".example.com\" to include subdomains. Either this or \"url\" is required.","type":"string"},"expires":{"description":"Expiry as seconds since the UNIX epoch. Omit to create a session cookie that is dropped when the browser closes.","type":"number"},"httpOnly":{"description":"Whether the cookie is inaccessible to JavaScript.","type":"boolean"},"name":{"description":"The name of the cookie.","type":"string"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"path":{"description":"The cookie path. Defaults to \"/\" when a domain is given.","type":"string"},"sameSite":{"description":"The SameSite policy. \"None\" requires secure to be true.","enum":["Strict","Lax","None"],"type":"string"},"secure":{"description":"Whether the cookie is only sent over HTTPS.","type":"boolean"},"url":{"description":"The request URI to associate the cookie with, which sets its domain and path. Either this or \"domain\" is required.","type":"string"},"value":{"description":"The value of the cookie. A cookie value is often a session token, and this parameter is recorded in the conversation transcript, so prefer a placeholder. May contain `{{secret:NAME}}`, which is replaced with the contents of ~/.local/share/chrome-devtools-mcp/secrets/NAME by this MCP server just before the input is sent to the browser, so the secret never has to be passed to this tool. Stage such files by reference (e.g. `pass show x > ~/.local/share/chrome-devtools-mcp/secrets/x`), never by writing the literal value. The secret file is DELETED once the call succeeds; append `:keep` (`{{secret:NAME:keep}}`) to keep it for later calls. Append `:raw` (`{{secret:NAME:raw}}`, `{{secret:NAME:raw:keep}}`) to keep a trailing newline. The directory can be relocated with the CHROME_DEVTOOLS_MCP_SECRETS_DIR environment variable. ALWAYS pick a unique, specific NAME (e.g. \"github-login-7f3a\" rather than \"pw\"): ~/.local/share/chrome-devtools-mcp/secrets is shared by all MCP servers running in parallel, so a generic name can be overwritten by another session and make you fill the wrong value, or be deleted while you still need it.","type":"string"}},"required":["pageId","name","value"],"type":"object"},"name":"set_cookie"},{"annotations":{"category":"memory","readOnlyHint":false},"description":"Capture a heap snapshot of the target page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"filePath":{"description":"A path to a .heapsnapshot file to save the heapsnapshot to.","type":"string"},"pageId":{"description":"Targets a specific page by ID.","type":"number"}},"required":["pageId","filePath"],"type":"object"},"name":"take_heapsnapshot"},{"annotations":{"category":"debugging","readOnlyHint":false},"description":"Take a screenshot of the page or element.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"filePath":{"description":"The absolute path, or a path relative to the current working directory, to save the screenshot to instead of attaching it to the response.","type":"string"},"format":{"default":"png","description":"Type of format to save the screenshot as. Default is \"png\"","enum":["png","jpeg","webp"],"type":"string"},"fullPage":{"description":"If set to true takes a screenshot of the full page instead of the currently visible viewport. Incompatible with uid.","type":"boolean"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"quality":{"description":"Compression quality for JPEG and WebP formats (0-100). Higher values mean better quality but larger file sizes. Ignored for PNG format.","maximum":100,"minimum":0,"type":"number"},"uid":{"description":"The uid of an element on the page from the page content snapshot. If omitted, takes a page screenshot.","type":"string"}},"required":["pageId"],"type":"object"},"name":"take_screenshot"},{"annotations":{"category":"debugging","readOnlyHint":false},"description":"Take a text snapshot of the target page based on the a11y tree. The snapshot lists page elements along with a unique\nidentifier (uid). Always use the latest snapshot. Prefer taking a snapshot over taking a screenshot. The snapshot indicates the element selected\nin the DevTools Elements panel (if any).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"filePath":{"description":"The absolute path, or a path relative to the current working directory, to save the snapshot to instead of attaching it to the response.","type":"string"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"verbose":{"description":"Whether to include all possible information available in the full a11y tree. Default is false.","type":"boolean"}},"required":["pageId"],"type":"object"},"name":"take_snapshot"},{"annotations":{"category":"input","readOnlyHint":false},"description":"Type text using keyboard into a previously focused input","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"pageId":{"description":"Targets a specific page by ID.","type":"number"},"submitKey":{"description":"Optional key to press after typing. E.g., \"Enter\", \"Tab\", \"Escape\"","type":"string"},"text":{"description":"The text to type. May contain `{{secret:NAME}}`, which is replaced with the contents of ~/.local/share/chrome-devtools-mcp/secrets/NAME by this MCP server just before the input is sent to the browser, so the secret never has to be passed to this tool. Stage such files by reference (e.g. `pass show x > ~/.local/share/chrome-devtools-mcp/secrets/x`), never by writing the literal value. The secret file is DELETED once the call succeeds; append `:keep` (`{{secret:NAME:keep}}`) to keep it for later calls. Append `:raw` (`{{secret:NAME:raw}}`, `{{secret:NAME:raw:keep}}`) to keep a trailing newline. The directory can be relocated with the CHROME_DEVTOOLS_MCP_SECRETS_DIR environment variable. ALWAYS pick a unique, specific NAME (e.g. \"github-login-7f3a\" rather than \"pw\"): ~/.local/share/chrome-devtools-mcp/secrets is shared by all MCP servers running in parallel, so a generic name can be overwritten by another session and make you fill the wrong value, or be deleted while you still need it.","type":"string"}},"required":["pageId","text"],"type":"object"},"name":"type_text"},{"annotations":{"category":"input","readOnlyHint":false},"description":"Upload a file through a provided element.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"filePaths":{"description":"One or more files paths to upload. File paths have to be local to the browser instance (not the MCP).","items":{"type":"string"},"minItems":1,"type":"array"},"includeSnapshot":{"description":"Whether to include a snapshot in the response. Default is false.","type":"boolean"},"pageId":{"description":"Targets a specific page by ID.","type":"number"},"uid":{"description":"The uid of the file input element or an element that will open file chooser on the page from the page content snapshot","type":"string"}},"required":["pageId","uid","filePaths"],"type":"object"},"name":"upload_file"},{"annotations":{"category":"navigation","readOnlyHint":true},"description":"Wait for the specified text to appear on the selected page.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"pageId":{"description":"Targets a specific page by ID.","type":"number"},"text":{"description":"Non-empty list of texts. Resolves when any value appears on the page.","items":{"type":"string"},"minItems":1,"type":"array"},"timeout":{"description":"Maximum wait time in milliseconds. If set to 0, the default timeout will be used.","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["pageId","text"],"type":"object"},"name":"wait_for"}]}}}
