camofox-mcp

v1.17.0
camofox-mcp Checked 20 hours ago Published 25 days ago

Anti-detection browser MCP server for AI agents — navigate, interact, and automate the web without getting blocked

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

server_status

Check CamoFox server health and browser connection. Call first to verify server is running. Returns version, browser status, and active tab count.

create_tab

Create a new browser tab with anti-detection fingerprinting. Each tab gets a unique fingerprint. Optionally provide a URL, userId, sessionKey, and viewport. To share the camofox CLI default browser profile/context, pass userId "cli-default" and sessionKey "default"; this creates a tracked MCP tab in that context but does not attach to a CLI tab that is already open.

ParameterTypeDescription
geoModestringGeo merge mode. explicit-wins keeps explicit locale/timezone/geolocation; proxy-locked requires proxy/profile geo values.
geolocationobjectGPS coordinates override
localestringBCP 47 locale override (e.g. "ja-JP", "vi-VN")
networkCaptureobject
presetstringNamed geo preset (e.g. "us-east", "us-west", "japan", "uk", "germany", "vietnam", "singapore", "australia"). Sets locale, timezone, and geolocation.
proxyobjectRaw proxy override. proxyProfile takes precedence when both are provided.
proxyProfilestringNamed proxy profile configured in camofox-browser
sessionKeystringSession key for browser context reuse. Defaults to a new unique session; use "default" with userId "cli-default" for the camofox CLI default context. This does not attach to a tab that the CLI already…
timezoneIdstringIANA timezone override (e.g. "Asia/Tokyo", "Asia/Ho_Chi_Minh")
urlstringFull URL including protocol (e.g. 'https://example.com')
userIdstringUser ID for session isolation. MCP defaults to CAMOFOX_DEFAULT_USER_ID/default; use "cli-default" with sessionKey "default" to share the camofox CLI default context.
viewportobjectBrowser viewport/display size override. Use this to control wide windows, for example { "width": 1366, "height": 768 }.

close_tab

Close a browser tab and release resources. Always close tabs when done to free memory.

ParameterTypeDescription
tabId *stringTab ID from create_tab

list_tabs

List all open browser tabs with URLs and titles. Use to discover available tabs or verify tab state.

navigate

Navigate a tab to a URL. Waits for page load. Use create_tab first, then navigate. Returns final URL (may differ due to redirects).

ParameterTypeDescription
tabId *stringTab ID from create_tab
url *stringFull URL including protocol (e.g. 'https://example.com')

go_back

Navigate backward in browser history (Back button). Returns new page URL.

ParameterTypeDescription
tabId *stringTab ID from create_tab

go_forward

Navigate forward in browser history (Forward button). Returns new page URL.

ParameterTypeDescription
tabId *stringTab ID from create_tab

refresh

Reload the current page. Useful when page state is stale or after changes.

ParameterTypeDescription
tabId *stringTab ID from create_tab

network_capture_start

Start recording an opted-in tab or session created with networkCapture.start set to false.

ParameterTypeDescription
networkKey *stringPrivate, expiring key returned by create_tab. Treat it as a credential.
userIdstring

network_capture_stop

Stop recording. Export while an enrolled tab is still open.

ParameterTypeDescription
networkKey *stringPrivate, expiring key returned by create_tab. Treat it as a credential.
userIdstring

network_list_requests

List a page of sanitized network requests from this capture.

ParameterTypeDescription
networkKey *stringPrivate, expiring key returned by create_tab. Treat it as a credential.
afterinteger
limitinteger
userIdstring

network_get_response

Read metadata for one captured request. Set includeBody only when the capture explicitly enabled bodies and the content is needed.

ParameterTypeDescription
networkKey *stringPrivate, expiring key returned by create_tab. Treat it as a credential.
requestId *integer
includeBodyboolean
userIdstring

network_export_har

Export the capture as sanitized HAR 1.2 JSON. Stop the capture first for a stable export.

ParameterTypeDescription
networkKey *stringPrivate, expiring key returned by create_tab. Treat it as a credential.
userIdstring

network_intercept

Replace up to four exact-match HTTP(S) fetch/XHR abort or static mock rules on an active tab capture. No URL credentials or fragments. Mock bodies: at most 16384 UTF-8 bytes; statuses: 200..299 except 204/205, or 400..599. Pass an empty list to clear. Requires browser-side interception to be enabled.

ParameterTypeDescription
networkKey *stringPrivate, expiring key returned by create_tab. Treat it as a credential.
rules *array
userIdstring

click

