mcp-camoufox

v0.13.3
mcp-camoufox Checked 4 days ago Published 24 days ago

MCP server for browser automation with Camoufox: 135 tools, plus an HTTP path with a Firefox TLS fingerprint

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

browser_launch

Launch the Camoufox stealth browser and open url. It stays running between calls. Cookies and storage persist in ~/.camoufox-mcp/profile unless fresh_profile=true; that profile also keeps one device (screen, GPU, cores) across launches, redrawn only for another os or a window its screen cannot hold. While a browser runs, the options are ignored: browser_close first.

ParameterTypeDescription
fresh_profilebooleanClean temp profile, removed at browser_close. Keeps two accounts on one site apart.
geoipbooleanAuto-detect timezone from IP
headlessbooleanRun without visible window
heightnumberWINDOW height (0 = 800). See width.
humanizebooleanHuman-like mouse movements
localestringBrowser locale
no_viewportbooleanPage follows the OS window as it is resized. Default: on with headless=false, off headless (fixed viewport). A headed launch draws a screen at least as large as this machine's largest display, so a dr…
osstringFingerprint OS. auto = this machine's: fastest, and the only one whose speech voices match. Another OS starts ~4s slower and its voices still name the host OS. random = Camoufox picks.
ublockbooleanLoad the bundled uBlock Origin. false saves ~350 MB, and pages load their ads and trackers.
urlstringURL to navigate to
widthnumberWINDOW width (0 = 1280). The viewport has this width and is 80px shorter than the window; set_viewport_size changes the viewport alone.

browser_close

Close the browser. The persistent profile (~/.camoufox-mcp/profile) is kept; a fresh_profile temp profile is removed.

reset_profile

DELETES the persistent profile (~/.camoufox-mcp/profile): every saved login, cookie, localStorage entry, history and its stored device. Only on an explicit request. Call browser_close first.

navigate

Navigate to a URL.

ParameterTypeDescription
url *stringURL to navigate to
timeoutnumber
wait_untilstring

go_back

Navigate back in history. Fails when the page does not move.

go_forward

Navigate forward in history. Fails when the page does not move.

reload

Reload the current page.

browser_snapshot

Visible interactive elements with ref IDs for click/fill. Call after every navigation: a ref from an earlier snapshot names nothing. Fields show label="…"; iframe elements get refs like f1e3; open shadow roots are read too (closed ones cannot be). On a large page narrow with roles or page with offset/limit; numbering stays stable.

ParameterTypeDescription
framesbooleanInclude visible iframes. false = main document only.
limitnumberMax elements (0 = all).
offsetnumberSkip the first N matches.
rolesarrayOnly these tags/roles/types, e.g. ["button","link","textbox"]. Empty = all.

screenshot

Screenshot the page, or one element by ref/selector. Returns the image inline plus the saved path; return_image=false returns only the path.

ParameterTypeDescription
full_pagebooleanFull scrollable page (ignored when ref/selector is set)
namestringFilename prefix
refstringCapture only this element.
return_imagebooleanfalse = save to disk only.
selectorstringCapture only this element (ignored if ref is set).

click

Click an element by snapshot ref and report what the page did (navigated, changed, opened a tab, or nothing). If something covers it, a left click falls back to synthetic pointer events and says so. Disabled or hidden elements are refused.

ParameterTypeDescription
ref *stringElement ref (e.g. 'e5')
buttonstring
dblclickboolean

click_text

Click by visible text. Several matches are an error with a numbered candidate list, never a guess: narrow with within or pick with index.

ParameterTypeDescription
text *stringVisible text
exactboolean
indexnumberWhich match (0-based). -1 = require a unique match.
withinstring"@dialog" = topmost modal, "ref:e5" = inside that ref, or a CSS selector.

click_role

Click by ARIA role and name. Several matches are an error with a candidate list, as in click_text.

ParameterTypeDescription
role *stringARIA role (button, link, textbox, etc.)
indexnumberWhich match (0-based). -1 = require a unique match.
namestringAccessible name
withinstringLimit the search: "@dialog", "ref:e5", or a CSS selector.

