camofox-mcp
v1.17.0Anti-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.
| Parameter | Type | Description |
|---|---|---|
geoMode | string | Geo merge mode. explicit-wins keeps explicit locale/timezone/geolocation; proxy-locked requires proxy/profile geo values. |
geolocation | object | GPS coordinates override |
locale | string | BCP 47 locale override (e.g. "ja-JP", "vi-VN") |
networkCapture | object | |
preset | string | Named geo preset (e.g. "us-east", "us-west", "japan", "uk", "germany", "vietnam", "singapore", "australia"). Sets locale, timezone, and geolocation. |
proxy | object | Raw proxy override. proxyProfile takes precedence when both are provided. |
proxyProfile | string | Named proxy profile configured in camofox-browser |
sessionKey | string | Session 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… |
timezoneId | string | IANA timezone override (e.g. "Asia/Tokyo", "Asia/Ho_Chi_Minh") |
url | string | Full URL including protocol (e.g. 'https://example.com') |
userId | string | User 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. |
viewport | object | Browser 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.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID from create_tab |
list_tabs
List all open browser tabs with URLs and titles. Use to discover available tabs or verify tab state.
go_back
Navigate backward in browser history (Back button). Returns new page URL.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID from create_tab |
go_forward
Navigate forward in browser history (Forward button). Returns new page URL.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID from create_tab |
refresh
Reload the current page. Useful when page state is stale or after changes.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID from create_tab |
network_capture_start
Start recording an opted-in tab or session created with networkCapture.start set to false.
| Parameter | Type | Description |
|---|---|---|
networkKey * | string | Private, expiring key returned by create_tab. Treat it as a credential. |
userId | string |
network_capture_stop
Stop recording. Export while an enrolled tab is still open.
| Parameter | Type | Description |
|---|---|---|
networkKey * | string | Private, expiring key returned by create_tab. Treat it as a credential. |
userId | string |
network_list_requests
List a page of sanitized network requests from this capture.
| Parameter | Type | Description |
|---|---|---|
networkKey * | string | Private, expiring key returned by create_tab. Treat it as a credential. |
after | integer | |
limit | integer | |
userId | string |
network_get_response
Read metadata for one captured request. Set includeBody only when the capture explicitly enabled bodies and the content is needed.
| Parameter | Type | Description |
|---|---|---|
networkKey * | string | Private, expiring key returned by create_tab. Treat it as a credential. |
requestId * | integer | |
includeBody | boolean | |
userId | string |
network_export_har
Export the capture as sanitized HAR 1.2 JSON. Stop the capture first for a stable export.
| Parameter | Type | Description |
|---|---|---|
networkKey * | string | Private, expiring key returned by create_tab. Treat it as a credential. |
userId | string |
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.
| Parameter | Type | Description |
|---|---|---|
networkKey * | string | Private, expiring key returned by create_tab. Treat it as a credential. |
rules * | array | |
userId | string |
click
Click an element. Provide either ref (from snapshot) or CSS selector. Use snapshot first to discover element refs.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID from create_tab |
ref | string | Element ref from snapshot (e.g. 'e1', 'e2') |
selector | string | CSS 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.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID from create_tab |
text * | string | Text to type into the element. Replaces existing content. |
ref | string | Element ref from snapshot (e.g. 'e1', 'e2') |
selector | string | CSS 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.
| Parameter | Type | Description |
|---|---|---|
direction * | string | Scroll direction |
tabId * | string | Tab ID from create_tab |
amount | integer | Pixels 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.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID from create_tab |
deltaX | number | Horizontal scroll pixels |
deltaY | number | Vertical scroll pixels (positive=down, negative=up) |
ref | string | Element ref from snapshot (e.g. 'e5') |
selector | string | CSS 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.
| Parameter | Type | Description |
|---|---|---|
expression * | string | JavaScript expression to evaluate (e.g. 'document.title', 'document.querySelectorAll("img").length', 'document.querySelector(".modal").scrollHeight') |
tabId * | string | Tab ID from create_tab |
timeout | integer | Execution 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.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID |
ref | string | Element ref from snapshot (e.g. 'e5') |
selector | string | CSS 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.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID |
timeout | number | Timeout in ms (default: 10000) |
waitForNetwork | boolean | Wait 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.
| Parameter | Type | Description |
|---|---|---|
key * | string | Key to press (e.g. 'Enter', 'Escape', 'Tab', 'ArrowDown') |
tabId * | string | Tab 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.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID from create_tab |
offset | number | Offset 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.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID from create_tab |
selector | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
selector * | string | CSS selector to query |
tabId * | string | Tab ID from create_tab |
attribute | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID from create_tab |
fullPage | boolean | Capture the entire scrollable page instead of only the current viewport |
get_links
Get all hyperlinks on page with URLs and text. Useful for navigation discovery and site mapping.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID from create_tab |
downloadOnly | boolean | Only include links with a download attribute |
extension | string | Filter by extension, comma-separated (e.g. 'pdf,zip') |
scope | string | CSS selector to scope link extraction to a container |
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.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID |
text * | string | Text to wait for |
timeout | number | Timeout 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.
| Parameter | Type | Description |
|---|---|---|
selector * | string | CSS selector to wait for |
tabId * | string | Tab ID from create_tab |
timeout | integer | Timeout 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.
| Parameter | Type | Description |
|---|---|---|
extension | string | Filter by file extension, comma-separated: 'pdf,zip,jpg' |
limit | integer | Max results to return |
maxSize | integer | Maximum file size in bytes |
mimeType | string | Filter by MIME type prefix: 'image/', 'application/pdf' |
minSize | integer | Minimum file size in bytes |
offset | integer | Result offset |
sort | string | Sort order: 'createdAt:asc' or 'createdAt:desc' (default) |
status | string | Filter by status: pending, completed, failed, canceled |
tabId | string | Filter by specific tab. If omitted, lists all user downloads. |
userId | string | User 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).
| Parameter | Type | Description |
|---|---|---|
downloadId * | string | ID of the download |
includeContent | boolean | Whether to include file content for non-image files |
userId | string | User ID (default: CAMOFOX_DEFAULT_USER_ID) |
delete_download
Delete a downloaded file from disk and registry
| Parameter | Type | Description |
|---|---|---|
downloadId * | string | ID of the download to delete |
userId | string | User 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.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID from create_tab |
extensions | array | Filter by file extensions: ['pdf', 'jpg', 'png'] |
maxDepth | integer | Max nesting depth for container traversal |
ref | string | Element ref from snapshot (e.g., 'e12'). Either selector or ref required. |
resolveBlobs | boolean | Resolve blob: URLs to data: URIs |
selector | string | CSS selector for target container (e.g., '.message:nth-child(3)') |
triggerLazyLoad | boolean | Scroll to trigger lazy-loaded images before extraction |
types | array | Resource types to extract: 'images', 'links', 'media', 'documents' (singular forms also accepted). Default: all. |
userId | string | User ID override (default: tracked tab userId) |
extract_structured
Extract deterministic structured JSON from a page using the camofox-browser structured extraction schema.
| Parameter | Type | Description |
|---|---|---|
schema * | object | Structured extraction schema understood by camofox-browser |
tabId * | string | Tab ID from create_tab |
userId | string | User 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.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID from create_tab |
concurrency | integer | Parallel download limit |
extensions | array | Filter extensions: ['jpg', 'pdf'] |
maxFiles | integer | Maximum files to download |
ref | string | Element ref from snapshot |
resolveBlobs | boolean | Auto-resolve blob: URLs |
selector | string | CSS selector for target container |
types | array | Resource types: 'images', 'links', 'media', 'documents' (singular forms also accepted) |
userId | string | User 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.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID from create_tab |
urls * | array | Array of blob: URLs to resolve |
userId | string | User ID override (default: tracked tab userId) |
web_search
Search via the 14 macros supported by camofox-browser 2.4.7: google, youtube, amazon, reddit, reddit_subreddit, wikipedia, twitter, yelp, spotify, netflix, linkedin, instagram, tiktok, twitch. Also supports engine=custom via CAMOFOX_SEARCH_URL_TEMPLATE and ordinary browser navigation/network policy. Returns a snapshot of results.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query text; for reddit_subreddit, pass the subreddit name |
tabId * | string | Tab ID from create_tab |
engine | string | Browser search macro or configured custom URL template (default: google) |
youtube_transcript
Extract transcript from a YouTube video. Returns timestamped text. No tab required.
| Parameter | Type | Description |
|---|---|---|
url * | string | YouTube video URL |
languages | array | Preferred 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.
| Parameter | Type | Description |
|---|---|---|
cookies * | string | JSON string of cookie array to import |
userId * | string | User ID for session isolation |
tabId | string | Tab ID to target correct session (needed when using presets) |
get_stats
Get session statistics: request counts, active tabs, uptime, performance metrics.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab 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.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Any 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.
| Parameter | Type | Description |
|---|---|---|
headless * | Display mode — false for headed, true for headless, "virtual" for virtual display | |
userId * | string | User/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.
| Parameter | Type | Description |
|---|---|---|
fields * | array | Array of form fields to fill |
tabId * | string | Tab ID from create_tab |
submit | object | Optional 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.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID from create_tab |
text * | string | Text to type |
key | string | Key to press after typing (default: Enter) |
ref | string | Element ref from snapshot |
selector | string | CSS selector |
scroll_and_snapshot
Scroll the page and take a snapshot. Useful for revealing content below the fold.
| Parameter | Type | Description |
|---|---|---|
direction * | string | Scroll direction |
tabId * | string | Tab ID from create_tab |
amount | number | Pixels to scroll |
waitMs | number | Milliseconds 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.
| Parameter | Type | Description |
|---|---|---|
tabId * | string | Tab ID |
deltaY | number | Scroll delta |
ref | string | Element ref from snapshot |
selector | string | CSS selector for scrollable container |
waitMs | number | Wait before snapshot (ms) |
batch_click
Click multiple elements sequentially. Continues on error (clicks are independent). Returns per-click results.
| Parameter | Type | Description |
|---|---|---|
clicks * | array | Array of elements to click |
tabId * | string | Tab ID from create_tab |
delayMs | number | Delay 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.
| Parameter | Type | Description |
|---|---|---|
profileId * | string | Profile name (alphanumeric, hyphens, underscores, dots, 1-64 chars) |
tabId * | string | Tab ID to export cookies from |
description | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
profileId * | string | Profile name to load |
tabId * | string | Tab 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.
| Parameter | Type | Description |
|---|---|---|
profileId * | string | Profile name to delete |
list_presets
List all available geo presets supported by the CamoFox server. Presets include locale, timezone, and optional geolocation.