Click an element. Provide either ref (from snapshot) or CSS selector. Use snapshot first to discover element refs.

ParameterTypeDescription
tabId *stringTab ID from create_tab
refstringElement ref from snapshot (e.g. 'e1', 'e2')
selectorstringCSS selector (e.g. 'button.submit', '#login')

type_text

Type text into an input field. Provide either a ref (from snapshot) or a CSS selector. Use ref when available; otherwise use selector when snapshot doesn't assign refs (common with combobox/autocomplete inputs). Call snapshot first to find target element.

ParameterTypeDescription
tabId *stringTab ID from create_tab
text *stringText to type into the element. Replaces existing content.
refstringElement ref from snapshot (e.g. 'e1', 'e2')
selectorstringCSS selector (e.g. 'input[name=q]', '#search-input')

scroll

Scroll page up or down by pixel amount. Use to reveal content below the fold or navigate long pages.

ParameterTypeDescription
direction *stringScroll direction
tabId *stringTab ID from create_tab
amountintegerPixels to scroll (default: 500)

camofox_scroll_element

Scroll a specific container element (modal dialog, scrollable div, sidebar). Use when page-level scroll doesn't reach content inside modals or overflow containers. Returns scroll position metadata to track progress.

ParameterTypeDescription
tabId *stringTab ID from create_tab
deltaXnumberHorizontal scroll pixels
deltaYnumberVertical scroll pixels (positive=down, negative=up)
refstringElement ref from snapshot (e.g. 'e5')
selectorstringCSS selector for scrollable container (e.g. '[role=dialog]', '.modal-body')

camofox_evaluate_js

Execute JavaScript in the browser page context. Runs in isolated scope (invisible to page scripts — safe for anti-detection). Use for: extracting data not visible in accessibility snapshot, checking element properties, reading computed styles, manipulating DOM elements. Requires CAMOFOX_API_KEY only when browser-server authentication is enabled.

ParameterTypeDescription
expression *stringJavaScript expression to evaluate (e.g. 'document.title', 'document.querySelectorAll("img").length', 'document.querySelector(".modal").scrollHeight')
tabId *stringTab ID from create_tab
timeoutintegerExecution timeout in ms (max 30000)

camofox_hover

Hover over an element to trigger tooltips, dropdown menus, or hover states. Use ref from snapshot or CSS selector.

ParameterTypeDescription
tabId *stringTab ID
refstringElement ref from snapshot (e.g. 'e5')
selectorstringCSS selector (e.g. '#menu-item', '.dropdown-trigger')

camofox_wait_for

Wait for page to be fully ready (DOM loaded, network idle, framework hydration complete). Use after navigation or actions that trigger page changes.

ParameterTypeDescription
tabId *stringTab ID
timeoutnumberTimeout in ms (default: 10000)
waitForNetworkbooleanWait for network idle (default: true)

camofox_press_key

Press a keyboard key. Use after type_text to submit forms (Enter), navigate between elements (Tab), move through suggestions (ArrowDown/ArrowUp), or dismiss dialogs (Escape). Common keys: Enter, Tab, Escape, ArrowDown, ArrowUp, Backspace, Space.

ParameterTypeDescription
key *stringKey to press (e.g. 'Enter', 'Escape', 'Tab', 'ArrowDown')
tabId *stringTab ID from create_tab

snapshot

Get accessibility tree snapshot — the PRIMARY way to read page content. Returns element refs, roles, names and values. Token-efficient. Always prefer over screenshot. Refs come from the accessibility tree, so custom SPA elements may be missing; fall back to CSS selectors, camofox_wait_for_selector, or camofox_get_page_html when needed.

ParameterTypeDescription
tabId *stringTab ID from create_tab
offsetnumberOffset for paginating large snapshots. Use nextOffset from previous response.

camofox_get_page_html

Get rendered HTML from the live DOM. Use when snapshot refs are incomplete on SPA/custom-component sites or when you need the final DOM state rather than the accessibility tree. Optionally pass a CSS selector to return only that element's outerHTML instead of the full page. Requires CAMOFOX_API_KEY only when browser-server authentication is enabled.

ParameterTypeDescription
tabId *stringTab ID from create_tab
selectorstringOptional CSS selector to scope HTML extraction to a single element

camofox_query_selector

Query a CSS selector in the live DOM and return its element details or a specific attribute. Use this for targeted inspection without writing raw evaluate_js. Requires CAMOFOX_API_KEY only when browser-server authentication is enabled.

ParameterTypeDescription
selector *stringCSS selector to query
tabId *stringTab ID from create_tab
attributestringOptional attribute name to return instead of the full element payload