hover

Hover over element by ref ID.

ParameterTypeDescription
ref *string

fill

Fill an input/textarea by ref, replacing its content (email and number fields too).

ParameterTypeDescription
ref *stringElement ref
value *stringText to fill

select_option

Select option from <select> dropdown.

ParameterTypeDescription
ref *string
value *string

check

Check checkbox or radio button.

ParameterTypeDescription
ref *string

uncheck

Uncheck a checkbox.

ParameterTypeDescription
ref *string

type_text

Type text char by char via keyboard.

ParameterTypeDescription
text *string
delaynumberDelay between keys (ms)

press_key

Press key or combo (Enter, Escape, Control+a, etc.). Says when the page navigated, changed or opened a tab or dialog.

ParameterTypeDescription
key *stringKey name

wait_for

Wait for element/text to appear or disappear.

ParameterTypeDescription
selectorstringCSS selector
statestring
textstringText to wait for
timeoutnumber

wait_for_navigation

Wait for a navigation to happen and finish. Counts one that finished in the last 2s, since it may have completed before this call. Fails if none is seen.

ParameterTypeDescription
timeoutnumber

wait_for_any_of

Wait for the first of several conditions, each {kind: 'selector'|'text'|'url_contains'|'title_contains', value}. Returns the winner's index, kind and value, or 'timeout'. For flows whose next page varies (e.g. 'Stay signed in?' or the inbox).

ParameterTypeDescription
conditions *arrayConditions to race. First match wins.
timeoutnumberMax wait in ms

evaluate

Run JavaScript in the page and return the result. world="main" (default) reaches the page's own variables, and the page can observe the calls. world="isolated" shares only the DOM and is invisible to the page.

ParameterTypeDescription
expression *stringJS expression
worldstringmain = the page's own JavaScript world. isolated = DOM only, invisible to the page.

get_url

Get current URL and title.

get_text

Get visible text from page or element.

ParameterTypeDescription
selectorstring

get_html

Get HTML content from page or element.

ParameterTypeDescription
outerboolean
selectorstring

tab_list

List all open tabs.

tab_new

Open a new tab, in the same window as the active tab. new_window=true opens it in a window of its own.

ParameterTypeDescription
new_windowbooleanOpen a separate window instead of a tab beside the active one.
urlstring

tab_select

Switch to a tab by index, or by url_contains (first tab whose URL contains the substring).

ParameterTypeDescription
indexnumberTab index. Ignored if url_contains is set.
url_containsstringSelect the first tab whose URL contains this substring.

tab_close

Close a tab by index (-1 = active), or by url_contains.

ParameterTypeDescription
indexnumber
url_containsstringClose the first tab whose URL contains this substring (overrides index).

dialog_handle

Set the answer for the next alert/confirm/prompt on any tab. Call it BEFORE the action that opens the dialog: an unarmed dialog is dismissed at once and named in that call's reply.

ParameterTypeDescription
actionstring
prompt_textstring

upload_file

Upload file to file input.

ParameterTypeDescription
file_path *string
ref *string

chatgpt_generate_image

Generate or edit one image on chatgpt.com and save the PNG to output_path: new chat, optional reference uploads, prompt, wait, save. Needs a logged-in chatgpt.com session (cookie_import first). Takes ~60-120s; set timeout_ms to match.

ParameterTypeDescription
output_path *stringAbsolute path for the PNG.
prompt *stringText prompt for image generation/editing.
image_pathsarrayReference images to upload first (optional).
timeout_msnumberMax ms to wait for the generated image.

chatgpt_generate_batch

Generate several images on chatgpt.com in parallel (one tab per job) and save each to disk. shared_image_paths go to every tab and style_suffix is appended to every prompt, for a consistent set. Needs a logged-in chatgpt.com session (cookie_import first). Returns per-job path, bytes or error.

ParameterTypeDescription
jobs *arrayOne prompt and output PNG path per image.
shared_image_pathsarrayReference images uploaded to every tab, e.g. [logo, style reference].
stagger_msnumberDelay between submitting tabs.
style_suffixstringStyle text appended to every prompt.
timeout_msnumberMax ms per image.

