| name | playwright-cli-validation |
| description | Низкоуровневая browser automation через управляемый Playwright CLI. Используй для: screenshots, snapshots, headed sessions, traces, responsive, UI proof. EN triggers: Playwright CLI validation, screenshots, snapshots, traces, responsive. |
| allowed-tools | ["Bash","mcp__plugin_rldyour-mcps_chrome-devtools__*"] |
Playwright CLI Validation
Mandatory CloakBrowser Boundary
This boundary applies before every browser action:
-
Run exactly:
$HOME/.local/bin/cloakbrowser-cdp-health
If the command is missing or exits nonzero, stop immediately and report NOT_PROVEN.
-
Browser execution is permitted only through:
- the exact
$HOME/.local/bin/playwright-cli executable; run-code and --filename are forbidden;
- the approved Chrome DevTools MCP transport, exactly
/bin/sh -c 'exec "$HOME/.local/bin/chrome-devtools-mcp" --headless --isolated --no-usage-statistics --no-performance-crux'.
-
Never execute the Webwright Python runtime, stock/raw/in-app Browser, browser_agent, node_repl, computer-use, Playwright MCP, raw Playwright, bunx, npx, direct package invocations, alternate CDP endpoints, alternate browser executables, alternate browser configs, or any fallback. No fallback is allowed.
Use named sessions and keep temporary browser evidence under browser/ when the managed CLI emits a selectable output location. Capture before/after or state-specific evidence and report NOT_PROVEN instead of inventing evidence.
Run the health command again before each line that performs a browser action:
$HOME/.local/bin/cloakbrowser-cdp-health
$HOME/.local/bin/playwright-cli -s="${RY_PROJECT_SLUG:-rldyour}" open "$URL"
$HOME/.local/bin/cloakbrowser-cdp-health
$HOME/.local/bin/playwright-cli -s="${RY_PROJECT_SLUG:-rldyour}" snapshot
$HOME/.local/bin/cloakbrowser-cdp-health
$HOME/.local/bin/playwright-cli -s="${RY_PROJECT_SLUG:-rldyour}" screenshot
$HOME/.local/bin/cloakbrowser-cdp-health
$HOME/.local/bin/playwright-cli -s="${RY_PROJECT_SLUG:-rldyour}" tracing-start