Meziantou.Framework.WebPlatform.DevTools.Tool 1.0.13

Prefix Reserved
dotnet tool install --global Meziantou.Framework.WebPlatform.DevTools.Tool --version 1.0.13
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Meziantou.Framework.WebPlatform.DevTools.Tool --version 1.0.13
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Meziantou.Framework.WebPlatform.DevTools.Tool&version=1.0.13
                    
nuke :add-package Meziantou.Framework.WebPlatform.DevTools.Tool --version 1.0.13
                    

Meziantou.Framework.WebPlatform.DevTools.Tool

Meziantou.Framework.WebPlatform.DevTools.Tool runs a Chrome DevTools Protocol (CDP) server whose browser is the managed browser engine of Meziantou.Framework.WebPlatform (see Meziantou.Framework.WebPlatform.DevTools). The CDP clients see a headless Chromium: the Playwright clients (.NET, Node.js, Python, Java) connect to it with connectOverCDP, Puppeteer with puppeteer.connect(). Any version of Playwright can connect.

Install

dotnet tool install --global Meziantou.Framework.WebPlatform.DevTools.Tool

Example

Start a server that lets the pages load any URL, on port 9222 (the default):

Meziantou.Framework.WebPlatform.DevTools.Tool --allow-network

The server prints its WebSocket endpoint (DevTools listening on ws://127.0.0.1:9222/devtools/browser/<id>), and runs until Ctrl+C. Connect to it from a Playwright client with the HTTP endpoint, which serves /json/version:

// The server runs in another process: Meziantou.Framework.WebPlatform.DevTools.Tool --allow-network
using var playwright = await Microsoft.Playwright.Playwright.CreateAsync();
await using var browser = await playwright.Chromium.ConnectOverCDPAsync("http://127.0.0.1:9222/");
var context = await browser.NewContextAsync();
var page = await context.NewPageAsync();
await page.GotoAsync("https://example.com/");

Without --allow-network, the pages can only use the content they are given (e.g. page.setContent()) and the responses of the intercepted requests (page.route()). The scripts of the pages run in the process of the server: only connect trusted clients, and only load trusted pages.

Help

Description:
  Run a Chrome DevTools Protocol server whose browser is Meziantou.Framework.WebPlatform (as a headless Chromium 146.0.0.0)

Usage:
  Meziantou.Framework.WebPlatform.DevTools.Tool [options]

Options:
  --host <host>                        Address to listen on (use 0.0.0.0 to accept the remote clients) [default: 127.0.0.1]
  --port <port>                        Port to listen on (0 chooses a free port) [default: 9222]
  --allow-network                      Let the pages load the documents and the resources of any URL (without it, the pages can only use the content they are given and the intercepted requests)
  --system-fonts                       Let the pages use the fonts installed on the machine
  --max-connections <max-connections>  Maximum number of clients connected at the same time (the others wait)
  -?, -h, --help                       Show help and usage information
  --version                            Show version information
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.13 43 12/3/2026
1.0.12 66 12/2/2026
1.0.11 73 12/1/2026
1.0.10 75 12/1/2026
1.0.9 131 11/29/2026
1.0.8 122 11/29/2026
1.0.7 110 11/22/2026
1.0.6 123 11/20/2026
1.0.5 125 11/18/2026
1.0.4 120 11/15/2026
1.0.3 104 11/14/2026
1.0.2 106 11/13/2026
1.0.1 109 11/13/2026
1.0.0 107 11/13/2026