scroll

Scroll the page.

ParameterTypeDescription
amountnumber
directionstring

console_start

Start capturing console messages from all tabs.

console_get

Get captured console messages.

network_start

Start capturing requests on every tab. capture_bodies=true also keeps headers and text bodies (json/text/xml/form, up to body_limit bytes) for network_get_detail.

ParameterTypeDescription
body_limitnumberMax bytes kept per request/response body.
capture_bodiesbooleanAlso capture request/response headers and text bodies.

network_get

List captured requests, the newest `limit` rows, each with an #id for network_get_detail.

ParameterTypeDescription
filterstringOnly URLs containing this.
limitnumberMax rows to return.
reveal_valuesbooleanShow credentials in URLs. Masked by default.

network_get_detail

Headers and text body of one captured request and its response. Needs network_start(capture_bodies=true) BEFORE the request fired. Pick by id or URL substring.

ParameterTypeDescription
idnumberRequest #id from network_get. -1 = match by url instead.
reveal_valuesbooleanShow Cookie, Authorization, Set-Cookie, tokens and passwords. Masked by default.
urlstringWith id=-1: the newest request whose URL contains this.

save_pdf

Always fails here: PDF output is Chromium-only and Camoufox is Firefox. Use screenshot(full_page=true). Kept for API compatibility.

ParameterTypeDescription
pathstring

batch_actions

Run several actions in one call. Each action: {type, ref?, value?, text?, key?, timeout?}. Stops at the first failure by default; any failure makes the reply an error.

ParameterTypeDescription
actions *arrayActions, run in order
stop_on_errorbooleanfalse = run the rest after a failure.

fill_form

Fill several fields, then optionally click submit_ref. If any field fails, the reply names it and nothing is submitted.

ParameterTypeDescription
fields *array
submit_refstringRef of submit button to click after filling

login_classic

One-call login for classic email→password forms (Google, Microsoft, generic SSO): fills the email, clicks Next on multi-step forms, fills the password, submits, and enters a TOTP code if asked. Heuristic: for an unusual form use fill/click. Returns the step log and a snapshot.

ParameterTypeDescription
email *stringEmail / username to fill.
password *stringPassword to fill.
step_timeout_msnumberMax wait for each step's field.
submit_after_emailbooleanClick Next/Continue after the email (multi-step forms).
totp_codestring6-digit 2FA code (overrides totp_secret).
totp_secretstringBase32 TOTP secret; a code is generated if a 2FA field appears.

navigate_and_snapshot

Navigate to URL then return snapshot — combined in one call.

ParameterTypeDescription
url *string
wait_untilstring

intercept_start

Block requests before they leave the browser, on every tab including later ones. Blocking image/media/font/stylesheet removes most bytes when scraping; block_urls drops trackers. Re-calling replaces the rules; intercept_stop removes them. 'document' cannot be blocked.

ParameterTypeDescription
block_typesarrayResource types to abort.
block_urlsarrayURL substrings, * = wildcard (e.g. *doubleclick.net*).
log_limitnumberDecisions kept for intercept_log.

intercept_stop

Remove interception rules and report what they blocked.

intercept_log

Show what interception blocked and allowed.

ParameterTypeDescription
actionstring
limitnumber
reveal_valuesbooleanShow credentials in URLs. Masked by default.

export_curl

Rebuild a captured request as a runnable curl command. Needs network_start(capture_bodies=true) before the request; headers are not recorded otherwise.

ParameterTypeDescription
idnumberOr pick by id from network_get.
reveal_valuesbooleanPut the real Cookie, Authorization, tokens and passwords in the command. Placeholders by default.
url_containsstringNewest captured request whose URL contains this.

inspect_element

Get detailed info about an element (tag, attributes, bounding box, styles).

ParameterTypeDescription
ref *string

get_attribute

Get a specific attribute value from an element.

ParameterTypeDescription
attribute *string
ref *string

query_selector_all

Query elements by CSS selector, return text/attributes of all matches.

