Understand the Playwriter Security Model
mainPlaywriter operates on a local-only architecture. The relay server binds to localhost:19988 and only accepts connections from the Playwriter extension via WebSocket.
Key security features include:
- Origin Validation: The extension WebSocket endpoint only accepts the Playwriter extension origin to prevent malicious websites from controlling your browser.
- Explicit Consent: Only tabs where you have explicitly clicked the extension icon are controlled. There is no background access to other tabs.
- Visible Automation: Chrome displays an automation banner on all controlled tabs, allowing you to monitor agent activity in real time.