From 387149c6499f80c2a214fa0d74ca604e0a02de2c Mon Sep 17 00:00:00 2001 From: Morse Date: Mon, 16 Feb 2026 14:44:12 +0100 Subject: [PATCH] docs: add Chrome launch commands to skill.md for when browser is closed When the Playwriter extension can't connect because Chrome isn't running, agents now have platform-specific commands (macOS, Linux, Windows) to start Chrome from the CLI. Also documents the --allowlisted-extension-id and --auto-accept-this-tab-capture flags for enabling automatic tab capture for screen recording without manual extension clicks. Closes #48 --- playwriter/src/skill.md | 29 +++++++++++++++++++++++++++++ website/public/SKILL.md | 29 +++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/playwriter/src/skill.md b/playwriter/src/skill.md index f39d639..c74e1e5 100644 --- a/playwriter/src/skill.md +++ b/playwriter/src/skill.md @@ -119,6 +119,35 @@ If you find a bug, you can create a gh issue using `gh issue create -R remorses/ Control user's Chrome browser via playwright code snippets. Prefer single-line code with semicolons between statements. Use playwriter immediately without waiting for user actions; only if you get "extension is not connected" or "no browser tabs have Playwriter enabled" should you ask the user to click the playwriter extension icon on the target tab. +**If Chrome is not running**, the extension can't connect. Start Chrome from the command line before retrying: + +```bash +# macOS +open -a "Google Chrome" + +# Linux +google-chrome & + +# Windows (cmd) +start chrome.exe + +# Windows (PowerShell) +Start-Process chrome.exe +``` + +To also enable automatic tab capture for screen recording (no manual extension click needed), add the `--allowlisted-extension-id` and `--auto-accept-this-tab-capture` flags: + +```bash +# macOS +open -a "Google Chrome" --args --allowlisted-extension-id=jfeammnjpkecdekppnclgkkffahnhfhe --auto-accept-this-tab-capture + +# Linux +google-chrome --allowlisted-extension-id=jfeammnjpkecdekppnclgkkffahnhfhe --auto-accept-this-tab-capture & + +# Windows +start chrome.exe --allowlisted-extension-id=jfeammnjpkecdekppnclgkkffahnhfhe --auto-accept-this-tab-capture +``` + You can collaborate with the user - they can help with captchas, difficult elements, or reproducing bugs. ## context variables diff --git a/website/public/SKILL.md b/website/public/SKILL.md index f39d639..c74e1e5 100644 --- a/website/public/SKILL.md +++ b/website/public/SKILL.md @@ -119,6 +119,35 @@ If you find a bug, you can create a gh issue using `gh issue create -R remorses/ Control user's Chrome browser via playwright code snippets. Prefer single-line code with semicolons between statements. Use playwriter immediately without waiting for user actions; only if you get "extension is not connected" or "no browser tabs have Playwriter enabled" should you ask the user to click the playwriter extension icon on the target tab. +**If Chrome is not running**, the extension can't connect. Start Chrome from the command line before retrying: + +```bash +# macOS +open -a "Google Chrome" + +# Linux +google-chrome & + +# Windows (cmd) +start chrome.exe + +# Windows (PowerShell) +Start-Process chrome.exe +``` + +To also enable automatic tab capture for screen recording (no manual extension click needed), add the `--allowlisted-extension-id` and `--auto-accept-this-tab-capture` flags: + +```bash +# macOS +open -a "Google Chrome" --args --allowlisted-extension-id=jfeammnjpkecdekppnclgkkffahnhfhe --auto-accept-this-tab-capture + +# Linux +google-chrome --allowlisted-extension-id=jfeammnjpkecdekppnclgkkffahnhfhe --auto-accept-this-tab-capture & + +# Windows +start chrome.exe --allowlisted-extension-id=jfeammnjpkecdekppnclgkkffahnhfhe --auto-accept-this-tab-capture +``` + You can collaborate with the user - they can help with captchas, difficult elements, or reproducing bugs. ## context variables