mcp-camoufox
v0.9.3MCP server for stealth browser automation via Camoufox — 104 tools, Chrome DevTools MCP-level power with anti-bot stealth
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
browser_launch
Launch Camoufox stealth browser and navigate to URL. Browser persists between calls. By default cookies/localStorage persist in ~/.camoufox-mcp/profile. Set fresh_profile=true to start with a clean temp profile (auto-cleaned on browser_close) — useful when switching between accounts on the same domain.
| Parameter | Type | Description |
|---|---|---|
fresh_profile | boolean | Start with a clean temp profile (no carry-over cookies/cache). Temp dir is removed when browser_close is called. Use when switching between accounts on the same domain to avoid login session collision… |
geoip | boolean | Auto-detect timezone from IP |
headless | boolean | Run without visible window |
height | number | Window height (0 = default 800) |
humanize | boolean | Human-like mouse movements |
locale | string | Browser locale |
url | string | URL to navigate to |
width | number | Window width (0 = default 1280) |
browser_close
Close the browser. Cookies are preserved in the persistent profile (~/.camoufox-mcp/profile). If the launch used fresh_profile=true, the temp profile is removed.
reset_profile
Delete the persistent profile (~/.camoufox-mcp/profile) entirely. Use to start fresh — cookies, localStorage, history all wiped. Browser must be closed first (call browser_close before this).
go_back
Navigate back in history.
go_forward
Navigate forward in history.
reload
Reload the current page.
browser_snapshot
Get visible interactive elements with ref IDs. Use refs with click/fill. Always call after navigation. On large pages (Outlook, dashboards) the response can be truncated — narrow with roles=["button","textbox"] or paginate with offset/limit. Refs stay stable regardless of filters (every visible element is still numbered).
| Parameter | Type | Description |
|---|---|---|
limit | number | Max elements to return (0 = no cap). |
offset | number | Skip the first N matched elements (pagination). |
roles | array | Only show elements matching these tags/roles/types, e.g. ["button","link","textbox","tab"]. Empty = all. |
screenshot
Screenshot the page, or a single element with ref/selector (great for documenting one modal). Returns the IMAGE inline — no second Read call — plus the saved path. Set return_image=false for path only.
| Parameter | Type | Description |
|---|---|---|
full_page | boolean | Full scrollable page (ignored when ref/selector is set) |
name | string | Filename prefix |
ref | string | Snapshot ref — capture just that element. |
return_image | boolean | Embed the PNG in the response. false = only save to disk. |
selector | string | CSS selector — capture just that element (ignored if ref is set). |
click
Click element by ref ID from browser_snapshot. Auto JS-fallback for overlays.
| Parameter | Type | Description |
|---|---|---|
ref * | string | Element ref (e.g. 'e5') |
button | string | |
dblclick | boolean |
click_text
Click element by visible text. If the text matches several elements it FAILS with a numbered candidate list instead of silently clicking the first one — narrow with within ("@dialog", a CSS selector, or "ref:e5") or pick one with index.
| Parameter | Type | Description |
|---|---|---|
text * | string | Visible text |
exact | boolean | |
index | number | Which match to click when several match (0-based). -1 = require a unique match. |
within | string | Limit the search: "@dialog" = topmost modal, "ref:e5" = inside a snapshot ref, or any CSS selector. |
click_role
Click element by ARIA role and name. Same ambiguity guard as click_text: several matches → candidate list, not a guess.
| Parameter | Type | Description |
|---|---|---|
role * | string | ARIA role (button, link, textbox, etc.) |
index | number | Which match to click when several match (0-based). -1 = require a unique match. |
name | string | Accessible name |
within | string | Limit the search: "@dialog", "ref:e5", or a CSS selector. |
hover
Hover over element by ref ID.
| Parameter | Type | Description |
|---|---|---|
ref * | string |
fill
Fill input/textarea by ref ID. Always replaces existing content (email/number inputs are cleared explicitly first — Firefox's select-all is a no-op on those, which would otherwise append).
| Parameter | Type | Description |
|---|---|---|
ref * | string | Element ref |
value * | string | Text to fill |
select_option
Select option from <select> dropdown.
| Parameter | Type | Description |
|---|---|---|
ref * | string | |
value * | string |
check
Check checkbox or radio button.
| Parameter | Type | Description |
|---|---|---|
ref * | string |
uncheck
Uncheck a checkbox.
| Parameter | Type | Description |
|---|---|---|
ref * | string |
type_text
Type text char by char via keyboard.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
delay | number | Delay between keys (ms) |
press_key
Press key or combo (Enter, Escape, Control+a, etc.).
| Parameter | Type | Description |
|---|---|---|
key * | string | Key name |
wait_for
Wait for element/text to appear or disappear.
| Parameter | Type | Description |
|---|---|---|
selector | string | CSS selector |
state | string | |
text | string | Text to wait for |
timeout | number |
wait_for_any_of
Race multiple wait conditions — returns the first that matches, so the agent can branch immediately without sequential probes. Each condition is {kind: 'selector'|'text'|'url_contains'|'title_contains', value: string}. Returns the index + kind + value of the winning condition (or 'timeout' if none matched). Ideal for post-login flows where the next page could be any of several (e.g. 'Stay signed in?', 'Skip for now', or the inbox directly).
| Parameter | Type | Description |
|---|---|---|
conditions * | array | Conditions to race. First match wins. |
timeout | number | Max wait in ms |
evaluate
Execute JavaScript in page context.
| Parameter | Type | Description |
|---|---|---|
expression * | string | JS expression |
get_url
Get current URL and title.
get_text
Get visible text from page or element.
| Parameter | Type | Description |
|---|---|---|
selector | string |
get_html
Get HTML content from page or element.
| Parameter | Type | Description |
|---|---|---|
outer | boolean | |
selector | string |
tab_list
List all open tabs.
tab_new
Open new tab.
| Parameter | Type | Description |
|---|---|---|
url | string |
tab_select
Switch to a tab by index, or by url_contains (first tab whose URL contains the substring).
| Parameter | Type | Description |
|---|---|---|
index | number | Tab index. Ignored if url_contains is set. |
url_contains | string | Select the first tab whose URL contains this substring. |
tab_close
Close a tab by index (-1 = active), or by url_contains.
| Parameter | Type | Description |
|---|---|---|
index | number | |
url_contains | string | Close the first tab whose URL contains this substring (overrides index). |
cookie_list
List cookies.
| Parameter | Type | Description |
|---|---|---|
domain | string |
cookie_set
Set a cookie. IMPORTANT: with expires_days=0 this creates a SESSION cookie, which Firefox keeps in memory only — it is gone after browser_close even though the profile itself persists. Pass expires_days (e.g. 30) to write a login session that survives a relaunch.
| Parameter | Type | Description |
|---|---|---|
domain * | string | |
name * | string | |
value * | string | |
expires_days | number | Lifetime in days. 0 = session cookie (dies with the browser). |
http_only | boolean | Set the HttpOnly flag (hides it from page JS, like a real auth cookie). |
path | string | |
same_site | string | |
secure | boolean | Set the Secure flag (HTTPS only). Required when same_site='None'. |
cookie_delete
Delete cookies. Both empty = clear all.
| Parameter | Type | Description |
|---|---|---|
domain | string | |
name | string |
dialog_handle
Set handler for the next alert/confirm/prompt on ANY open tab (first dialog wins, handler then clears).
| Parameter | Type | Description |
|---|---|---|
action | string | |
prompt_text | string |
upload_file
Upload file to file input.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
ref * | string |
chatgpt_generate_image
Generate or edit an image on chatgpt.com end-to-end and save it to disk in ONE call. Opens a fresh chat, optionally uploads reference images (e.g. a brand logo), submits the prompt, waits for the generated image to finish, then writes the result PNG to output_path. Requires an authenticated chatgpt.com session (import cookies first via cookie_import). Returns the saved path and pixel dimensions. Note: chatgpt image generation is slow (~60-120s) — set timeout_ms accordingly.
| Parameter | Type | Description |
|---|---|---|
output_path * | string | Absolute path to write the resulting PNG. |
prompt * | string | Text prompt for image generation/editing. |
image_paths | array | Optional reference image file paths to upload before prompting (e.g. a logo). |
timeout_ms | number | Max ms to wait for the generated image. |
chatgpt_generate_batch
Generate MANY images on chatgpt.com IN PARALLEL (one tab per job, fire-all-then-collect) and save each to disk. Submits every job first WITHOUT waiting, then waits for all generations concurrently — far faster than sequential. For a CONSISTENT feed set, pass shared_image_paths (e.g. [logo] and/or a style-reference image like a previously-generated hero) uploaded to EVERY tab, plus style_suffix (a shared style spec) appended to every prompt. Requires an authenticated chatgpt.com session (import cookies first). Returns per-job results (saved path / ok / bytes / error).
| Parameter | Type | Description |
|---|---|---|
jobs * | array | Per-image jobs: each has a prompt and an output PNG path. |
shared_image_paths | array | Reference images uploaded to EVERY tab (e.g. [logoPath, styleRefPath]) — key for visual consistency. |
stagger_ms | number | Delay between submitting each tab (avoids UI/anti-bot races). |
style_suffix | string | Shared style spec text appended to every prompt (exact colors, typography, layout, mood) for consistency. |
timeout_ms | number | Max ms to wait for each image to finish. |
scroll
Scroll the page.
| Parameter | Type | Description |
|---|---|---|
amount | number | |
direction | string |
console_start
Start capturing console messages from all tabs.
console_get
Get captured console messages.
network_start
Start capturing network requests. With capture_bodies=true also records request/response headers + text bodies (json/text/xml/form only, capped at body_limit bytes) so you can inspect API payloads via network_get_detail — no need to pivot to evaluate()+fetch().
| Parameter | Type | Description |
|---|---|---|
body_limit | number | Max bytes kept per request/response body. |
capture_bodies | boolean | Also capture request/response headers and text bodies. |
network_get
List captured network requests in capture order, keeping the most recent `limit` rows. Each row shows an #id usable with network_get_detail.
| Parameter | Type | Description |
|---|---|---|
filter | string | Only show requests whose URL contains this substring. |
limit | number | Max rows to return. |
network_get_detail
Full request + response detail (headers and text body) for one captured request. Requires network_start(capture_bodies=true) BEFORE the request fired. Identify the request by id (from network_get) or by url substring.
| Parameter | Type | Description |
|---|---|---|
id | number | Request #id from network_get. -1 = match by url instead. |
url | string | When id=-1, match the newest request whose URL contains this substring. |
save_pdf
Save page as PDF. NOTE: Playwright can only generate PDFs in headless Chromium — Camoufox is Firefox, so this fails by design here. Use screenshot(full_page=true) instead. Kept for API compatibility.
| Parameter | Type | Description |
|---|---|---|
path | string |
batch_actions
Execute multiple actions in one call. Each action: {type, ref?, value?, text?, key?, url?}.
| Parameter | Type | Description |
|---|---|---|
actions * | array | List of actions to execute sequentially |
fill_form
Fill multiple form fields and optionally submit.
| Parameter | Type | Description |
|---|---|---|
fields * | array | |
submit_ref | string | Ref of submit button to click after filling |
login_classic
Composite login for classic email→password forms (Google, Microsoft, generic SSO). Auto-detects the email field, clicks Next/Continue on multi-step forms, fills the password, submits, and optionally enters a TOTP 2FA code. Collapses the usual 5–8 fill/click/snapshot calls into one. Heuristic — if a form is unusual, fall back to individual fill/click tools. Returns the step log + a fresh snapshot.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email / username to fill. |
password * | string | Password to fill. |
step_timeout_ms | number | Max wait for each step's field to appear. |
submit_after_email | boolean | Click Next/Continue after the email (Google/Microsoft multi-step). |
totp_code | string | Pre-computed 6-digit 2FA code (overrides totp_secret). |
totp_secret | string | Base32 TOTP secret — a 6-digit code is generated if a 2FA field appears. |
inspect_element
Get detailed info about an element (tag, attributes, bounding box, styles).
| Parameter | Type | Description |
|---|---|---|
ref * | string |
get_attribute
Get a specific attribute value from an element.
| Parameter | Type | Description |
|---|---|---|
attribute * | string | |
ref * | string |
query_selector_all
Query elements by CSS selector, return text/attributes of all matches.
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
attribute | string | Attribute to extract (empty = innerText) |
limit | number |
get_links
Get all links on the page with URL and text.
| Parameter | Type | Description |
|---|---|---|
filter | string | Filter links by URL pattern (empty = all) |
localstorage_get
Get all localStorage data or a specific key.
| Parameter | Type | Description |
|---|---|---|
key | string | Key to get (empty = all) |
localstorage_set
Set a localStorage item.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
value * | string |
localstorage_clear
Clear all localStorage.
sessionstorage_get
Get all sessionStorage data or a specific key.
| Parameter | Type | Description |
|---|---|---|
key | string |
sessionstorage_set
Set a sessionStorage item.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
value * | string |
mouse_click_xy
Click at exact x,y coordinates. steps>0 adds interpolated pre-movement (human-like).
| Parameter | Type | Description |
|---|---|---|
x * | number | |
y * | number | |
button | string | |
steps | number | Interpolation steps for pre-click movement (0=instant, 15-30=human-like) |
mouse_move
Move mouse to x,y. steps>0 interpolates path (human-like).
| Parameter | Type | Description |
|---|---|---|
x * | number | |
y * | number | |
steps | number | Interpolation steps (0=instant jump, 15-30=smooth) |
click_turnstile
Auto-solve Cloudflare Interactive Turnstile checkbox. Locates the widget via in-page selectors AND the Playwright frame API (handles closed shadow roots that document.querySelector misses), polls for render, skips if already solved, then does a humanized real-mouse click with retries + small nudge, verifying the cf-turnstile-response token after each attempt. Managed Challenge full-page interstitials still need mcp-stealth-chrome.
| Parameter | Type | Description |
|---|---|---|
max_attempts | number | Max click attempts (small vertical nudge between tries) until token appears |
offset_x | number | Pixels from widget left edge to the checkbox (calibrated for CF checkbox) |
offset_y | number | Vertical offset from widget top (default = height/2) |
wait_render_ms | number | Wait before first detection to let widget render |
drag_and_drop
Drag from one element to another.
| Parameter | Type | Description |
|---|---|---|
source_ref * | string | Ref of element to drag |
target_ref * | string | Ref of drop target |
list_frames
List all frames/iframes in the page.
frame_evaluate
Execute JavaScript inside a specific frame/iframe.
| Parameter | Type | Description |
|---|---|---|
expression * | string | |
frame_index | number | Frame index from list_frames |
frame_name | string | Frame name (empty = by index) |
wait_for_url
Wait for URL to match a pattern.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | URL substring or regex pattern |
timeout | number |
wait_for_response
Wait for a network response matching a URL pattern.
| Parameter | Type | Description |
|---|---|---|
url_pattern * | string | URL substring to match |
timeout | number |
get_viewport_size
Get current viewport dimensions.
set_viewport_size
Set viewport width and height.
| Parameter | Type | Description |
|---|---|---|
height * | number | |
width * | number |
accessibility_snapshot
Get accessibility tree snapshot — compact view of page structure for LLM understanding.
server_status
Health check — verify server, browser status, active tabs.
get_page_errors
Get uncaught JavaScript errors + unhandled promise rejections from the current page. Captured by a hook installed at browser_launch, so the buffer resets on every navigation (read it before navigating away). Max 100 entries per page load.
inject_init_script
Inject a script that runs before every page load.
| Parameter | Type | Description |
|---|---|---|
script * | string | JavaScript code to inject |
export_har
Export captured network traffic as a HAR 1.2 file (openable in DevTools/other HAR viewers). Requires network_start first; headers and bodies are only included when network_start(capture_bodies=true) was used.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max (most recent) requests to include. |
path | string |
detect_content_pattern
Auto-detect repeated content patterns (cards, listings, rows) and suggest CSS selectors. Run this BEFORE extract_structured to find the right selectors.
| Parameter | Type | Description |
|---|---|---|
min_items | number | Minimum repeated items to detect as pattern |
extract_structured
Extract structured data from repeated elements (cards, rows, listings). Auto-deduplicates, filters empty items, extracts direct text only. Use detect_content_pattern first to find correct selectors.
| Parameter | Type | Description |
|---|---|---|
container_selector * | string | CSS selector for each repeated item. Use detect_content_pattern to find this. |
fields * | array | Fields to extract from each item |
deduplicate_by | string | Field name to deduplicate by (empty = auto) |
direct_text_only | boolean | Extract only direct text of matched element, not children text (prevents field mixing) |
limit | number | Max items to extract |
extract_table
Extract data from an HTML table as JSON array.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max rows |
selector | string | CSS selector for the table |
scrape_page
Smart page scraper — auto-detect and extract main content, links, metadata. Strips nav/footer noise.
| Parameter | Type | Description |
|---|---|---|
include_links | boolean | |
include_meta | boolean | |
max_text_length | number | Max text chars (truncates at paragraph boundary) |
only_main_content | boolean | Strip nav, header, footer, sidebar — extract only main content area |
wait_and_snapshot
Wait for selector/text then return snapshot. Combines wait_for + browser_snapshot in one call.
| Parameter | Type | Description |
|---|---|---|
selector | string | CSS selector to wait for |
state | string | |
text | string | Text to wait for |
timeout | number |
back_and_snapshot
Navigate back + return snapshot.
reload_and_snapshot
Reload page + return snapshot.
click_and_snapshot
Click element by ref + wait + return snapshot. Perfect for buttons that trigger navigation/dialog.
| Parameter | Type | Description |
|---|---|---|
ref * | string | Element ref from browser_snapshot |
wait_ms | number | Wait after click before snapshot |
find_by_text
Find elements by visible text — returns EVERY match (total + a ref and ancestor path per candidate), so you can tell whether the one you want is really the one you'd click. Skip browser_snapshot when you know the text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Visible text to search for |
exact | boolean | |
limit | number | Max candidates to describe. |
within | string | Limit the search: "@dialog", "ref:e5", or a CSS selector. |
find_by_label
Find input element by its label text (<label>). Returns ref + how many matched.
| Parameter | Type | Description |
|---|---|---|
label * | string | Label text (e.g. 'Email', 'Password') |
within | string | Limit the search: "@dialog", "ref:e5", or a CSS selector. |
find_by_placeholder
Find input by placeholder text. Returns ref + how many matched.
| Parameter | Type | Description |
|---|---|---|
placeholder * | string | |
within | string | Limit the search: "@dialog", "ref:e5", or a CSS selector. |
cookie_export
Export all cookies as JSON string. Use with cookie_import to transfer session.
| Parameter | Type | Description |
|---|---|---|
domain | string | Filter by domain (empty = all) |
cookie_import
Import cookies from JSON (from cookie_export). Restores session state.
| Parameter | Type | Description |
|---|---|---|
cookies_json * | string | JSON array of cookies |
page_stats
Page statistics: element count, size, load metrics. Use to decide extraction strategy.
storage_state_save
Save cookies + localStorage to a JSON file. Reload via storage_state_load on a fresh browser to skip login/CF entirely.
| Parameter | Type | Description |
|---|---|---|
path * | string | Output file path (e.g. ~/.camoufox-mcp/sessions/site.json) |
storage_state_load
Load cookies + localStorage from a JSON file (created by storage_state_save). Bypass CF/login if session is fresh.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to storage state JSON file |
navigate_to | string | URL to navigate to after loading (recommended — localStorage requires same-origin) |
auth_capture
Save current session as named auth state (e.g. logged-in user). Convenience wrapper: storage_state_save to ~/.camoufox-mcp/sessions/<name>.json
| Parameter | Type | Description |
|---|---|---|
name * | string | Session name (e.g. 'github-bob', 'shopify-mystore') |
cookie_export_file
Export all cookies to a JSON file (Playwright format).
| Parameter | Type | Description |
|---|---|---|
path * | string | Output JSON file path |
cookie_import_file
Import cookies from a JSON file (Playwright format).
| Parameter | Type | Description |
|---|---|---|
path * | string | Input JSON file path |
humanize_click
Click element with humanized mouse approach (3-step Bezier-like curve before click). Use for anti-bot pages.
| Parameter | Type | Description |
|---|---|---|
ref | string | Element ref from snapshot |
selector | string | CSS selector |
humanize_type
Type text with Gaussian-distributed delays between keystrokes (mean ~80ms, sigma ~30ms). Mimics human typing rhythm.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to type |
mean_delay_ms | number | |
ref | string | |
selector | string |
mouse_drift
Random mouse movements over a duration — builds up mouse history before action (CF/DataDome behavior analysis).
| Parameter | Type | Description |
|---|---|---|
duration_ms | number | Total drift duration |
points | number | Number of random destinations |
mouse_record
Start recording mouse positions (call mouse_replay later). Returns recorder handle.
| Parameter | Type | Description |
|---|---|---|
duration_ms | number | |
sample_rate_hz | number |
mouse_replay
Replay last recorded mouse path with original timing.
| Parameter | Type | Description |
|---|---|---|
speed | number | Replay speed multiplier (1.0=original, 2.0=2x faster) |
session_warmup
Visit innocuous public sites (Google, Wikipedia) to build browsing history before targeting protected site. Helps with CF/DataDome IP scoring.
| Parameter | Type | Description |
|---|---|---|
duration_ms | number | Total warmup time |
sites | array | URLs to visit (default: google.com, wikipedia.org) |
detect_anti_bot
Heuristic detection of anti-bot vendor on current page (Cloudflare, DataDome, Akamai, PerimeterX, Imperva).
assert_element_visible
Assert element exists and is visible. Returns success/fail (no throw).
| Parameter | Type | Description |
|---|---|---|
selector * | string |
assert_text_present
Assert text is present anywhere on page (case-sensitive substring).
| Parameter | Type | Description |
|---|---|---|
text * | string |
assert_url_matches
Assert current URL matches pattern (substring or regex).
| Parameter | Type | Description |
|---|---|---|
pattern * | string | |
regex | boolean |
click_and_wait
Click element then wait for navigation or selector. Atomic — fewer roundtrips than separate click + wait_for.
| Parameter | Type | Description |
|---|---|---|
ref | string | |
selector | string | |
timeout_ms | number | |
wait_for_selector | string | Selector to wait for after click |
wait_for_url | string | URL substring to wait for after click |
wait_for_network_idle
Wait until there are no in-flight requests for idle_ms continuously. Better than fixed timeouts for SPAs.
| Parameter | Type | Description |
|---|---|---|
idle_ms | number | How long the network must stay quiet before returning. |
timeout_ms | number |
describe_page
Compact LLM-friendly page summary (title, heading, key buttons, forms). Cheaper than browser_snapshot for agent context. Also returns `intent` — a classified hint of what kind of page this is (login_email, login_password, otp_input, captcha, stay_signed_in, protect_account, error_page, consent, two_factor, account_disabled, content, unknown) — so the agent can branch with one read.
http_request
HTTP request WITHOUT a browser, using a real Firefox TLS/HTTP2 fingerprint (impit). By default it reuses the live browser's cookies for that URL, so you can log in with the browser and then hit the site's API cheaply. Far faster and lighter than navigating — use it for APIs, JSON, and any page that doesn't need JS.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
body | string | Raw request body (JSON string, form-encoded, …) |
headers_json | string | Extra headers as JSON, e.g. {"Accept":"application/json"} |
impersonate | string | TLS fingerprint to present. firefox matches the Camoufox browser. |
max_chars | number | Max response body characters returned. |
method | string | |
proxy | string | Proxy URL, e.g. http://user:pass@host:port |
timeout_ms | number | |
use_browser_cookies | boolean |
http_session_cookies
Show which browser cookies would be sent with an HTTP request to this URL. Use it to confirm session sharing before relying on http_request.
| Parameter | Type | Description |
|---|---|---|
url * | string |
scrape_markdown
Fetch a URL and return clean, LLM-ready markdown (headings, links, lists preserved; nav/footer/scripts stripped). Default path is browserless (impit) — fast and cheap. Set use_browser=true for JS-rendered pages (needs browser_launch).
| Parameter | Type | Description |
|---|---|---|
url * | string | |
impersonate | string | |
max_chars | number | |
proxy | string | |
use_browser | boolean | Render in the stealth browser instead of a plain HTTP fetch. |
smart_fetch
Dual-mode fetch: tries the browserless HTTP path first and escalates to the stealth browser ONLY when the response looks anti-bot blocked. This is the efficiency core — high-volume reading stays cheap, the browser fires only when it's actually needed.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
force_browser | boolean | |
impersonate | string | |
max_chars | number | |
proxy | string |
search_page
Grep the CURRENT page's visible text and return matches with surrounding context. Costs nothing compared to a snapshot or a screenshot — use it first to find where a term actually appears.
| Parameter | Type | Description |
|---|---|---|
text * | string | Substring, or a regex source when regex=true |
case_sensitive | boolean | |
context_chars | number | |
max_matches | number | |
regex | boolean |
wait_for_change
Wait until the page actually CHANGES and report what changed (url / title / DOM size / text). This is the honest version of a fixed sleep after a click: it returns as soon as something happened, or tells you nothing did.
| Parameter | Type | Description |
|---|---|---|
poll_ms | number | |
settle_ms | number | Require the page to stay stable this long after the change. |
timeout | number |
assert_clickable
Hit-test an element WITHOUT clicking: would a real click actually land on it? Answers "why did my click do nothing?" before you spend the click. Reports the element that would intercept the click when something covers it.
| Parameter | Type | Description |
|---|---|---|
ref | string | |
selector | string |
scroll_to
Scroll a specific element into view (the page-level `scroll` tool only moves by pixels).
| Parameter | Type | Description |
|---|---|---|
block | string | |
ref | string | |
selector | string |
click_element_offset
Click at a percentage position inside an element instead of its centre — for wide labels whose real checkbox sits at the left edge, sliders, or split buttons.
| Parameter | Type | Description |
|---|---|---|
ref | string | |
selector | string | |
x_percent | number | 0 = left edge, 100 = right edge |
y_percent | number | 0 = top edge, 100 = bottom edge |
click_at_corner
Click a corner of an element — close/X buttons, delete icons and dismiss controls usually live there, not in the centre.
| Parameter | Type | Description |
|---|---|---|
corner | string | |
offset | number | Inset in pixels from the corner. |
ref | string | |
selector | string |
paste_text
Fill a field with a REAL paste. Puts the text on the clipboard and presses Ctrl/Cmd+V so the page receives a trusted paste event with actual clipboardData — the only thing that works for frameworks that listen to paste alone (Svelte 5 / SolidJS runes, some Qwik forms). Falls back to a synthetic event and then the native value setter.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
ref | string | |
selector | string |
form_introspect
Analyse a form in one call: per field the label, type, current value, required/pattern/length constraints, validation state, and the JS framework it is bound to. Tells you what to fill and why a submit is being rejected without guessing from a snapshot.
| Parameter | Type | Description |
|---|---|---|
form_selector | string | CSS selector for the form. Empty = first form, or all top-level fields if the page has none. |
smart_fill
Fill form fields by their LABEL text (fuzzy, case-insensitive) instead of refs — no snapshot needed. Values go through the same clearing logic as fill, so email/number fields replace rather than append.
| Parameter | Type | Description |
|---|---|---|
fields_json * | string | JSON object of {"Label": "value", …}, e.g. {"Email":"a@b.com","Password":"secret"} |
submit_label | string | If set, click the button whose text matches after filling. |
within | string | Scope: "@dialog", "ref:e5", or a CSS selector. |
dialog_auto_handle
Install a PERSISTENT dialog handler that stays armed across every dialog and every tab (dialog_handle is one-shot). Reads its action at fire time, so you can change it without re-arming. Set enabled=false to remove it.
| Parameter | Type | Description |
|---|---|---|
action | string | |
enabled | boolean | |
prompt_text | string | Text to submit for prompt() dialogs. |
sessionstorage_clear
Clear all sessionStorage for the current origin (parity with localstorage_clear).
wait_for_request
Block until the page ISSUES a request matching a URL substring (wait_for_response waits for the reply). Use it to confirm an action actually fired its API call.
| Parameter | Type | Description |
|---|---|---|
url_pattern * | string | |
method | string | Optional HTTP verb filter (GET/POST/…) |
timeout | number |
storage_snapshot
Capture cookies + localStorage + sessionStorage + URL into a named slot, so storage_diff can tell you exactly what an action changed.
| Parameter | Type | Description |
|---|---|---|
name | string |
storage_diff
Compare current storage against an earlier storage_snapshot — shows exactly which cookies/localStorage/sessionStorage keys were added, removed or changed. The fastest way to find which key holds a session token.
| Parameter | Type | Description |
|---|---|---|
name | string |
indexeddb_list
List IndexedDB databases for the current origin. Many SPAs keep auth state and drafts here, invisible to cookie/localStorage tools.
indexeddb_delete
Delete an IndexedDB database by name for the current origin (clears SPA state that survives a cookie wipe).
| Parameter | Type | Description |
|---|---|---|
name * | string |
performance_timeline
Navigation + paint + resource timing for the current page: TTFB, DOMContentLoaded, load, FCP, LCP, and the 5 slowest resources. Note: Firefox does not implement layout-shift, so CLS is unavailable here.
browser_recover
Escape hatch when the browser is wedged and browser_close can't complete: force-drops the connection and resets server state so browser_launch works again. Also reports a profile lock held by another Camoufox process, which is the usual cause of 'A copy of Camoufox is already open'.
workflow_run
Run a list of tool calls in sequence — any tool this server exposes, by name — and return a per-step log. Resumable: a failed run tells you the index, and start_at skips the steps that already succeeded. Each step is {"tool":"navigate","args":{"url":"…"},"label":"optional"}.
| Parameter | Type | Description |
|---|---|---|
steps * | array | Steps to execute in order. |
start_at | number | Skip the first N steps (resume after a failure). |
stop_on_error | boolean |