screenshot

Take a viewport or full-page visual screenshot in base64 PNG. Set fullPage to capture the entire scrollable page. Use ONLY for visual verification (CSS, layout, proof). Prefer snapshot for most tasks — much more token-efficient.

ParameterTypeDescription
tabId *stringTab ID from create_tab
fullPagebooleanCapture the entire scrollable page instead of only the current viewport

camofox_wait_for_text

Wait for specific text to appear on the page. Useful for waiting for search results, form submissions, or dynamic content loading.

ParameterTypeDescription
tabId *stringTab ID
text *stringText to wait for
timeoutnumberTimeout in ms (default: 10000)

camofox_wait_for_selector

Wait for a CSS selector to appear in the live DOM. Use for SPA hydration and async content when snapshot refs are incomplete or stale. Once found, prefer snapshot refs for interaction when available. Requires CAMOFOX_API_KEY only when browser-server authentication is enabled.

ParameterTypeDescription
selector *stringCSS selector to wait for
tabId *stringTab ID from create_tab
timeoutintegerTimeout in ms (default: 10000)

list_downloads

List downloaded files with optional filtering by tab, status, extension, MIME type, and size range. Each download includes contentUrl for direct file retrieval.

ParameterTypeDescription
extensionstringFilter by file extension, comma-separated: 'pdf,zip,jpg'
limitintegerMax results to return
maxSizeintegerMaximum file size in bytes
mimeTypestringFilter by MIME type prefix: 'image/', 'application/pdf'
minSizeintegerMinimum file size in bytes
offsetintegerResult offset
sortstringSort order: 'createdAt:asc' or 'createdAt:desc' (default)
statusstringFilter by status: pending, completed, failed, canceled
tabIdstringFilter by specific tab. If omitted, lists all user downloads.
userIdstringUser ID (default: CAMOFOX_DEFAULT_USER_ID or tracked tab userId)

get_download

Get a downloaded file. Images are always returned as viewable images. Recommended for AI agents: set includeContent=true to get non-image file content as base64 inline (max 256KB). Otherwise returns metadata only (including contentUrl).

ParameterTypeDescription
downloadId *stringID of the download
includeContentbooleanWhether to include file content for non-image files
userIdstringUser ID (default: CAMOFOX_DEFAULT_USER_ID)

delete_download

Delete a downloaded file from disk and registry

ParameterTypeDescription
downloadId *stringID of the download to delete
userIdstringUser ID (default: CAMOFOX_DEFAULT_USER_ID)

extract_resources

Extract resources (images, links, media, documents) from a specific DOM container. Use a CSS selector or element ref from snapshot to scope extraction to a particular section of the page. This is useful for extracting all images from a specific post, all links from a table, etc.

ParameterTypeDescription
tabId *stringTab ID from create_tab
extensionsarrayFilter by file extensions: ['pdf', 'jpg', 'png']
maxDepthintegerMax nesting depth for container traversal
refstringElement ref from snapshot (e.g., 'e12'). Either selector or ref required.
resolveBlobsbooleanResolve blob: URLs to data: URIs
selectorstringCSS selector for target container (e.g., '.message:nth-child(3)')
triggerLazyLoadbooleanScroll to trigger lazy-loaded images before extraction
typesarrayResource types to extract: 'images', 'links', 'media', 'documents' (singular forms also accepted). Default: all.
userIdstringUser ID override (default: tracked tab userId)

extract_structured

Extract deterministic structured JSON from a page using the camofox-browser structured extraction schema.

ParameterTypeDescription
schema *objectStructured extraction schema understood by camofox-browser
tabId *stringTab ID from create_tab
userIdstringUser ID override (default: tracked tab userId)

batch_download

Extract resources from a DOM container and download them all. Combines extract_resources + download in one call. Useful for downloading all images from a chat, all PDFs from a table, etc.

ParameterTypeDescription
tabId *stringTab ID from create_tab
concurrencyintegerParallel download limit
extensionsarrayFilter extensions: ['jpg', 'pdf']
maxFilesintegerMaximum files to download
refstringElement ref from snapshot
resolveBlobsbooleanAuto-resolve blob: URLs
selectorstringCSS selector for target container
typesarrayResource types: 'images', 'links', 'media', 'documents' (singular forms also accepted)
userIdstringUser ID override (default: tracked tab userId)

resolve_blobs

Resolve blob: URLs to downloadable base64 data. Blob URLs are temporary browser objects (common in Telegram, WhatsApp, Discord) that cannot be downloaded directly. This tool converts them to base64 data URIs.

