diff --git a/plugins/firefox-mcp/skills/debug/SKILL.md b/plugins/firefox-mcp/skills/debug/SKILL.md index e69de29..8707a96 100644 --- a/plugins/firefox-mcp/skills/debug/SKILL.md +++ b/plugins/firefox-mcp/skills/debug/SKILL.md @@ -0,0 +1,34 @@ +--- +name: debug +description: Show console errors and failed network requests +argument-hint: [console|network|all] +disable-model-invocation: true +--- + +# /firefox-mcp:debug + +Displays debugging information from the current page. + +## Usage + +``` +/firefox-mcp:debug # Show all (console errors + failed requests) +/firefox-mcp:debug console # Console messages only +/firefox-mcp:debug network # Network requests only +``` + +## Examples + +``` +/firefox-mcp:debug +/firefox-mcp:debug console +/firefox-mcp:debug network +``` + +## What Happens + +- `console`: Calls `list_console_messages` with `level="error"` +- `network`: Calls `list_network_requests` with `statusMin=400` +- `all` (default): Shows both console errors and failed network requests + +Requires Firefox to already be running and on the page you want to debug. If Firefox is not running or is on about:blank, call `navigate_page` first. diff --git a/plugins/firefox-mcp/skills/navigate/SKILL.md b/plugins/firefox-mcp/skills/navigate/SKILL.md index e69de29..b6147de 100644 --- a/plugins/firefox-mcp/skills/navigate/SKILL.md +++ b/plugins/firefox-mcp/skills/navigate/SKILL.md @@ -0,0 +1,33 @@ +--- +name: navigate +description: Navigate Firefox to a URL and take a DOM snapshot for interaction +argument-hint: +disable-model-invocation: true +--- + +# /firefox-mcp:navigate + +Opens a URL in Firefox and takes a DOM snapshot for interaction. + +## Usage + +``` +/firefox-mcp:navigate +``` + +## Examples + +``` +/firefox-mcp:navigate https://example.com +/firefox-mcp:navigate https://github.com/login +/firefox-mcp:navigate file:///path/to/local.html +``` + +## What Happens + +1. Calls `navigate_page` with the URL +2. Waits for page load +3. Calls `take_snapshot` to create UID mappings +4. Returns the DOM snapshot with interactive elements marked + +After navigating, you can interact with elements using their UIDs (e.g., `e42`). diff --git a/plugins/firefox-mcp/skills/screenshot/SKILL.md b/plugins/firefox-mcp/skills/screenshot/SKILL.md index e69de29..8c41eba 100644 --- a/plugins/firefox-mcp/skills/screenshot/SKILL.md +++ b/plugins/firefox-mcp/skills/screenshot/SKILL.md @@ -0,0 +1,31 @@ +--- +name: screenshot +description: Take a screenshot of a URL or the current page +argument-hint: [url or uid] +disable-model-invocation: true +--- + +# /firefox-mcp:screenshot + +Captures a screenshot of a URL or the current page and shows it to the user. + +## Usage + +``` +/firefox-mcp:screenshot https://example.com # Navigate then screenshot +/firefox-mcp:screenshot # Screenshot current page +/firefox-mcp:screenshot # Screenshot specific element +``` + +## Steps + +1. Navigate if a URL was given: call `navigate_page`. +2. Take the screenshot using the method that matches your environment: + +**In Cowork** (system prompt contains an outputs folder host path under "Shell access"): +- Call `screenshot_page saveTo="/screenshot.png"` using the host path from the system prompt, not the container path. +- Load and call `present_files` with that same path so the user receives a clickable file card. + +**In Claude.ai chat or Claude Desktop** (no outputs folder in system prompt): +- Call `screenshot_page` without `saveTo`. +- Your final response must include the actual image returned — not a description of it. The user cannot see tool call outputs, only what you include in your reply.