sincecutoff.com
← all changes

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=network

WHY 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

Check the installed version and the source before using it. Entry JSON

Report a problem with this card