ParameterTypeDescription
selector *string
attributestringAttribute to extract (empty = innerText)
limitnumber

localstorage_get

Get all localStorage or one key. Credential-named keys (token, secret, session…) are masked unless reveal_values=true.

ParameterTypeDescription
keystringKey to get (empty = all)
reveal_valuesboolean

localstorage_set

Set a localStorage item.

ParameterTypeDescription
key *string
value *string

localstorage_clear

Clear all localStorage.

sessionstorage_get

Get all sessionStorage or one key. Credential-named keys are masked unless reveal_values=true.

ParameterTypeDescription
keystring
reveal_valuesboolean

sessionstorage_set

Set a sessionStorage item.

ParameterTypeDescription
key *string
value *string

mouse_click_xy

Click at viewport x,y. steps>0 curves the path first. Still a Playwright-synthesized event (mozInputSource=0), which some anti-bot checks can tell from a real mouse.

ParameterTypeDescription
x *number
y *number
buttonstring
stepsnumberPre-click path steps (0 = instant, 15-30 = human-like)

mouse_move

Move the mouse to x,y. steps>0 interpolates the path. Still a synthesized event, not hardware input.

ParameterTypeDescription
x *number
y *number
stepsnumberPath steps (0 = jump, 15-30 = smooth)

click_turnstile

Click a Cloudflare interactive Turnstile checkbox with a Playwright mouse click (retries with a small nudge), then report what it observed: token, title/URL, and whether a challenge still shows. Cloudflare often rejects synthetic clicks, so a landed click is not a pass. Test sitekeys are flagged. For a real OS click on macOS: turnstile_coords, then os_click_xy in a separate call.

ParameterTypeDescription
max_attemptsnumberMax click attempts, nudged between tries, until a token appears.
offset_xnumberPixels from the widget's left edge to the checkbox.
offset_ynumberPixels from the widget's top (default: half its height).
wait_render_msnumberWait before the first detection.

turnstile_coords

Locate a Cloudflare Turnstile checkbox and return its viewport x,y as JSON {found,x,y,width,height}, without clicking. Click with os_click_xy in a SEPARATE call: Turnstile rejects a click made next to this frame access.

ParameterTypeDescription
wait_render_msnumberWait before detection

os_click_xy

Headed desktop only: a REAL OS cursor click at viewport x,y (mozInputSource=1), which passes an interactive Turnstile a synthetic click cannot. Tested on macOS; the Windows and Linux (X11) backends are untested. It only clicks: get the coordinates from turnstile_coords in a SEPARATE earlier call, because any page command next to the click makes Turnstile reject it. On macOS without Accessibility permission it opens the permission dialog, and otherwise parks the cursor on the target for a human to click.

ParameterTypeDescription
x *numberViewport X (e.g. from turnstile_coords)
y *numberViewport Y (e.g. from turnstile_coords)

drag_and_drop

Drag from one element to another.

ParameterTypeDescription
source_ref *stringRef of element to drag
target_ref *stringRef of drop target

list_frames

List all frames/iframes in the page.

frame_evaluate

Execute JavaScript inside a specific frame/iframe. world works as in evaluate.

ParameterTypeDescription
expression *string
frame_indexnumberFrame index from list_frames
frame_namestringFrame name (empty = by index)
worldstringmain = the frame's own JavaScript world. isolated = DOM only, invisible to the frame.

wait_for_url

Wait for URL to match a pattern.

ParameterTypeDescription
pattern *stringURL substring or regex pattern
timeoutnumber

wait_for_response

Wait for a network response matching a URL pattern.

ParameterTypeDescription
url_pattern *stringURL substring to match
reveal_valuesbooleanShow credentials in the URL. Masked by default.
timeoutnumber

get_viewport_size

Get current viewport dimensions.

set_viewport_size

Set the viewport size (what the page renders and a screenshot captures). It does not resize the OS window, so a viewport larger than the launch window is impossible geometry a detector can read; the reply warns.

ParameterTypeDescription
height *number
width *number

accessibility_snapshot

Accessibility tree of the page: a compact view of its structure.

server_status

