mcp-camoufox
v0.13.3MCP 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.
| Parameter | Type | Description |
|---|---|---|
fresh_profile | boolean | Clean temp profile, removed at browser_close. Keeps two accounts on one site apart. |
geoip | boolean | Auto-detect timezone from IP |
headless | boolean | Run without visible window |
height | number | WINDOW height (0 = 800). See width. |
humanize | boolean | Human-like mouse movements |
locale | string | Browser locale |
no_viewport | boolean | Page 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… |
os | string | Fingerprint 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. |
ublock | boolean | Load the bundled uBlock Origin. false saves ~350 MB, and pages load their ads and trackers. |
url | string | URL to navigate to |
width | number | WINDOW 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.
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.
| Parameter | Type | Description |
|---|---|---|
frames | boolean | Include visible iframes. false = main document only. |
limit | number | Max elements (0 = all). |
offset | number | Skip the first N matches. |
roles | array | Only 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.
| Parameter | Type | Description |
|---|---|---|
full_page | boolean | Full scrollable page (ignored when ref/selector is set) |
name | string | Filename prefix |
ref | string | Capture only this element. |
return_image | boolean | false = save to disk only. |
selector | string | Capture 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.
| Parameter | Type | Description |
|---|---|---|
ref * | string | Element ref (e.g. 'e5') |
button | string | |
dblclick | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
text * | string | Visible text |
exact | boolean | |
index | number | Which match (0-based). -1 = require a unique match. |
within | string | "@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.
| Parameter | Type | Description |
|---|---|---|
role * | string | ARIA role (button, link, textbox, etc.) |
index | number | Which 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 an input/textarea by ref, replacing its content (email and number fields too).
| 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.). Says when the page navigated, changed or opened a tab or dialog.
| 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
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).
| Parameter | Type | Description |
|---|---|---|
conditions * | array | Conditions to race. First match wins. |
timeout | number | Max 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.
| Parameter | Type | Description |
|---|---|---|
expression * | string | JS expression |
world | string | main = 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.
| 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 a new tab, in the same window as the active tab. new_window=true opens it in a window of its own.
| Parameter | Type | Description |
|---|---|---|
new_window | boolean | Open a separate window instead of a tab beside the active one. |
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. Values are masked unless reveal_values=true.
| Parameter | Type | Description |
|---|---|---|
domain | string | |
reveal_values | boolean | Show values. A session cookie is a login. |
cookie_set
Set a cookie. expires_days=0 makes a session cookie, gone after browser_close although the profile persists; pass e.g. 30 to keep a login across relaunches.
| 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 | HttpOnly flag (hidden from page JS). |
path | string | |
same_site | string | |
secure | boolean | Secure flag (HTTPS only). Required with same_site='None'. |
cookie_delete
Delete cookies by exact name and/or domain (a domain covers its subdomains, never a look-alike). Both empty = delete ALL cookies. The count is read back from the browser.
| Parameter | Type | Description |
|---|---|---|
domain | string | |
name | string |
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.
| 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 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.
| Parameter | Type | Description |
|---|---|---|
output_path * | string | Absolute path for the PNG. |
prompt * | string | Text prompt for image generation/editing. |
image_paths | array | Reference images to upload first (optional). |
timeout_ms | number | Max 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.
| Parameter | Type | Description |
|---|---|---|
jobs * | array | One prompt and output PNG path per image. |
shared_image_paths | array | Reference images uploaded to every tab, e.g. [logo, style reference]. |
stagger_ms | number | Delay between submitting tabs. |
style_suffix | string | Style text appended to every prompt. |
timeout_ms | number | Max ms per image. |
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 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.
| 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 requests, the newest `limit` rows, each with an #id for network_get_detail.
| Parameter | Type | Description |
|---|---|---|
filter | string | Only URLs containing this. |
limit | number | Max rows to return. |
reveal_values | boolean | Show 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.
| Parameter | Type | Description |
|---|---|---|
id | number | Request #id from network_get. -1 = match by url instead. |
reveal_values | boolean | Show Cookie, Authorization, Set-Cookie, tokens and passwords. Masked by default. |
url | string | With 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.
| Parameter | Type | Description |
|---|---|---|
path | string |
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.
| Parameter | Type | Description |
|---|---|---|
actions * | array | Actions, run in order |
stop_on_error | boolean | false = 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.
| Parameter | Type | Description |
|---|---|---|
fields * | array | |
submit_ref | string | Ref 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.
| 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. |
submit_after_email | boolean | Click Next/Continue after the email (multi-step forms). |
totp_code | string | 6-digit 2FA code (overrides totp_secret). |
totp_secret | string | Base32 TOTP secret; a code is generated if a 2FA field appears. |
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.
| Parameter | Type | Description |
|---|---|---|
block_types | array | Resource types to abort. |
block_urls | array | URL substrings, * = wildcard (e.g. *doubleclick.net*). |
log_limit | number | Decisions kept for intercept_log. |
intercept_stop
Remove interception rules and report what they blocked.
intercept_log
Show what interception blocked and allowed.
| Parameter | Type | Description |
|---|---|---|
action | string | |
limit | number | |
reveal_values | boolean | Show 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.
| Parameter | Type | Description |
|---|---|---|
id | number | Or pick by id from network_get. |
reveal_values | boolean | Put the real Cookie, Authorization, tokens and passwords in the command. Placeholders by default. |
url_contains | string | Newest captured request whose URL contains this. |
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 or one key. Credential-named keys (token, secret, session…) are masked unless reveal_values=true.
| Parameter | Type | Description |
|---|---|---|
key | string | Key to get (empty = all) |
reveal_values | boolean |
localstorage_set
Set a localStorage item.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
key | string | |
reveal_values | boolean |
sessionstorage_set
Set a sessionStorage item.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
x * | number | |
y * | number | |
button | string | |
steps | number | Pre-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.
| Parameter | Type | Description |
|---|---|---|
x * | number | |
y * | number | |
steps | number | Path 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.
| Parameter | Type | Description |
|---|---|---|
max_attempts | number | Max click attempts, nudged between tries, until a token appears. |
offset_x | number | Pixels from the widget's left edge to the checkbox. |
offset_y | number | Pixels from the widget's top (default: half its height). |
wait_render_ms | number | Wait 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.
| Parameter | Type | Description |
|---|---|---|
wait_render_ms | number | Wait 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.
| Parameter | Type | Description |
|---|---|---|
x * | number | Viewport X (e.g. from turnstile_coords) |
y * | number | Viewport Y (e.g. from turnstile_coords) |
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. world works as in evaluate.
| Parameter | Type | Description |
|---|---|---|
expression * | string | |
frame_index | number | Frame index from list_frames |
frame_name | string | Frame name (empty = by index) |
world | string | main = the frame's own JavaScript world. isolated = DOM only, invisible to the frame. |
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 |
reveal_values | boolean | Show credentials in the URL. Masked by default. |
timeout | number |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
script * | string | JavaScript 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.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max (most recent) requests to include. |
path | string | |
reveal_values | boolean | Write 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.
| Parameter | Type | Description |
|---|---|---|
min_items | number | Minimum 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.
| Parameter | Type | Description |
|---|---|---|
container_selector * | string | CSS selector for each repeated item. |
fields * | array | Fields to extract per item |
deduplicate_by | string | Field to de-duplicate by (empty = auto) |
direct_text_only | boolean | Only an element's own text, not its children's (keeps fields from 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
Extract a page's main content, links and metadata without 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 | Keep only the main content area |
wait_and_snapshot
Wait for a selector or text, then return a snapshot.
| 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 by ref, wait, then return a snapshot.
| Parameter | Type | Description |
|---|---|---|
ref * | string | Element ref from browser_snapshot |
wait_ms | number | ms 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.
| 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 an input by its <label> text. Returns a ref and the match count.
| 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 an input by placeholder text. Returns a ref and the match count.
| Parameter | Type | Description |
|---|---|---|
placeholder * | string | |
within | string | Limit the search: "@dialog", "ref:e5", or a CSS selector. |
cookie_export
Export cookies as JSON for cookie_import.
| Parameter | Type | Description |
|---|---|---|
domain | string | Filter by domain (empty = all) |
reveal_values | boolean | Include real values, which cookie_import needs. They are logins, so masked by default; cookie_export_file writes them to a 0600 file instead. |
cookie_import
Import cookies from cookie_export JSON. A masked export is refused.
| 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 and localStorage to a JSON file; storage_state_load restores the login in a fresh browser.
| Parameter | Type | Description |
|---|---|---|
path * | string | Output file path (e.g. ~/.camoufox-mcp/sessions/site.json) |
storage_state_load
Load cookies and localStorage from a storage_state_save file.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to storage state JSON file |
navigate_to | string | URL 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Session name, e.g. 'github-bob' |
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 with a curved mouse approach before the click, for anti-bot pages.
| Parameter | Type | Description |
|---|---|---|
ref | string | Element ref from snapshot |
selector | string | CSS selector |
humanize_type
Type with Gaussian delays between keys (mean ~80ms, sigma ~30ms).
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to type |
mean_delay_ms | number | |
ref | string | |
selector | string |
mouse_drift
Random mouse movement for a while, to build mouse history before an action (CF/DataDome behaviour scoring).
| Parameter | Type | Description |
|---|---|---|
duration_ms | number | Total drift duration |
points | number | Number 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.
| Parameter | Type | Description |
|---|---|---|
duration_ms | number | |
max_points | number | Cap on stored points. |
mouse_replay
Replay the recorded mouse path with its timing. Moves only, never clicks, and it is still a synthesized event.
| Parameter | Type | Description |
|---|---|---|
speed | number | Replay 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).
| Parameter | Type | Description |
|---|---|---|
duration_ms | number | Total warmup time |
sites | array | URLs 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.
| 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, then wait for a selector or URL in the same call.
| 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 no request has been in flight for idle_ms. A request already in flight when this is called counts.
| Parameter | Type | Description |
|---|---|---|
idle_ms | number | How long the network must stay quiet before returning. |
timeout_ms | number |
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.
| 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 |
reveal_values | boolean | Show Set-Cookie and tokens in the body and URLs. Masked by default. |
timeout_ms | number | |
use_browser_cookies | boolean |
http_session_cookies
Show which browser cookies an http_request to this URL would send. Values are masked unless reveal_values=true.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
reveal_values | boolean |
search
Web search through an API you control (self-hosted SearXNG, or Brave/Tavily/Exa with a key), returning title/url/snippet. Never scrapes a results page. MCP_SEARCH_ENDPOINT and MCP_SEARCH_API_KEY set the defaults.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
api_key | string | Defaults to $MCP_SEARCH_API_KEY; SearXNG needs none. |
count | number | |
endpoint | string | API base or full URL, e.g. http://127.0.0.1:8899 (SearXNG). Defaults to $MCP_SEARCH_ENDPOINT. |
extra_params | string | Extra query params as JSON, e.g. {"engines":"google,brave","language":"en"} (SearXNG). |
provider | string | auto infers from the endpoint host and falls back to searxng. |
timeout_ms | number |
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).
| 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
Fetch over the browserless HTTP path and escalate to the stealth browser only when the response looks anti-bot blocked.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
force_browser | boolean | |
impersonate | string | |
max_chars | number | |
proxy | string |
search_page
Search the current page's visible text and return matches with context. Much cheaper than a snapshot or a screenshot.
| 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), or say that 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 land on it? Names the element that would intercept the click.
| Parameter | Type | Description |
|---|---|---|
ref | string | |
selector | string |
scroll_to
Scroll an element into view (scroll 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 (a checkbox at a label's edge, sliders, 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, where close/X and dismiss controls usually sit.
| 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 (clipboard + Ctrl/Cmd+V), for frameworks that only react to paste events. Falls back to a synthetic event, then the value setter.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
ref | string | |
selector | string |
form_introspect
Analyse a form: per field the label, type, value, constraints, validation state and bound JS framework. Explains why a submit is rejected.
| 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 fields by LABEL text (fuzzy, case-insensitive), no snapshot needed. Replaces content like fill.
| Parameter | Type | Description |
|---|---|---|
fields_json * | string | JSON {"Label": "value", …}, e.g. {"Email":"a@b.com"} |
submit_label | string | Click the button with this text after filling. |
within | string | Scope: "@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.
| Parameter | Type | Description |
|---|---|---|
action | string | |
enabled | boolean | |
prompt_text | string | Text 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.
| Parameter | Type | Description |
|---|---|---|
url_pattern * | string | |
method | string | Optional HTTP verb filter (GET/POST/…) |
reveal_values | boolean | Show credentials in the URL and body. Masked by default. |
timeout | number |
storage_snapshot
Save cookies, localStorage, sessionStorage and URL in a named slot for storage_diff.
| Parameter | Type | Description |
|---|---|---|
name | string |
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.
| Parameter | Type | Description |
|---|---|---|
name | string | |
reveal_values | boolean |
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).
| Parameter | Type | Description |
|---|---|---|
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.
| 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 |