/fastmcp-browser:using-fastmcp-browserfrom fastmcp-browser
Use when driving a real Chrome or Firefox tab through the mcp__fastmcp-browser__browser_* tools, when a browser task stalls on snapshots, stale refs, iframes, or frozen tabs, or when the page is a canvas app (Google Sheets, Docs, Slides) that a DOM snapshot cannot see. Covers the connect-to-verify loop, tool selection, and the escalation path for pages with no readable DOM.
Ships in fastmcp-browser. 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.
The tools drive the user's real browser over a loopback WebSocket. Page state lives in the browser, not in your reply, so every claim about the page must come from a tool result.
browser_connect — verify the bridge and read capabilities. Skip when
browser_status already says connected: true.browser_tabs — authorize the Automation group. Every page tool needs a
tabId from this list (or the session default).browser_open — navigate. It reuses a tab already showing that URL and
returns the whole group, so check tabs before opening another.browser_snapshot with format: "digest" — orient. This is the cheapest
source of truth: interactive controls with refs plus value/checked/disabled
state.browser_act (click/fill/type/press/select/hover) or the specific
action tool. Use the ref from the latest snapshot, or a CSS selector.browser_act already returns target (the element read back),
form, and a diff. When the effect is visual or the diff is empty, use
browser_snapshot or browser_wait_for.browser_close when the task is done with that tab.If step 4 returns fewer than ~5 controls and the page has iframes, retry with
frames: true. If it returns only a toolbar, the page is a canvas app — go to
"Canvas and editor apps" below instead of clicking pixels.
| Need | Call | Why |
|---|---|---|
| Act on a control | browser_snapshot format:"digest" | Refs + state, smallest payload |
| Read an article/page | browser_snapshot format:"markdown" | Main content as markdown |
| Just the words | browser_snapshot format:"text" | Rendered text, no markup |
| Structure/grouping | format:"aria" or plain snapshot | Nesting and roles |
| One element on a long page | browser_find | Returns matches only |
| What changed | delta: true | Diff since the last snapshot |
| Image content | browser_image | Actual pixels, not a label |
Rank a long page with goal plus relevantOnly: true; limit then cuts from
the most relevant end instead of DOM order.
browser_act over click-then-type pairs. It finds, acts, waits for the
DOM, and reports the new ref plus a diff in one call.refresh: "digest" attaches the post-action control list — use it when the
next step depends on what appeared.browser_fill and browser_fill_form
set the value directly and fire the events the page listens to.browser_select (native <select> and ARIA
combobox/listbox). If the list is a portal that appears late, browser_act
with waitState: "network_idle" is the reliable follow-up.browser_fill_form fills many fields in one call and re-resolves each field,
so a rerender between fields does not waste the batch.browser_run runs an ordered list of { method, params } steps in one
request — use it when a workflow is already known (open, snapshot, fill,
click, wait) instead of issuing one round-trip per action. A failing step
returns ok:false in results rather than throwing, so check results.
Skip it for exploratory navigation (the model needs to see each step's
outcome before deciding the next) and for batches that mix a heavy
browser_snapshot format:"markdown" step with light actions — split those
into a snapshot batch and an action batch so the heavy response does not
dominate the payload.Use browser_wait_for with a real condition: text, selector +
state:"visible", network_idle, or digest-changes (the AI-readable view
moved). Use browser_wait only when nothing observable exists.
When the page paints to <canvas> (Google Sheets, Docs, Slides, Figma-like
editors), DOM refs do not exist for the content. Do not fall back to screenshots
plus pixel clicks: coordinates drift with zoom and scroll, and synthetic clicks
are often ignored.
browser_workspace_info — it names the app and which editing surface is
available.automating-google-sheets or
automating-google-docs.browser_snapshot with mode:"visual" gives
numbered marks over a screenshot; use browser_pointer_click with those
coordinates only as a last resort.| Symptom | Cause | Fix |
|---|---|---|
TAB_NOT_ACCESSIBLE | Frozen tab, minimized window, or navigation mid-call | Retry once — the extension wakes frozen tabs automatically; then re-snapshot |
STALE_REF / ELEMENT_NOT_FOUND | Node replaced by a rerender | Take a fresh snapshot; the same ref may auto-recover |
ORIENT_FIRST | browser_evaluate before any page read | Run browser_snapshot format:"digest" first |
FALLBACK_REQUIRED | browser_evaluate without a reason | Name what the read tools could not give you |
UNSUPPORTED_CAPABILITY on eval | Page CSP blocks eval (Google Docs/Sheets do) | Use snapshots or the workspace tools; never retry eval |
PERMISSION_DENIED | Tab not in the Automation group | browser_tabs, then retry |
| Empty/odd snapshot | UI lives in an iframe or shadow root | frames: true, or a selector/browser_find |
| Click lands but nothing happens | Page needs a trusted-looking pointer sequence | browser_act with stealth: true, or browser_pointer_drag for drag targets |
<<<UNTRUSTED_PAGE_CONTENT …>>> markers.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mahdyarief/openclaude-plugins --plugin fastmcp-browser3 skills in this plugin
/automating-google-docsUse when a task requires reading or writing the body of a Google Docs document through the mcp__fastmcp-browser__browser_workspace_* tools, or when a Docs snapshot returns only the toolbar because the document body is rendered to canvas. Covers plain-text reads, writing through the event-target input, and appending versus replacing./automating-google-sheetsUse when a task requires reading, writing, or filling cells in a Google Sheets tab through the mcp__fastmcp-browser__browser_workspace_* tools, or when a Sheets snapshot shows only a toolbar because the grid is a canvas. Covers selecting A1 ranges, committing values and formulas, reading data, and the limits of the formula-bar path.