Health check — verify server, browser status, active tabs.

get_page_errors

Uncaught JS errors and unhandled rejections on the current page (max 100). The buffer resets on every navigation, so read it before navigating away.

inject_init_script

Add a script that runs before every page load in the page's own JS world, so page scripts see what it defines.

ParameterTypeDescription
script *stringJavaScript code to inject

export_har

Write captured traffic as a HAR 1.2 file. Needs network_start first; headers and bodies only with capture_bodies=true.

ParameterTypeDescription
limitnumberMax (most recent) requests to include.
pathstring
reveal_valuesbooleanWrite real Cookie, Authorization, tokens and passwords (masked by default: HAR files get shared). The file is 0600 either way.

fingerprint_audit

Report the fingerprint a site sees and flag internal contradictions, the mismatches that reveal automation. Read-only.

detect_content_pattern

Find repeated content (cards, listings, rows) and suggest CSS selectors. Run it before extract_structured.

ParameterTypeDescription
min_itemsnumberMinimum repeats to count as a pattern

extract_structured

Extract fields from repeated elements (cards, rows, listings), de-duplicated, empty items dropped. Find selectors with detect_content_pattern first.

ParameterTypeDescription
container_selector *stringCSS selector for each repeated item.
fields *arrayFields to extract per item
deduplicate_bystringField to de-duplicate by (empty = auto)
direct_text_onlybooleanOnly an element's own text, not its children's (keeps fields from mixing)
limitnumberMax items to extract

extract_table

Extract data from an HTML table as JSON array.

ParameterTypeDescription
limitnumberMax rows
selectorstringCSS selector for the table

scrape_page

Extract a page's main content, links and metadata without nav/footer noise.

ParameterTypeDescription
include_linksboolean
include_metaboolean
max_text_lengthnumberMax text chars (truncates at paragraph boundary)
only_main_contentbooleanKeep only the main content area

wait_and_snapshot

Wait for a selector or text, then return a snapshot.

ParameterTypeDescription
selectorstringCSS selector to wait for
statestring
textstringText to wait for
timeoutnumber

back_and_snapshot

Navigate back + return snapshot.

reload_and_snapshot

Reload page + return snapshot.

click_and_snapshot

Click by ref, wait, then return a snapshot.

ParameterTypeDescription
ref *stringElement ref from browser_snapshot
wait_msnumberms to wait after the click

find_by_text

Find elements by visible text. Returns every match with a ref and ancestor path, so you can see which one a click would hit.

ParameterTypeDescription
text *stringVisible text to search for
exactboolean
limitnumberMax candidates to describe.
withinstringLimit the search: "@dialog", "ref:e5", or a CSS selector.

find_by_label

Find an input by its <label> text. Returns a ref and the match count.

ParameterTypeDescription
label *stringLabel text (e.g. 'Email', 'Password')
withinstringLimit the search: "@dialog", "ref:e5", or a CSS selector.

find_by_placeholder

Find an input by placeholder text. Returns a ref and the match count.

ParameterTypeDescription
placeholder *string
withinstringLimit the search: "@dialog", "ref:e5", or a CSS selector.

page_stats

Page statistics: element count, size, load metrics. Use to decide extraction strategy.

storage_state_save

Save cookies and localStorage to a JSON file; storage_state_load restores the login in a fresh browser.

ParameterTypeDescription
path *stringOutput file path (e.g. ~/.camoufox-mcp/sessions/site.json)

storage_state_load

Load cookies and localStorage from a storage_state_save file.

ParameterTypeDescription
path *stringPath to storage state JSON file
navigate_tostringURL to open after loading (recommended: localStorage is per origin)

auth_capture

Save the current session (cookies + localStorage) to ~/.camoufox-mcp/sessions/<name>.json. Shortcut for storage_state_save.

ParameterTypeDescription
name *stringSession name, e.g. 'github-bob'

humanize_click

Click with a curved mouse approach before the click, for anti-bot pages.

ParameterTypeDescription
refstringElement ref from snapshot
selectorstringCSS selector

humanize_type

