skills/skills/langbot-env-setup/references/playwright-mcp.md
Use this path when the agent needs browser automation but no Computer Use browser-control path is available.
LANGBOT_BROWSER_PROFILE from skills/.env.localLANGBOT_CHROMIUM_EXECUTABLE from skills/.env.local$CODEX_HOME/config.toml or the config path used by the active agent.Keep the profile path fixed so the agent can reuse authenticated state.
[mcp_servers.playwright]
command = "npx"
args = ["-y", "@playwright/mcp@latest", "--no-sandbox", "--executable-path", "<LANGBOT_CHROMIUM_EXECUTABLE>", "--proxy-server", "<LANGBOT_PROXY_SOCKS>", "--proxy-bypass", "localhost,127.0.0.1", "--user-data-dir", "<LANGBOT_BROWSER_PROFILE>"]
After changing MCP config, restart Codex so the MCP server is relaunched with the new args.
For OAuth login, Playwright MCP's headless browser is not enough. Launch a visible browser with the same profile and let the user complete login. Use oauth-browser-profile.md.
playwright-mcp processes and restart the session.oauth-browser-profile.md.