{"slug":"browser-use","title":"browser-use","summary":"Use this skill to drive Wisp Browser Runtime sessions (shared daily Chrome or workspace Chrome) — open pages, read them, click, fill and submit forms, navigate, switch tabs, or scrape content that needs the user's existing cookies and login state. Triggers when the user asks to d","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-08-23T08:58:29.13402Z","repo":{"url":"https://github.com/xuzhougeng/wisp-science","stars":1170,"forks":122,"license":"AGPL-3.0","updatedAt":"2026-09-25T06:13:53Z"},"bodyHtml":"<hr>\n<h2>name: browser-use\ndescription: \"Use this skill to drive Wisp Browser Runtime sessions (shared daily Chrome or workspace Chrome) — open pages, read them, click, fill and submit forms, navigate, switch tabs, or scrape content that needs the user's existing cookies and login state. Triggers when the user asks to do something in their browser, log into a site and act inside it, fill out a web form, click through a flow, or extract data from a page that requires being signed in. Tools: browser_setup (check/connect the extension), web_open_tab (open a URL), web_scan (read visible content + actionable elements with ready-made selectors), web_execute_js (click/type/navigate, or a JSON command for tabs/CDP), web_screenshot (see what the tab is showing — layout, charts, canvas, QR codes). Not for the built-in read-only web fetch — this is for interacting with a live browser.\"\nfold_cue: \"instead_of=guessing-selectors use=web_scan first — it returns a unique CSS selector and rect for every actionable element; never invent selectors\"</h2>\n<h1>Browser Use — act inside the user's real Chrome</h1>\n<p>Wisp talks to the <strong>Browser Runtime</strong>. Shared mode uses the user's daily\nChrome via the unpacked extension — every action runs in their real\nprofile: existing cookies, logins, extensions, and normal fingerprint all\napply. Workspace mode can launch a separate Chrome profile. If both are\nconnected, pass <code>session: \"shared\"</code> or <code>session: \"workspace\"</code>. If\nSettings → Browser has <strong>Open browser automatically</strong> enabled (the\ndefault) and no extension is connected, Wisp may start the installed\nChrome/Chromium/Edge so the extension can reconnect. That is still the\nuser's profile, not Playwright or Selenium.</p>\n<p><strong>Shared is the default; workspace is not a fallback.</strong> Google Chrome 137\nand later ignore <code>--load-extension</code>, so on a machine with only branded\nChrome the workspace window cannot load the Wisp extension at all.\n<code>browser_setup {\"action\":\"start_workspace\"}</code> therefore returns only once\nthe workspace extension has connected, and otherwise closes the window\nand fails with <code>WORKSPACE_EXTENSION_BLOCKED</code>. On that error: relay the\nmessage, do not retry <code>start_workspace</code>, do not claim any workspace page\nwas opened or read, and get the shared session working instead.</p>\n<p>For figures/code extraction use <code>web_scan</code> with <code>mode: \"article\"</code> then\n<code>web_save_assets</code>. For ChatGPT web one-shot use <code>web_agent_send</code>,\n<code>web_agent_wait</code>, <code>web_agent_read</code> on an already-logged-in tab.</p>\n<p>Every <code>web_scan</code> and <code>web_execute_js</code> call needs the user's approval by\ndesign. Do not treat that as a bug to route around.</p>\n<h2>Before anything: confirm the bridge is live</h2>\n<p>Call <code>browser_setup</code>. If <code>status</code> is not <code>connected</code> (or <code>live_retrieval</code>\nis false), relay its <code>steps</code> (load the unpacked extension from\n<code>extension_path</code>, verbatim) and <strong>stop</strong>. Do not answer live, latest,\ncurrent, or URL-specific questions from prior knowledge. Tell the user\nthis turn contains no live web retrieval and wait until the popup shows\n<em>Connected to Wisp</em>. Only continue from memory if they explicitly ask\nfor a knowledge-only answer. Never invent the path.</p>\n<p>Two fields say <em>why</em> a browser that looks connected is not usable —\nnever report a bare \"not connected\" when either is set:</p>\n<ul>\n<li><code>refused_connection</code> — something reached the bridge port and Wisp\nrefused it (usually a different extension id, or another loopback\nbridge holding the port). Its popup can still read <em>Connected to Wisp</em>.\nRelay <code>refused_connection.explanation</code>.</li>\n<li><code>reload_required</code> — a connected extension is older than the protocol\nthis build needs. Have the user open <code>chrome://extensions</code> and\n<strong>Reload</strong> Wisp Real Browser Bridge from <code>extension_path</code>; Chrome does\nnot auto-update an unpacked extension.</li>\n</ul>\n<p>One exception: the user says the extension is already installed. Chrome\nsuspends its service worker when idle and reconnects on a one-minute\nalarm, so <code>disconnected</code> can just be a sleeping worker. Try <code>web_open_tab</code>\nor <code>web_scan</code> once — a successful call proves the bridge is live — and\nrelay the install steps only if that call fails too.</p>\n<h2>The loop</h2>\n<ol>\n<li><strong><code>web_open_tab</code></strong> <code>{url}</code> — open the page (works even with no tab\nopen yet). Waits until the document is complete, then returns the new\ntab id plus <code>ready</code>. If <code>ready</code> is false, the load timed out — call\n<code>web_scan</code> before acting.</li>\n<li><strong><code>web_scan</code></strong> — read the page (after waiting for document complete).\nReturns <code>page.text</code>, <code>page.title</code>, <code>page.ready_state</code>, and\n<code>page.elements[]</code>, where each element carries a <strong>unique <code>selector</code></strong>,\nits visible <code>text</code>/<code>aria_label</code>, and a <code>rect</code> <code>[x,y,w,h]</code>. Use these\nselectors directly — do not guess. If <code>ready</code> is false, scan again;\ndo not click a partial page. Use <code>tabs_only:true</code> first when you are\nunsure which tab to target; pass <code>switch_tab_id:&lt;id&gt;</code> to pin one.</li>\n<li><strong><code>web_execute_js</code></strong> — act, then re-scan to confirm the effect. The\nextension waits for complete before running the script, and again if\nthe script navigates.</li>\n</ol>\n<h2>Recipes (<code>web_execute_js</code> <code>script</code>)</h2>\n<table>\n<thead>\n<tr>\n<th>Goal</th>\n<th>script</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Click</td>\n<td><code>document.querySelector('&lt;selector&gt;').click()</code></td>\n</tr>\n<tr>\n<td>Type into a field</td>\n<td><code>const e=document.querySelector('&lt;sel&gt;'); e.value='text'; e.dispatchEvent(new Event('input',{bubbles:true})); e.dispatchEvent(new Event('change',{bubbles:true}))</code></td>\n</tr>\n<tr>\n<td>Submit a form</td>\n<td>click the submit control by its selector, then re-scan</td>\n</tr>\n<tr>\n<td>Navigate current tab</td>\n<td><code>location.href='https://example.com'</code></td>\n</tr>\n<tr>\n<td>Read a value</td>\n<td><code>document.querySelector('&lt;sel&gt;').textContent</code></td>\n</tr>\n</tbody>\n</table>\n<p><code>script</code> may instead be a <strong>JSON command</strong>:</p>\n<table>\n<thead>\n<tr>\n<th>Goal</th>\n<th>JSON command</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Switch to &amp; focus a tab (so the user sees it)</td>\n<td><code>{\"cmd\":\"tabs\",\"method\":\"switch\",\"tabId\":&lt;id&gt;}</code></td>\n</tr>\n<tr>\n<td>List tabs</td>\n<td><code>{\"cmd\":\"tabs\"}</code> (or just <code>web_scan tabs_only</code>)</td>\n</tr>\n<tr>\n<td>Close tabs you opened</td>\n<td><code>{\"cmd\":\"tabs\",\"method\":\"close\",\"tabIds\":[&lt;id&gt;,...]}</code> — returns <code>closed</code> + <code>remaining</code></td>\n</tr>\n<tr>\n<td>Trusted click when <code>.click()</code> is ignored</td>\n<td><code>{\"cmd\":\"cdp\",\"method\":\"Input.dispatchMouseEvent\",\"params\":{\"type\":\"mousePressed\",\"x\":&lt;x&gt;,\"y\":&lt;y&gt;,\"button\":\"left\",\"clickCount\":1}}</code> then the same with <code>\"type\":\"mouseReleased\"</code> — use the element's <code>rect</code> centre from <code>web_scan</code></td>\n</tr>\n</tbody>\n</table>\n<p>Prefer plain JS. Reach for <code>cmd:cdp</code> only when a page blocks synthetic\nevents or you truly need trusted input.</p>\n<h2>Seeing the page — <code>web_screenshot</code></h2>\n<p><code>web_scan</code> gives text and elements; <strong><code>web_screenshot</code></strong> gives sight. Use it\nwhen structure isn't enough: rendered layout, a chart or diagram, a\ncanvas/WebGL page, a QR code, a PDF or image viewer, or a page that looks\nbroken. It captures the <strong>visible viewport</strong> of the tab — to see below the\nfold, scroll first (<code>web_execute_js</code> <code>scrollTo(0, 1200)</code>) and capture again.\nPass <code>question</code> to say what to read out of it, e.g.\n<code>{\"question\":\"is the login QR code visible and not expired?\"}</code>.</p>\n<p>It goes through the configured vision model, so <code>web_scan</code> stays the cheaper\ndefault — screenshot when you need eyes, not for every step.</p>\n<h2>Tab hygiene — track what you open, offer to close it</h2>\n<p>Browsing tasks (searching papers, opening a dozen results) leave the user\nwith a pile of tabs to close by hand. So:</p>\n<ol>\n<li>Every <code>web_open_tab</code> returns <code>tab.id</code>. <strong>Keep a running list of the ids\nyou opened in this task</strong>, in your own message text — e.g. after a batch\nwrite <code>opened tabs: 1234, 1235, 1236</code>. <code>{\"cmd\":\"tabs\"}</code> cannot tell you\nwhich tabs are yours, only what exists.</li>\n<li>When the task is done, before your final answer, <strong>ask the user</strong>:\nname the count and offer to close them, e.g. <em>\"我为这次检索开了 6 个标签\n页，需要我关掉吗？\"</em> Do not close anything without a yes.</li>\n<li>On a yes, close them in one call:\n<code>{\"cmd\":\"tabs\",\"method\":\"close\",\"tabIds\":[1234,1235,1236]}</code>. Report\n<code>closed</code>; ids already gone are skipped silently.</li>\n</ol>\n<p>Close <strong>only ids you opened yourself</strong>. Tabs the user had open, or ones\nthey opened during the task, are theirs — never include them, and never\nclose a tab mid-task that later steps still need.</p>\n<h2>Stop conditions (do not automate through these)</h2>\n<ul>\n<li><strong>Human verification / CAPTCHA:</strong> if <code>web_scan</code> returns\n<code>human_intervention.required=true</code>, stop, ask the user to complete the\nchallenge in the visible tab, and wait for their confirmation before\nscanning again.</li>\n<li><strong>Credentials:</strong> never type passwords, card numbers, or one-time codes\nyourself. If a step needs a password, have the user sign in directly in\nthe browser and continue once they confirm.</li>\n<li><strong>Irreversible / outward actions</strong> (send, pay, post, delete): confirm\nwith the user before clicking the control.</li>\n<li><strong>Downloads:</strong> for multiple-file downloads, first surface the browser\nsettings from <code>browser_setup</code> (<code>download_automation</code>) and wait for the\nuser to confirm; until then trigger at most one download.</li>\n<li><strong>Blocked sites:</strong> if <code>web_open_tab</code> or a navigational <code>web_execute_js</code>\nfails with <code>blocked by user URL filter</code>, do not retry that site. Read\n<code>browser_setup.url_filters.block</code> for the current list. Prefer entries in\n<code>url_filters.prefer</code> for literature search and similar retrieval; other\nsites are still allowed.</li>\n</ul>\n","files":[{"path":"SKILL.md","sizeBytes":10758,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-09-08T11:59:32.534671Z","sha256":"F60AB8929B56FCA599436232A65BA4A1C73A1A80FAD2A0DF41B2D9964825A026","sizeBytes":4923},"review":null,"source":{"repositoryUrl":"https://github.com/xuzhougeng/wisp-science","path":"skills/browser-use","license":"AGPL-3.0","commit":"79e64163262196611dd390d06713c465b906b299","subtreeSha":"745FE8D6CFC6E9814968CBDD4F3170FACFF1C6D7D01B3FE697A91F57054EBD5C","lastSyncedAt":"2026-09-25T07:37:55.552497Z"},"reviewedAt":"2026-09-08T12:02:42.890918Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/xuzhougeng/wisp-science/tree/main/skills/browser-use"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install xuzhougeng-wisp-science@llmmart"},{"target":"git","command":"git clone https://github.com/xuzhougeng/wisp-science.git"}]}