Type with Gaussian delays between keys (mean ~80ms, sigma ~30ms).

ParameterTypeDescription
text *stringText to type
mean_delay_msnumber
refstring
selectorstring

mouse_drift

Random mouse movement for a while, to build mouse history before an action (CF/DataDome behaviour scoring).

ParameterTypeDescription
duration_msnumberTotal drift duration
pointsnumberNumber of random destinations

mouse_record

Record mouse positions in the page for mouse_replay (replaces any earlier recorder). mousemove only: no clicks, and nothing inside cross-origin iframes such as a Turnstile widget.

ParameterTypeDescription
duration_msnumber
max_pointsnumberCap on stored points.

mouse_replay

Replay the recorded mouse path with its timing. Moves only, never clicks, and it is still a synthesized event.

ParameterTypeDescription
speednumberReplay speed multiplier (1.0=original, 2.0=2x faster)

session_warmup

Visit harmless public sites (Google, Wikipedia) to build history before a protected site (CF/DataDome IP scoring).

ParameterTypeDescription
duration_msnumberTotal warmup time
sitesarrayURLs to visit (default: google.com, wikipedia.org)

detect_anti_bot

Guess the anti-bot vendor on the page (Cloudflare, DataDome, Akamai, PerimeterX, Imperva) and whether the page is currently a challenge (`challenged`). A vendor with challenged=false only means its scripts are loaded.

assert_element_visible

Assert an element exists and is visible. A failure is an error reply, so batches and workflows count it.

ParameterTypeDescription
selector *string

assert_text_present

Assert text is present anywhere on page (case-sensitive substring).

ParameterTypeDescription
text *string

assert_url_matches

Assert current URL matches pattern (substring or regex).

ParameterTypeDescription
pattern *string
regexboolean

click_and_wait

Click, then wait for a selector or URL in the same call.

ParameterTypeDescription
refstring
selectorstring
timeout_msnumber
wait_for_selectorstringSelector to wait for after click
wait_for_urlstringURL substring to wait for after click

wait_for_network_idle

Wait until no request has been in flight for idle_ms. A request already in flight when this is called counts.

ParameterTypeDescription
idle_msnumberHow long the network must stay quiet before returning.
timeout_msnumber

describe_page

Compact page summary (title, headings, key buttons, forms), cheaper than browser_snapshot. Includes `intent`: login_email, login_password, otp_input, captcha, stay_signed_in, protect_account, error_page, consent, two_factor, account_disabled, content or unknown.

http_request

HTTP request without a browser, with a real Firefox TLS/HTTP2 fingerprint (impit). Reuses the live browser's cookies for the URL by default, so a browser login works for the site's API. Much faster than navigating: for APIs, JSON and pages that need no JS.

ParameterTypeDescription
url *string
bodystringRaw request body (JSON string, form-encoded, …)
headers_jsonstringExtra headers as JSON, e.g. {"Accept":"application/json"}
impersonatestringTLS fingerprint to present. firefox matches the Camoufox browser.
max_charsnumberMax response body characters returned.
methodstring
proxystringProxy URL, e.g. http://user:pass@host:port
reveal_valuesbooleanShow Set-Cookie and tokens in the body and URLs. Masked by default.
timeout_msnumber
use_browser_cookiesboolean

http_session_cookies

Show which browser cookies an http_request to this URL would send. Values are masked unless reveal_values=true.

ParameterTypeDescription
url *string
reveal_valuesboolean

scrape_markdown

Fetch a URL as clean markdown (nav, footer and scripts stripped). Browserless (impit) by default; use_browser=true renders JS pages (needs browser_launch).

ParameterTypeDescription
url *string
impersonatestring
max_charsnumber
proxystring
use_browserbooleanRender in the stealth browser instead of a plain HTTP fetch.

smart_fetch

Fetch over the browserless HTTP path and escalate to the stealth browser only when the response looks anti-bot blocked.

ParameterTypeDescription
url *string
force_browserboolean
impersonatestring
max_charsnumber
proxystring

search_page

Search the current page's visible text and return matches with context. Much cheaper than a snapshot or a screenshot.

