No slash command · from browser-use
Reference for 27 Browser Use MCP tools including navigation, clicking, typing, JS evaluation, and page extraction. Use when automating browser interactions via the plugin.
Ships in browser-use. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Reference for the 27 MCP tools the Browser Use plugin's own server exposes, built on browser-use 1.0. Their full names are mcp__plugin_browser-use_browser-use__<tool_name>, as the examples below write them; an agent with no tools: line inherits them from its session under the same full name. The parameters here were read from the live tool schemas. The authoritative list is whatever the server registers at runtime, so check there rather than counting this table.
The server drives one current browser. Every page tool acts on it; none takes a
session_id. Session ids exist only for listing, closing and exporting sessions.
| Tool | Purpose | Takes a session_id? |
|---|---|---|
browser_navigate | Open a URL in the current browser (starts one if none runs) | No |
browser_get_state | Page URL, title, tabs, and the indexed interactive elements | No |
browser_click | Click an element by index, or at viewport coordinates | No |
browser_type | Type into an input by index (clears it first) | No |
browser_extract_content | LLM-powered extraction from the current page | No |
browser_get_html | Raw HTML of the page or of one CSS selector | No |
browser_screenshot | Show the page to the model as an image | No |
browser_save_screenshot | Write the page to a PNG file | No |
browser_scroll | Scroll up or down | No |
browser_go_back | Go back in history | No |
browser_list_tabs / browser_switch_tab / browser_close_tab | Tabs, by 4-character tab_id | No |
browser_list_sessions | List browser sessions with their ids | No |
browser_close_session | Close one session by id | Yes |
browser_close_all | Close every session | No |
retry_with_browser_use_agent | Autonomous agent for a task the direct tools failed at | No |
browser_export_session | Save a session's cookies to a JSON file | Yes |
browser_import_session | Start a new session from an exported file | No |
browser_run_script | Run a standalone Python script as a subprocess (own browser) | No |
browser_evaluate | Run JS in the live page and return its result (CDP) | No |
browser_press_key | Press a key/shortcut (e.g. Meta+a, Enter, Escape) | No |
browser_keyboard | Batch keys + insert literal text via CDP | No |
browser_focus | Focus any element by CSS selector (incl. hidden inputs) | No |
browser_doctor | Preflight: Python / deps / Chromium / API keys | No |
Editing a code editor (Monaco/CodeMirror/contenteditable)? Those expose no indexable input, so
browser_typecannot reach them. Usebrowser_evaluate(e.g.monaco.editor.getModels()[0].setValue('...')), orbrowser_focusthe hidden input thenbrowser_keyboard. See §3.19 and §3.22.
Element indices are Chrome node ids, not positions. The
indexof each entry inbrowser_get_state'sinteractive_elementsis the element's ChromebackendNodeId: often a large number, never a 1..N count. It stays valid while that element exists, and stops working when the page replaces it.
The first browser_navigate starts a browser session. browser_navigate does not
return its id: read it from browser_list_sessions straight after, and record it,
because only the sessions you record are yours to close.
1. NAVIGATE (starts the browser if needed)
mcp__plugin_browser-use_browser-use__browser_navigate(url="https://example.com")
→ "Navigated to: https://example.com"
2. RECORD the session id
mcp__plugin_browser-use_browser-use__browser_list_sessions()
→ [{"session_id": "5927ad6f594c497fa141e1beb2189883", "active": true, "age_minutes": 0.1, …}]
3. INSPECT (indexed interactive elements)
mcp__plugin_browser-use_browser-use__browser_get_state()
→ {"url": "…", "title": "…", "tabs": […], "interactive_elements": [{"index": 1834, "tag": "a", "text": "Learn more", …}], "viewport": {…}, "scroll": {…}}
4. INTERACT
mcp__plugin_browser-use_browser-use__browser_click(index=1834) → "Clicked element 1834"
mcp__plugin_browser-use_browser-use__browser_type(index=1790, text="search query")
5. EXTRACT or VERIFY
mcp__plugin_browser-use_browser-use__browser_extract_content(query="product prices")
mcp__plugin_browser-use_browser-use__browser_screenshot() (image shown to the model)
6. CLOSE (ALWAYS — do not skip)
mcp__plugin_browser-use_browser-use__browser_close_session(session_id="5927ad6f594c497fa141e1beb2189883")
→ "Successfully closed session 5927ad6f594c497fa141e1beb2189883"
Rule: Every code path must close the session it opened. If an error occurs
mid-workflow, still call browser_close_session before returning. Never close a
session you did not open: another task or the user can be using it.
Each session's Chrome runs on its own temporary profile directory, which is deleted when that browser stops. A forgotten session costs a stray Chrome for minutes, not for the days a Claude Code session can last:
| Trigger | What happens |
|---|---|
browser_close_session / browser_close_all | That session's Chrome is stopped and its profile directory deleted |
| 10 minutes with no tool call on a session | Same thing, automatically: the session is closed (checked every 2 minutes) |
The claude process dies | The server notices it has been reparented, stops every browser it started, and exits |
| The server itself is killed, even with SIGKILL | browser-use's watchdog stops that server's Chrome and deletes its profile |
Consequence you must plan for: cookies, localStorage and login state live in
that profile directory, so they do not survive the 10-minute idle timeout.
Save anything you want to keep with browser_export_session as soon as you have
it — right after a login flow completes, not at the end of the workflow. A later
browser_navigate starts from a clean profile and needs
browser_import_session to get back in.
Nothing here is recoverable by waiting: a closed session's session_id is dead,
and browser_navigate creates a new one.
browser_navigateOpen a URL in the current browser. Starts a browser if none is running.
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Full URL including scheme (https://, http://, file://, data:) |
new_tab | boolean | No | Open in a new tab (default: false) |
visible | boolean | No | Mode of the browser this call starts: true with a window, false headless. Left out, BROWSER_USE_HEADLESS decides (headless unless it says false, 0 or no). Ignored for a cloud browser |
When to pass visible=true: only when the user wants to watch the browser or act in
it themselves: they ask to see it, log in by hand, solve a captcha, or click through
something. Otherwise leave it out and the browser runs headless. If it is unclear whether
the user wants to watch, ask them before the first navigate. A visible browser comes to
the front once when it starts; tool calls never raise it after that, and the user can
switch to it at any time.
visible only chooses the mode of a browser this call starts. A running browser keeps its
mode: passing the other one returns Error: the browser is already running … naming its
session id, and nothing changes. To switch, close it with browser_close_session (export
the session first if its logins matter), then call browser_navigate again with visible
set. Leaving visible out always navigates the running browser.
Returns: text, Navigated to: <url> (or Opened new tab with URL: <url>) once
the new page has loaded. It waits up to 15 s; a page still loading then gets
(still loading after 15 s: the page may not be ready; check it with browser_get_state before acting on it) appended to that line. It returns no
session id; use browser_list_sessions. A navigation the browser cannot complete
returns an error line instead, such as
Error: navigation to <url> failed: net::ERR_NAME_NOT_RESOLVED.
browser_get_stateThe current page: URL, title, tabs, indexed interactive elements, viewport, page size and scroll offset.
| Parameter | Type | Required | Description |
|---|---|---|---|
include_screenshot | boolean | No | Also return a screenshot (default: false) |
Returns: JSON with url, title, tabs (url and title each; tab ids come
from browser_list_tabs), interactive_elements, frame_elements, viewport, page, scroll, and
screenshot_dimensions when a screenshot was asked for. Each element has index,
tag, text (its accessible name, up to 100 characters), plus placeholder and
href when it has them. Elements come in accessibility-tree order, and only
controls are listed (links, buttons, form fields and similar roles).
index is the element's Chrome backendNodeId, not its position in the list.
Pass it to browser_click or browser_type.
Controls inside iframes are listed too, after the main page's, frame by frame:
same-origin, srcdoc and about:blank iframes. Their indexes work with
browser_click and browser_type like any other. A cross-site iframe (another
site, such as an embedded payment or login widget) runs in a separate browser
process: its controls are not in interactive_elements and have no index. They are
listed in frame_elements instead, each with frame_url, role and text (its
accessible name). A control you can see has x, y too: the viewport point at its
centre, inside both its iframe and the viewport. Click only an entry that has x/y,
with browser_click(coordinate_x=x, coordinate_y=y). An entry with "visible": false
has no point, because a click there would hit the host page or land off screen: scroll
the page (browser_scroll) to bring the iframe into view, then call browser_get_state
again. Controls scrolled out of view inside the iframe itself cannot be scrolled into
view from here.
At most 10 cross-site iframes are read and 100 entries listed per call; when either
limit cuts the list short, the JSON carries "frame_elements_truncated": true. An
iframe with no width or height, one that cannot be read, and an iframe nested inside
another cross-site iframe are left out. A page with no cross-site iframe has an empty
frame_elements.
browser_clickClick an element by index, or at viewport pixel coordinates.
| Parameter | Type | Required | Description |
|---|---|---|---|
index | integer | One of | Element index (a backendNodeId) from browser_get_state |
coordinate_x, coordinate_y | integer | One of | Viewport coordinates; pass both |
new_tab | boolean | No | For a link, open its URL in a new tab instead of clicking it |
Returns: text, Clicked element <index> or Clicked at coordinates (<x>, <y>).
The click scrolls the element into view and aims at a point no other element covers.
browser_typeType into an input element. Replaces existing text; text="" only clears. Selects,
date inputs and combobox fields are handled too.
| Parameter | Type | Required | Description |
|---|---|---|---|
index | integer | Yes | Element index (a backendNodeId) from browser_get_state |
text | string | Yes | Text to type |
Returns: text, Typed '<text>' into element <index>. Text that looks like an
email or a token is masked in the reply (Typed <email> into element <index>).
browser_extract_contentExtract information from the current page's text with the agent model, the one
browser_set_agent_model or settings.json agentModel chooses (see the
browser-use:agent-model skill). It needs that model's API key; without it the
tool returns an error naming the variable to set. It reads the page that is open
and never starts a browser: with no session it returns
Error: No browser session active. Navigate first (browser_navigate).
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | What to extract |
extract_links | boolean | No | Include the page's links and their URLs (default: false) |
browser_get_html| Parameter | Type | Required | Description |
|---|---|---|---|
selector | string | No | CSS selector; omit for the whole page |
Returns: the HTML as text, e.g. <h1>Example Domain</h1> for selector="h1".
A selector that matches nothing returns No element found for selector: <selector>.
An invalid selector is an error result carrying the browser's own message, e.g.
SyntaxError: … '[[' is not a valid selector.
browser_screenshotShow the current page to the model.
| Parameter | Type | Required | Description |
|---|---|---|---|
full_page | boolean | No | Whole scrollable page instead of the viewport (default: false) |
Returns: a text block {"size_bytes": N, "viewport": {"width": W, "height": H}} and an
image block the model can see. Nothing is written to disk, and no base64 text is
returned to save. To get a file, use browser_save_screenshot (§3.24).
browser_scroll| Parameter | Type | Required | Description |
|---|---|---|---|
direction | "up" or "down" | No | Default "down"; 500 pixels per call (a mouse-wheel event at the viewport centre) |
Returns: text, Scrolled <direction>.
browser_go_backNo parameters. Returns: text, Navigated back. At the first entry of the tab's
history it returns Error: there is no previous page in this tab's history.
browser_list_tabsNo parameters. Returns: JSON list of {"tab_id", "url", "title"}; tab_id is
the last 4 characters of the tab's target id.
browser_switch_tab| Parameter | Type | Required | Description |
|---|---|---|---|
tab_id | string | Yes | 4-character id from browser_list_tabs |
Returns: text, Switched to tab <tab_id>: <url>. The id matches any tab whose
target id ends in it. When it matches two or more tabs, the tool returns an error
listing their full ids; pass more characters of the one you mean.
browser_close_tab| Parameter | Type | Required | Description |
|---|---|---|---|
tab_id | string | Yes | 4-character id from browser_list_tabs |
Returns: text, Closed tab # <tab_id>, now on <url>. Matching works as in
browser_switch_tab. Closing the tab the tools are on moves them to the first tab
left, or to a new blank tab when none is.
browser_list_sessionsNo parameters. Returns: JSON list of {"session_id", "created_at", "last_activity", "active", "current_url", "age_minutes"}.
The list includes sessions other tasks opened.
browser_close_session and browser_close_allbrowser_close_session(session_id=…) closes one session and returns
Successfully closed session <id>. browser_close_all() closes every session and
returns Closed <n> sessions. It closes every one, including ones other tasks or the user opened: use it only when you know you own
them all.
retry_with_browser_use_agentHand a task to Browser Use's own LLM agent. A last resort, after direct tools failed on a page more than once.
The agent works in a fresh local Chromium of its own, never in the session the
other tools drive and never in a cloud browser. It starts with no cookies or login
state, so put whatever it needs into task. Its browser is stopped when the run ends.
Like browser_extract_content, it checks the agent model's API key first: without
it, the tool returns an error naming the variable and starts no browser.
| Parameter | Type | Required | Description |
|---|---|---|---|
task | string | Yes | The goal, step-by-step detail, relevant data, and what earlier attempts tried |
max_steps | integer | No | Step limit, 1 to 200 (default: 100). Anything else is an error, and no agent starts |
use_vision | boolean | No | false keeps screenshots from the agent's model (default: true) |
allowed_domains | array | No | Domains the agent's browser may open, e.g. example.com, *.example.com; omit (or pass []) for no restriction |
model | string | No | Model name for the configured agent provider, replacing its model for this run (see browser-use:agent-model) |
Returns: text: Task completed in <n> steps, Success: <true|false>, then the
final result and any errors the agent hit. It does not list the URLs the agent visited.
When NOT to use: simple linear workflows (navigate → extract). Direct tools are faster and more reliable.
browser_export_sessionSave a session's cookies to a JSON file: every cookie in that browser, for every site it visited, not only the current page's.
| Parameter | Type | Required | Description |
|---|---|---|---|
session_id | string | Yes | From browser_list_sessions |
output_path | string | Yes | Full path of the .json file to write |
Returns: {"success": true, "path": "…", "cookies_count": N, "url": "…"}
When to use: the moment a login flow completes, not at the end of the
workflow. Cookies live in the session's Chrome profile directory, which is deleted
when the browser is closed, including by the 10-minute idle timeout (see
Automatic cleanup).
Only cookies are exported; a site that keeps its login in localStorage needs
logging in again.
browser_import_sessionStart a new browser session with the cookies from an exported file.
| Parameter | Type | Required | Description |
|---|---|---|---|
import_path | string | Yes | Path to the exported .json file |
navigate_to | string | No | URL to open after importing |
Returns: {"session_id": "…", "cookies_imported": N, "original_url": "…", "navigated_to": "…", "is_primary": true}
When no session is active, the imported one becomes the session the page tools
drive (is_primary: true). Otherwise it runs beside the current one, and the page
tools keep driving the current one. Either way its downloads go to
~/.config/browseruse/downloads.
browser_run_scriptRun a standalone Python automation script as a subprocess.
⚠️ This does NOT run JavaScript, and does NOT share the live browser session. The subprocess gets a fresh Python interpreter that must independently have
browser-use/playwrightinstalled, and it would drive its own, separate browser — it cannot touch the page the other tools control. To run JS in the live page, usebrowser_evaluate(§3.19). The tool now fails fast ifscript_pathis not a readable.pyfile (passing inline JS used to hang for the full timeout) and adds ahintwhen the subprocess hitsModuleNotFoundError. Runbrowser_doctor(§3.23) to see what's installed.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
script_path | string | Yes | Path to a readable .py script file on disk |
args | array | No | CLI arguments to pass to the script |
timeout_seconds | integer | No | Max execution time (default: 300) |
Returns:
{
"exit_code": 0,
"stdout": "Scraped 47 products. Saved to products.json\n",
"stderr": ""
}
browser_evaluateRun JavaScript in the live page the other tools are driving, and return its
result. This is the in-page eval escape hatch (CDP Runtime.evaluate): read or
mutate the DOM, call framework hooks, read localStorage, and drive code
editors that expose no normal input (Monaco, CodeMirror). Operates on the
current session — no session_id needed.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
script | string | Yes | JS to evaluate. Expression (document.title) or statements ending in return ... (auto-wrapped in a function). A returned Promise is awaited. Result must be JSON-serializable. |
Returns: {"result": <value>}, or {"error": "JavaScript exception", "detail": "..."} if the JS throws.
Example — set a Monaco editor's text (the canonical use case):
mcp__plugin_browser-use_browser-use__browser_evaluate(
script="return monaco.editor.getModels()[0].setValue('graph TD; A-->B')"
)
browser_press_keyPress a single key or keyboard shortcut in the live page (CDP
Input.dispatchKeyEvent, sending a keyDown+keyUp pair).
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Key/shortcut. Modifiers via +: Meta+a (Cmd+A), Control+a, Shift+ArrowDown. Named keys: Enter, Escape, Tab, Backspace, Delete, Arrow{Up,Down,Left,Right}, Home, End, PageUp, PageDown. |
count | integer | No | Times to press, 1 to 100 (default 1). Anything else is an error, and no key is pressed. |
Returns: {"pressed": "Enter", "count": 1}
Edit shortcuts work in the real editor.
Meta+/Control+plusa/c/v/x/z/ymap to the browser'sselectAll/copy/paste/cut/undo/redocommands (a synthetic modifier press alone does NOT trigger these — the CDP edit-command is attached for you). SoMeta+athenDeleteclears a field, andMeta+athenbrowser_keyboard(text=...)replaces its contents.
Printable keys type. A single character with no
Meta,ControlorAlt(a,A,1,?, a space orSpace) types that character into the focused field.Shift+types the shifted character on a US layout:Shift+bisB,Shift+1is!. A chord such asMeta+aorControl+cstays a command and types nothing. For more than a few characters, usebrowser_keyboard(text=...).
browser_keyboardSend a batch of shortcuts and/or insert literal text, in order. Keys are pressed
first, then text is inserted via CDP Input.insertText (the reliable way to
type into a focused field or editor without needing an index).
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
keys | array | No | Keys pressed in order, e.g. ["Meta+a","Delete"], each as in browser_press_key: a printable key types its character. |
text | string | No | Literal text inserted after the keys. |
Provide at least one of keys / text.
Returns: {"keys": ["Meta+a","Delete"], "text_inserted": true}
Example — clear a field and type new text:
mcp__plugin_browser-use_browser-use__browser_focus(selector="textarea.inputarea")
mcp__plugin_browser-use_browser-use__browser_keyboard(keys=["Meta+a"], text="new content")
browser_focusFocus any DOM element by CSS selector — including the hidden/synthetic inputs
that code editors use (e.g. Monaco's textarea.inputarea), which never appear in
get_state's index list. Pair with browser_keyboard/browser_press_key.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
selector | string | Yes | CSS selector of the element to focus. |
Returns: {"focused": true, "selector": "..."}, or {"focused": false, "error": "No element matched ..."}.
browser_doctorPreflight diagnosis of the plugin's environment — turns silent failures (a 300s
run_script hang, ModuleNotFoundError, missing Chromium) into a one-call
report. Pure inspection; never spawns a browser. Takes no arguments.
chromium_path is produced by the same resolver the launcher uses, so the doctor
and the browser can never disagree. chromium_source says where it came from:
chromium_source | Meaning |
|---|---|
playwright | Newest build in Playwright's cache — the normal case |
env | CHROME_EXECUTABLE_PATH named it explicitly |
error | Nothing resolvable; chromium_error carries the message, chromium_path is null |
Returns:
{
"python_version": "3.11.x",
"python_executable": "/usr/bin/python3",
"browser_use": {"installed": true, "version": "1.0.0"},
"browser_harness": {"installed": true, "version": "..."},
"mcp": {"installed": true, "version": "..."},
"playwright": {"installed": false, "version": null},
"chromium_present": true,
"chromium_path": "~/Library/Caches/ms-playwright/chromium-1234/chrome-mac-arm64/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing",
"chromium_source": "playwright",
"chromium_error": null,
"api_keys": {"ANTHROPIC_API_KEY": true, "OPENAI_API_KEY": false, "BROWSER_USE_API_KEY": false}
}
A chromium_path under /Applications/Google Chrome.app is never reported
unless CHROME_EXECUTABLE_PATH asked for it: launching the user's real Chrome
steals the macOS com.google.Chrome single-instance slot, so an unresolvable
Chromium is reported as an error instead of quietly falling back to it. The fix
is magus doctor --fix, which installs the Chromium the plugin's pinned
Playwright drives.
browser_save_screenshotWrite the live page to a PNG file: the tool for pixel diffs, design references and
attachments, since browser_screenshot writes nothing to disk. Captures through CDP
Page.captureScreenshot on the page the other tools are driving.
| Parameter | Type | Required | Description |
|---|---|---|---|
output_path | string | Yes | Absolute path ending in .png; parent directories are created |
full_page | boolean | No | Whole scrollable page instead of the viewport (default: false) |
Returns: {"path": "…", "size_bytes": N, "width": W, "height": H}. Width and
height are in device pixels. A relative path, a non-.png path, or no running
browser returns an Error: line and writes nothing.
mcp__plugin_browser-use_browser-use__browser_navigate(url="http://127.0.0.1:8765/card.html")
mcp__plugin_browser-use_browser-use__browser_save_screenshot(output_path="/abs/out/card--default.png")
| Problem | Use This Tool |
|---|---|
| Open a webpage | browser_navigate |
| Find what's clickable on a page | browser_get_state |
| Click a link or button | browser_click (by index from get_state) |
| Type into a form field | browser_type (by index from get_state) |
| Type into a code editor (Monaco/CodeMirror) | browser_evaluate (setValue) or browser_focus + browser_keyboard |
| Run JavaScript in the live page | browser_evaluate |
| Press Enter / Escape / Tab / arrows | browser_press_key |
| Select-all + clear a field | browser_focus + browser_keyboard(keys=["Meta+a","Delete"]) |
| Focus a hidden/synthetic input | browser_focus (by CSS selector) |
| Diagnose missing deps / why a tool fails | browser_doctor |
| Extract specific data semantically | browser_extract_content |
| Get raw HTML for parsing | browser_get_html |
| Take a screenshot | browser_screenshot |
| Scroll down to load more content | browser_scroll |
| Go back to the previous page | browser_go_back |
| Open a link in a new tab | browser_navigate with new_tab=True |
| See all open tabs | browser_list_tabs |
| Switch to a different tab | browser_switch_tab |
| Task is too complex for direct tools | retry_with_browser_use_agent |
| Save login session for reuse | browser_export_session |
| Restore a saved login session | browser_import_session |
| Run a saved automation script | browser_run_script |
| Clean up after a workflow | browser_close_session |
| Error | Cause | Fix |
|---|---|---|
Session <id> not found | Stale session_id or typo | Call browser_list_sessions to see active sessions |
Session <id> not found after a long pause | The session idled out after 10 minutes and was closed automatically | Start a new one with browser_navigate. Its login state went with the profile — browser_import_session if you exported it |
Error: No browser session active from browser_evaluate, browser_focus, the keyboard tools or browser_save_screenshot | These tools never start a browser | Call browser_navigate first |
Error: navigation to <url> failed: net::… | The URL did not resolve or load | Check the URL; the page stays where it was |
No node with given id found from a click or type | The page replaced that element, so its node id is gone | Call browser_get_state again and use the new index |
tab id '<id>' matches 2 tabs | Two tabs' ids end in the same 4 characters | Pass more characters of the tab's id, from the error text |
| The page shows a block, captcha or 403 page | Site blocking an automated browser | Use a cloud session (browser_start_cloud_session); retry_with_browser_use_agent runs a local Chromium and meets the same block |
interactive_elements is empty | Page still loading | Call browser_get_state again; SPAs need time to render |
Agent hits max_steps | Task too complex or poorly described | Increase max_steps or rewrite the task description with more specific goals |
| Screenshot returns empty/blank | Page not finished rendering | Call browser_scroll(direction="down") to trigger rendering, then screenshot |
browser_type has no effect | Input not focused | Call browser_click on the input first, then browser_type |
| Can't type into Monaco/CodeMirror | Editor has no indexable input | Use browser_evaluate (setValue) or browser_focus + browser_keyboard — not browser_type |
browser_run_script errors at once on script_path | Passed inline JS / a stream, not a .py file | Pass a real .py file; to run JS in the page use browser_evaluate |
ModuleNotFoundError in run_script | Subprocess interpreter lacks the deps | run_script doesn't share this env or browser; install deps in that interpreter — run browser_doctor to check |
A cached element index stops working after the page re-renders | The index is a node id, valid only while that node exists | Re-get_state after anything that re-renders the page, or target by selector (browser_focus/browser_evaluate) |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub madappgang/magus --plugin browser-use6 skills in this plugin
/agent-modelPicks the LLM retry_with_browser_use_agent and browser_extract_content use. Use when choosing the browser-use agent model, or the user mentions a cheap, slow, or smart model./debug-uiVisual UI debugging — screenshot capture and analysis, responsive layout checking at multiple viewport sizes, CSS validation via DOM state, visual regression detection, before/after state comparison./hybrid-debuggingCombines Browser Use (DOM, clicks, screenshots) with claude-in-chrome (console, network, JS) for full-spectrum debugging. Use when investigating console errors or network requests./navigation-patternsBrowser Use tab, session and back-navigation patterns, and login reuse via export/import. Use when opening or switching tabs, managing browser sessions, or reusing a login./web-scrapingStructured data extraction from web pages — pagination patterns, dynamic SPAs, authenticated scraping, rate limiting, anti-bot handling, JSON/CSV output.Other plugins' skills for the same job