Every developer knows the loop. Something is wrong in the cart total, so you add a log line, reload, read it, add another one, reload again, and then spend ten minutes removing the log lines you scattered across the file. Chrome DevTools has had a cleaner answer in its Sources panel for years: the logpoint, a marker that logs a value when a line runs and never touches the file.
Version 1.13.0 of Chrome DevTools MCP brings that answer to coding agents. The new set_logpoints tool, added on November 11, 2026 and built on the DevTools BreakpointManager, lets an agent place logpoints on a page it is driving, read the output, and clear them again. Your source stays exactly as it was.
This guide follows the official ChromeDevTools/chrome-devtools-mcp repository, its tool reference, and the 1.13.0 release notes, checked on November 24, 2026. It claims no test run of its own.
What You Will Build or Learn
You will give your coding agent a way to watch a value inside a running page without editing source code and without pausing execution. By the end, you will know the exact entry format set_logpoints expects, where its output appears, which locations it cannot handle, and how to remove logpoints so none survive into the next session by accident.
For a related agent setup, see our tutorial on connecting the ngrok MCP server to coding agents, and for working with agent tool calls in batches, see batch tool calls with Claude Code Mode.
The logpoint lives in the browser session, not in your file. Illustration: Dirty Static
Before You Begin
A logpoint logs an expression. That expression runs in the page, with access to the values in scope at that line. Treat logpoint expressions like code you would run in the console, because that is close to what they are.
Two limits shape the whole workflow, both stated in the tool reference. Logpoints are not available when source maps are turned off with the --no-source-maps flag, and scripts in workers and in out of process iframes are not supported. The tool is also disabled when JavaScript evaluation is turned off with the --no-javascript-evaluation flag, per the 1.13.0 release notes.
Step 1: Install or Update the Server
Action: add the server to your MCP client with the latest tag, or update an existing entry to use it. The official README gives this config for a client that uses the mcpServers form:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"]
}
}
}
For Claude Code, the tracked setup guides record the equivalent command form:
claude mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
Expected result: your client lists a server named chrome-devtools. The server does not open a browser on its own. Per the README, the browser starts only when a tool that needs one is called. Using the latest tag matters here, because logpoints only exist from version 1.13.0 onward. If your client pins an older version, update the pin before you continue.
Step 2: Open the Page You Want to Inspect
Action: ask the agent to open or navigate to the page under inspection, for example with a prompt naming the address and the behaviour you want to trace. The agent uses its page tools to create or navigate a page, and that page becomes the selected page for the logpoint call.
Expected result: the page loads in the Chrome instance the server drives. Note the exact file name and line number you care about in the original source, not only in the built bundle. The next step resolves original source locations through source maps when they exist.
Step 3: Set a Logpoint
Action: ask the agent to call set_logpoints with the complete list you want active. Each entry is a string in this format, per the tool reference:
<url>:<lineNumber>[:<columnNumber>] <expression>
A worked example, using the form shown in coverage of the release:
src/cart.ts:42 'cart total:', cart.total
That entry logs the label and the value of cart.total every time line 42 of that file runs. A few rules from the tool reference decide what actually happens:
- The call sets the complete set for the selected page. Logpoints not in the list are removed, new ones are added, and an empty list removes all of them.
- Locations can be script URLs or original source files resolved through source maps. A location in a generated script moves to its original source line when a source map covers it.
- Two entries on the same line become one logpoint, and the last expression wins.
- Logpoints survive reloads and navigations until they are removed or the page is closed.
Expected result: the tool response lists the resulting logpoints and where each one is bound. If a location binds to a different line than you expected, fix the entry and call the tool again with the full corrected list.
Step 4: Run the Page and Read the Output
Action: trigger the behaviour that runs the line, such as reloading the page or repeating the click or submit that reaches the code. Then ask the agent to read the console with list_console_messages.
Expected result: each hit appears as a console message holding the values your expression produced. If an expression throws, the tool reference says the output is an error message without text, which is your signal that the expression names a value that is not in scope at that line. Correct the expression, then call set_logpoints again with the full list.
Step 5: Remove Every Logpoint
Action: ask the agent to call set_logpoints with an empty list.
Expected result: every logpoint on the selected page is removed. Closing the page also ends its logpoints, per the tool reference, but the empty list is the explicit cleanup, and it is worth doing before you move on to other work in the same session.
Verification
Reload the page and repeat the behaviour from Step 4. Before cleanup, the console list should gain a new message each time the line runs, and the values should change when the underlying data changes. After the empty list call in Step 5, the same reload should produce no further logpoint messages. Your source file should show no added log statements at any point, which you can confirm with your version control diff.
Troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
The agent has no set_logpoints tool | The server is older than 1.13.0, or JavaScript evaluation is off | Update to chrome-devtools-mcp@latest and remove the --no-javascript-evaluation flag if you set it |
| A logpoint binds to the wrong line | The location used the built bundle instead of the original source | Use the original source file and line, and keep source maps enabled |
| No output after the line runs | The location is in a worker or an out of process iframe, or the behaviour never reached the line | Move the logpoint to code in the main page, and confirm the flow reaches that line |
| The console shows an error with no text | The expression threw, often because a name is out of scope at that line | Simplify the expression to a value that exists at that line |
| An old logpoint keeps logging | The last call omitted it by accident, since each call replaces the whole set | Call set_logpoints with an empty list to clear all logpoints |
Next Steps
Once a single logpoint feels routine, use a short list of them to trace a value across two or three points in one flow, instead of stopping the page with a breakpoint. Keep the list short, read the console output in order, and clear the set when the question is answered. The same server also records performance traces and lists network requests, so the natural follow up is to ask the agent for a trace of the same page and compare what the timing says with what your logpoints showed.
Sources
- ChromeDevTools/chrome-devtools-mcp repository and README, including requirements, the standard MCP client config, supported browsers, and the disclaimer that the server exposes browser content to MCP clients: https://github.com/ChromeDevTools/chrome-devtools-mcp
- Chrome DevTools MCP tool reference entry for
set_logpoints, as tracked in release comparisons: complete set behaviour, location format, source map handling, console output, reload persistence, and worker and iframe limits. - Chrome DevTools MCP version 1.13.0 release notes, November 11, 2026: logpoints built on the DevTools BreakpointManager, and
set_logpointsdisabled when JavaScript evaluation is off. - Reveneau coverage of the 1.13.0 release, November 14, 2026: logpoints and page scoped network mocks, at https://reveneau.com/ainews/chrome-devtools-mcp-v1-13-logpoints-network-mocks-coding-agents
END OF TRANSMISSION
Stay curious. Question everything.