ParameterTypeDescription
text *stringSubstring, or a regex source when regex=true
case_sensitiveboolean
context_charsnumber
max_matchesnumber
regexboolean

wait_for_change

Wait until the page actually changes and report what changed (url, title, DOM size, text), or say that nothing did.

ParameterTypeDescription
poll_msnumber
settle_msnumberRequire the page to stay stable this long after the change.
timeoutnumber

assert_clickable

Hit-test an element without clicking: would a real click land on it? Names the element that would intercept the click.

ParameterTypeDescription
refstring
selectorstring

scroll_to

Scroll an element into view (scroll moves by pixels).

ParameterTypeDescription
blockstring
refstring
selectorstring

click_element_offset

Click at a percentage position inside an element instead of its centre (a checkbox at a label's edge, sliders, split buttons).

ParameterTypeDescription
refstring
selectorstring
x_percentnumber0 = left edge, 100 = right edge
y_percentnumber0 = top edge, 100 = bottom edge

click_at_corner

Click a corner of an element, where close/X and dismiss controls usually sit.

ParameterTypeDescription
cornerstring
offsetnumberInset in pixels from the corner.
refstring
selectorstring

paste_text

Fill a field with a real paste (clipboard + Ctrl/Cmd+V), for frameworks that only react to paste events. Falls back to a synthetic event, then the value setter.

ParameterTypeDescription
text *string
refstring
selectorstring

form_introspect

Analyse a form: per field the label, type, value, constraints, validation state and bound JS framework. Explains why a submit is rejected.

ParameterTypeDescription
form_selectorstringCSS selector for the form. Empty = first form, or all top-level fields if the page has none.

smart_fill

Fill fields by LABEL text (fuzzy, case-insensitive), no snapshot needed. Replaces content like fill.

ParameterTypeDescription
fields_json *stringJSON {"Label": "value", …}, e.g. {"Email":"a@b.com"}
submit_labelstringClick the button with this text after filling.
withinstringScope: "@dialog", "ref:e5", or a CSS selector.

dialog_auto_handle

Persistent handler for every dialog on every tab (dialog_handle is one-shot). The action is read when a dialog fires, so it can change without re-arming. enabled=false removes it.

ParameterTypeDescription
actionstring
enabledboolean
prompt_textstringText to submit for prompt() dialogs.

sessionstorage_clear

Clear sessionStorage of the current origin.

wait_for_request

Wait until the page sends a request whose URL contains a substring (wait_for_response waits for the reply). Confirms an action fired its API call.

ParameterTypeDescription
url_pattern *string
methodstringOptional HTTP verb filter (GET/POST/…)
reveal_valuesbooleanShow credentials in the URL and body. Masked by default.
timeoutnumber

storage_snapshot

Save cookies, localStorage, sessionStorage and URL in a named slot for storage_diff.

ParameterTypeDescription
namestring

storage_diff

Compare storage with an earlier storage_snapshot: which cookies and localStorage/sessionStorage keys were added, removed or changed. Values are masked unless reveal_values=true.

ParameterTypeDescription
namestring
reveal_valuesboolean

indexeddb_list

List IndexedDB databases of the current origin, where many SPAs keep auth state and drafts.

indexeddb_delete

Delete an IndexedDB database of the current origin (SPA state that survives a cookie wipe).

ParameterTypeDescription
name *string

performance_timeline

Timing of the current page: TTFB, DOMContentLoaded, load, FCP, LCP and the 5 slowest resources. No CLS: Firefox lacks layout-shift.

browser_recover

Escape hatch when the browser is wedged and browser_close cannot finish: force-closes it and resets server state so browser_launch works again. Reports a profile lock held by another Camoufox ('A copy of Camoufox is already open').

workflow_run

Run tool calls in sequence, any tool by name, with a per-step log. Each step: {"tool":"navigate","args":{"url":"…"},"label":"optional"}. A failed run names its index; start_at resumes there.

ParameterTypeDescription
steps *arraySteps to execute in order.
start_atnumberSkip the first N steps (resume after a failure).
stop_on_errorboolean