$npx -y skills add zhaojiaqi/MeowHub --skill meowhub-browserBrowse the web using Browserless.io cloud browser service. Use this skill when you need to fetch web page content, take website screenshots, or scrape structured data from websites. This is a cloud-based browser that works in the Android/Termux environment where local Chrome is n
| 1 | # MeowHub Cloud Browser (Browserless.io) |
| 2 | |
| 3 | You have access to a cloud-based headless browser through Browserless.io. Use this when OpenClaw's built-in `browser` tool fails (which happens in Android/Termux environments without local Chrome). |
| 4 | |
| 5 | ## When to Use This Skill |
| 6 | |
| 7 | - OpenClaw's `browser` tool reports: "No supported browser found" |
| 8 | - You need to fetch content from JavaScript-heavy websites (SPAs) |
| 9 | - You need to take screenshots of web pages |
| 10 | - You need to scrape structured data from websites |
| 11 | |
| 12 | ## API Endpoint |
| 13 | |
| 14 | ``` |
| 15 | Base URL: https://production-sfo.browserless.io |
| 16 | Token: 2U7NAYZYDRFMq5Kcaefbd50a04bd202480938068f2aadeefc |
| 17 | ``` |
| 18 | |
| 19 | ## Available Tools |
| 20 | |
| 21 | ### 1. Get Page Content (HTML/Text) |
| 22 | |
| 23 | Fetches the rendered HTML content of a webpage (after JavaScript execution). |
| 24 | |
| 25 | ```bash |
| 26 | $PREFIX/bin/curl -s -X POST \ |
| 27 | 'https://production-sfo.browserless.io/chrome/content?token=2U7NAYZYDRFMq5Kcaefbd50a04bd202480938068f2aadeefc' \ |
| 28 | -H 'Content-Type: application/json' \ |
| 29 | -d '{"url": "https://example.com"}' |
| 30 | ``` |
| 31 | |
| 32 | **Response**: Raw HTML content of the page. |
| 33 | |
| 34 | ### 2. Take Screenshot |
| 35 | |
| 36 | Captures a screenshot of a webpage. |
| 37 | |
| 38 | ```bash |
| 39 | $PREFIX/bin/curl -s -X POST \ |
| 40 | 'https://production-sfo.browserless.io/chrome/screenshot?token=2U7NAYZYDRFMq5Kcaefbd50a04bd202480938068f2aadeefc' \ |
| 41 | -H 'Content-Type: application/json' \ |
| 42 | -d '{ |
| 43 | "url": "https://example.com", |
| 44 | "options": { |
| 45 | "type": "png", |
| 46 | "fullPage": false |
| 47 | } |
| 48 | }' \ |
| 49 | -o /tmp/screenshot.png |
| 50 | ``` |
| 51 | |
| 52 | **Parameters**: |
| 53 | - `type`: "png" or "jpeg" |
| 54 | - `fullPage`: true for full page, false for viewport only |
| 55 | - `quality`: 0-100 (jpeg only) |
| 56 | |
| 57 | ### 3. Scrape Structured Data |
| 58 | |
| 59 | Extract specific elements from a webpage. |
| 60 | |
| 61 | ```bash |
| 62 | $PREFIX/bin/curl -s -X POST \ |
| 63 | 'https://production-sfo.browserless.io/chrome/scrape?token=2U7NAYZYDRFMq5Kcaefbd50a04bd202480938068f2aadeefc' \ |
| 64 | -H 'Content-Type: application/json' \ |
| 65 | -d '{ |
| 66 | "url": "https://example.com", |
| 67 | "elements": [ |
| 68 | {"selector": "h1"}, |
| 69 | {"selector": "p"}, |
| 70 | {"selector": "a", "timeout": 5000} |
| 71 | ] |
| 72 | }' |
| 73 | ``` |
| 74 | |
| 75 | **Response**: JSON array with extracted elements. |
| 76 | |
| 77 | ### 4. Generate PDF |
| 78 | |
| 79 | Create a PDF from a webpage. |
| 80 | |
| 81 | ```bash |
| 82 | $PREFIX/bin/curl -s -X POST \ |
| 83 | 'https://production-sfo.browserless.io/chrome/pdf?token=2U7NAYZYDRFMq5Kcaefbd50a04bd202480938068f2aadeefc' \ |
| 84 | -H 'Content-Type: application/json' \ |
| 85 | -d '{ |
| 86 | "url": "https://example.com", |
| 87 | "options": { |
| 88 | "format": "A4", |
| 89 | "printBackground": true |
| 90 | } |
| 91 | }' \ |
| 92 | -o /tmp/page.pdf |
| 93 | ``` |
| 94 | |
| 95 | ### 5. Execute JavaScript |
| 96 | |
| 97 | Run custom JavaScript on a page and get results. |
| 98 | |
| 99 | ```bash |
| 100 | $PREFIX/bin/curl -s -X POST \ |
| 101 | 'https://production-sfo.browserless.io/chrome/function?token=2U7NAYZYDRFMq5Kcaefbd50a04bd202480938068f2aadeefc' \ |
| 102 | -H 'Content-Type: application/json' \ |
| 103 | -d '{ |
| 104 | "code": "module.exports = async ({ page }) => { await page.goto(\"https://example.com\"); return await page.title(); }" |
| 105 | }' |
| 106 | ``` |
| 107 | |
| 108 | ## Quick Reference |
| 109 | |
| 110 | | Task | Endpoint | Key Parameters | |
| 111 | |------|----------|---------------| |
| 112 | | Get HTML content | `/chrome/content` | url | |
| 113 | | Screenshot | `/chrome/screenshot` | url, options.type, options.fullPage | |
| 114 | | Scrape elements | `/chrome/scrape` | url, elements[].selector | |
| 115 | | Generate PDF | `/chrome/pdf` | url, options.format | |
| 116 | | Run JS function | `/chrome/function` | code | |
| 117 | |
| 118 | ## Advanced Options |
| 119 | |
| 120 | ### Wait for Element/Network |
| 121 | |
| 122 | ```bash |
| 123 | $PREFIX/bin/curl -s -X POST \ |
| 124 | 'https://production-sfo.browserless.io/chrome/content?token=2U7NAYZYDRFMq5Kcaefbd50a04bd202480938068f2aadeefc' \ |
| 125 | -H 'Content-Type: application/json' \ |
| 126 | -d '{ |
| 127 | "url": "https://example.com", |
| 128 | "waitForSelector": {"selector": ".content", "timeout": 10000}, |
| 129 | "waitForTimeout": 2000 |
| 130 | }' |
| 131 | ``` |
| 132 | |
| 133 | ### Set Viewport Size |
| 134 | |
| 135 | ```bash |
| 136 | $PREFIX/bin/curl -s -X POST \ |
| 137 | 'https://production-sfo.browserless.io/chrome/screenshot?token=2U7NAYZYDRFMq5Kcaefbd50a04bd202480938068f2aadeefc' \ |
| 138 | -H 'Content-Type: application/json' \ |
| 139 | -d '{ |
| 140 | "url": "https://example.com", |
| 141 | "viewport": {"width": 1920, "height": 1080} |
| 142 | }' |
| 143 | ``` |
| 144 | |
| 145 | ### Block Ads/Trackers |
| 146 | |
| 147 | ```bash |
| 148 | $PREFIX/bin/curl -s -X POST \ |
| 149 | 'https://production-sfo.browserless.io/chrome/content?token=2U7NAYZYDRFMq5Kcaefbd50a04bd202480938068f2aadeefc' \ |
| 150 | -H 'Content-Type: application/json' \ |
| 151 | -d '{ |
| 152 | "url": "https://example.com", |
| 153 | "blockAds": true |
| 154 | }' |
| 155 | ``` |
| 156 | |
| 157 | ## Error Handling |
| 158 | |
| 159 | | HTTP Status | Meaning | |
| 160 | |-------------|---------| |
| 161 | | 200 | Success | |
| 162 | | 400 | Bad request (check JSON syntax) | |
| 163 | | 401 | Invalid or expired token | |
| 164 | | 429 | Rate limit exceeded | |
| 165 | | 500 | Browser error (site may be blocking) | |
| 166 | |
| 167 | ## Usage Tips |
| 168 | |
| 169 | 1. **Always use `$PREFIX/bin/curl`** - System curl is br |