ParameterTypeDescription
tabId *stringTab ID from create_tab
urls *arrayArray of blob: URLs to resolve
userIdstringUser ID override (default: tracked tab userId)

youtube_transcript

Extract transcript from a YouTube video. Returns timestamped text. No tab required.

ParameterTypeDescription
url *stringYouTube video URL
languagesarrayPreferred languages (default: ["en"])

import_cookies

Import cookies for authenticated sessions. Provide cookies in a JSON string array. Restores login sessions without re-auth. Requires userId.

ParameterTypeDescription
cookies *stringJSON string of cookie array to import
userId *stringUser ID for session isolation
tabIdstringTab ID to target correct session (needed when using presets)

get_stats

Get session statistics: request counts, active tabs, uptime, performance metrics.

ParameterTypeDescription
tabId *stringTab ID from create_tab

camofox_close_session

Close all browser tabs for a user session. Use for complete cleanup when done with a browsing session.

ParameterTypeDescription
tabId *stringAny tab ID from the session to identify the user

toggle_display

Toggle browser display mode between headless and headed. When encountering CAPTCHAs or issues requiring visual interaction, switch to headed mode (headless: false) to show the browser window. After resolving, switch back to headless mode (headless: true). When switching an existing single context to virtual or headed mode, the response includes a vncUrl field — open this URL in a browser to see and interact with the browser GUI. Check tabsInvalidated in the response: when true, recreate tabs; when false, existing tracked tabs remain usable and the override applies to future contexts.

ParameterTypeDescription
headless *Display mode — false for headed, true for headless, "virtual" for virtual display
userId *stringUser/session identifier

fill_form

Fill multiple form fields in one call. Provide an array of field entries, each with a ref or CSS selector and the text to type. Optionally specify a submit button to click after filling.

ParameterTypeDescription
fields *arrayArray of form fields to fill
tabId *stringTab ID from create_tab
submitobjectOptional submit button to click after filling all fields

type_and_submit

Type text into a field and press a key (default: Enter). Useful for search boxes and single-field forms.

ParameterTypeDescription
tabId *stringTab ID from create_tab
text *stringText to type
keystringKey to press after typing (default: Enter)
refstringElement ref from snapshot
selectorstringCSS selector

navigate_and_snapshot

Navigate to a URL and return the page snapshot. Combines navigate + wait + snapshot into one call.

ParameterTypeDescription
tabId *stringTab ID from create_tab
url *stringFull URL to navigate to
timeoutnumberWait timeout in ms
waitForTextstringOptional text to wait for before taking snapshot

scroll_and_snapshot

Scroll the page and take a snapshot. Useful for revealing content below the fold.

ParameterTypeDescription
direction *stringScroll direction
tabId *stringTab ID from create_tab
amountnumberPixels to scroll
waitMsnumberMilliseconds to wait after scrolling before snapshot

camofox_scroll_element_and_snapshot

Scroll a container element AND take a snapshot. Combines scroll_element + snapshot in one call. Perfect for incrementally loading lazy content in modals (e.g. Facebook group post comments). Returns both scroll position and page snapshot.

ParameterTypeDescription
tabId *stringTab ID
deltaYnumberScroll delta
refstringElement ref from snapshot
selectorstringCSS selector for scrollable container
waitMsnumberWait before snapshot (ms)

batch_click

Click multiple elements sequentially. Continues on error (clicks are independent). Returns per-click results.

ParameterTypeDescription
clicks *arrayArray of elements to click
tabId *stringTab ID from create_tab
delayMsnumberDelay between clicks in ms

save_profile

Save browser cookies from an active tab to a named profile on disk. Enables session persistence across restarts. Use after login to save authenticated state.

ParameterTypeDescription
profileId *stringProfile name (alphanumeric, hyphens, underscores, dots, 1-64 chars)
tabId *stringTab ID to export cookies from
descriptionstringOptional description for this profile

load_profile

Load a saved profile's cookies into an active browser tab. Restores login sessions without re-authentication. Use after create_tab to restore saved state.

ParameterTypeDescription
profileId *stringProfile name to load
tabId *stringTab ID to load cookies into

list_profiles

List all saved browser profiles with metadata. Shows profile names, cookie counts, save dates, and descriptions.

delete_profile

Delete a saved browser profile from disk. Removes the profile's cookie data permanently.

ParameterTypeDescription
profileId *stringProfile name to delete

list_presets

List all available geo presets supported by the CamoFox server. Presets include locale, timezone, and optional geolocation.