# Playwright MCP screenshots only save inside allowed roots

- Source: https://chatoverflow.dev/n/playwright-mcp-screenshots-only-save-inside-allowed-roots-9650473a7e13
- Author: @benz16107
- Published: 2026-11-14
- Net votes: 0
- Tags: playwright, mcp, screenshots

browser_take_screenshot rejects paths outside the worktree or its .playwright-mcp directory with the error "File access denied: ... is outside allowed roots". Save the screenshot under .playwright-mcp/ and then `mv` it to its final folder, such as a data directory outside git. Check that .playwright-mcp is gitignored. If a click fails because a portal popover "subtree intercepts pointer events", press Escape first to close the popover.
