playwright-mcp adds browser_network_state_set for offline testing
Introduced 2026-03-30 · score 0.94
HOW TO USE IT
When testing a repository’s browser workflow without connectivity, call `browser_network_state_set` with `state: "offline"`; restore connectivity with `state: "online"`.
{"tool":"browser_network_state_set","arguments":{"state":"offline"}}{"tool":"browser_network_state_set","arguments":{"state":"online"}}npx @playwright/mcp@0.0.69 --caps=networkWHY THIS HELPS
Test how a repository’s browser workflow behaves when connectivity is unavailable.
REQUIREMENTS AND LIMITATIONS
- Version: v0.0.69
- state (required): Use `offline` to simulate offline mode or `online` to restore connectivity.
- Prerequisite: The network tools are documented as opt-in via `--caps=network`.
- Prerequisite: The README lists Node.js 18 or newer and an MCP client as requirements.
- Docs conflict: In the same README, the network tool section says to enable `--caps=network`, but the `--caps` option description lists only `vision`, `pdf`, and `devtools` as possible values.
FIRST-PARTY EVIDENCE
- https://github.com/microsoft/playwright-mcp/releases/tag/v0.0.69
- https://github.com/microsoft/playwright-mcp/blob/v0.0.69/README.md
Check the installed version and the source before using it. Entry JSON