Playwright Setup
Use this mode when the agent should launch and control its own browser session.
1) Initialize a persistent profile
Sign in once in that window, then close it.
2) Set agent/browser config
In wingman.config.json:
Optional per-agent override in agent.json / agent.md frontmatter:
3) Optional extension auto-load
If you want Wingman's extension loaded in agent-launched Chrome:
This registers wingman and adds it to browser.defaultExtensions.
4) Run a smoke test
Expected output fields:
transportRequested:playwright(orauto)transport:persistent-contextorcdp(with fallback handled automatically)browser:chrome-playwrightorchrome-cdppersistentProfile:true
5) Headless automation
Persistent profile runs default to headed for login/session reliability.
After bootstrap login, you can explicitly run headless in tool calls with headless: true.
Troubleshooting
Browser profile is already in use: close other Chrome runs using that same profile path.ProcessSingletonerrors: another Chromium instance holds the profile lock.- Browser opens at
about:blankand does nothing: inspect tool output JSON and verify action types are valid.
