pydoll-browser-mcp
v0.2.1MCP server for browser automation powered by pydoll (Chrome/Edge over CDP) with multi-context, multi-tab and per-context proxy support.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
browser_launch
Launch a new Chrome or Edge browser and return its browser_id. proxy: optional browser-wide proxy. Accepts host:port, host:port:user:password, or scheme://[user:pass@]host:port. For different proxies per identity prefer context_create(proxy_server=...).
| Parameter | Type | Description |
|---|---|---|
browser | string | |
connection_port | integer | |
executable_path | string | |
extra_args | ||
headless | ||
make_default | boolean | |
proxy | string | |
proxy_bypass | string | |
user_data_dir | string | |
window_height | integer | |
window_width | integer |
browser_connect
Attach to an already-running browser over its CDP WebSocket address.
| Parameter | Type | Description |
|---|---|---|
ws_address * | string |
browser_list
List running browsers with their contexts and tabs.
browser_status
Get browser version, contexts, open tabs and window id.
| Parameter | Type | Description |
|---|---|---|
browser_id | string |
browser_close
Close a browser and all of its contexts/tabs.
| Parameter | Type | Description |
|---|---|---|
browser_id | string |
browser_set_window
Control the browser window: action is maximize|minimize|bounds.
| Parameter | Type | Description |
|---|---|---|
action | string | |
browser_id | string | |
height | integer | |
left | integer | |
top | integer | |
width | integer |
browser_grant_permissions
Grant browser permissions (geolocation, notifications, camera, ...).
| Parameter | Type | Description |
|---|---|---|
permissions * | array | |
browser_id | string | |
context_id | string | |
origin | string |
browser_reset_permissions
Reset all browser permissions to default.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
context_id | string |
browser_set_download_path
Set the download directory for the browser or a specific context.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
browser_id | string | |
context_id | string |
browser_set_extra_headers
Apply extra HTTP headers to every request at the browser level.
| Parameter | Type | Description |
|---|---|---|
headers * | object | |
browser_id | string |
browser_clear_cache
Clear the browser HTTP cache.
| Parameter | Type | Description |
|---|---|---|
browser_id | string |
context_create
Create an isolated browser context (own cookies/storage and optional proxy). This is the recommended way to give one identity its own egress IP: pass proxy_server as host:port:user:password or scheme://user:pass@host:port.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
name | string | |
proxy_bypass_list | string | |
proxy_server | string |
context_list
List contexts for a browser.
| Parameter | Type | Description |
|---|---|---|
browser_id | string |
context_delete
Delete a context and close every tab inside it.
| Parameter | Type | Description |
|---|---|---|
context_id * | string | |
browser_id | string |
context_cookies_get
Read all cookies in a context (works without an open tab).
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
context_id | string |
context_cookies_set
Set cookies in a context. Each cookie needs at least name/value and domain or url.
| Parameter | Type | Description |
|---|---|---|
cookies * | array | |
browser_id | string | |
context_id | string |
context_cookies_delete
Delete all cookies in a context.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
context_id | string |
context_storage_state_export
Export cookies and the current tab's localStorage as a reusable state JSON.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
context_id | string | |
save_to | string |
context_storage_state_import
Import cookies (and localStorage where the tab is on the right origin).
| Parameter | Type | Description |
|---|---|---|
state * | object | |
browser_id | string | |
context_id | string |
proxy_test
Verify a proxy by opening a throwaway context and checking the egress IP. Returns the observed IP, HTTP status and timing so you can validate credentials before launching a long run.
| Parameter | Type | Description |
|---|---|---|
proxy_server * | string | |
browser_id | string | |
proxy_bypass_list | string | |
url | string |
tab_new
Open a new tab (optionally inside a given context) and return its tab_id.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
context_id | string | |
make_default | boolean | |
url | string |
tab_list
List open tabs. sync=True also discovers popups/new windows.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
sync | boolean |
tab_select
Make a tab the default target for subsequent calls and focus it.
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
browser_id | string |
tab_close
Close a tab (defaults to the active tab).
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
tab_back
Go back in history.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
tab_forward
Go forward in history.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
tab_refresh
Reload the current page.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
ignore_cache | boolean | |
tab_id | string |
tab_info
Return URL, title, document readyState and a health probe for a tab.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
tab_get_html
Return the live HTML source of the page (truncated past the result limit).
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
tab_execute_script
Execute JavaScript in the page and return its value (return_by_value). timeout is in seconds; 0 uses the server default (PYDOLL_MCP_SCRIPT_TIMEOUT).
| Parameter | Type | Description |
|---|---|---|
script * | string | |
await_promise | boolean | |
browser_id | string | |
tab_id | string | |
timeout | number |
tab_wait
Sleep for a number of seconds.
| Parameter | Type | Description |
|---|---|---|
seconds | number |
tab_wait_for_text
Wait until text appears (appear=True) or disappears from the page body.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
appear | boolean | |
browser_id | string | |
tab_id | string | |
timeout | integer |
tab_wait_for_url
Wait until the tab URL matches a glob pattern (e.g. ``**/dashboard*``).
| Parameter | Type | Description |
|---|---|---|
pattern * | string | |
browser_id | string | |
tab_id | string | |
timeout | integer |
tab_wait_for_element
Wait for a CSS/XPath selector to exist (and optionally be visible).
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
browser_id | string | |
tab_id | string | |
timeout | integer | |
visible | boolean |
tab_screenshot
Screenshot the page or an element. Returns an image unless path is given. Cropping and zooming run on the captured bitmap in Python; the page is never scrolled, restyled or modified. - region: [x1, y1, x2, y2] in viewport CSS pixels (the same space as mouse_click; read values off a grid shot). The image is cropped to that rectangle, clipped to the viewport when it extends past it. With full_page=True the region is in page coordinates instead. - scale: zoom applied to the crop (1.0 = native, 2.0 = 2x). Integer zooms are p…
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
format | string | |
full_page | boolean | |
grid | ||
path | string | |
quality | integer | |
ref | string | |
region | ||
scale | number | |
selector | string | |
tab_id | string |
tab_pdf
Print the page to PDF and save it to a file.
| Parameter | Type | Description |
|---|---|---|
background | boolean | |
browser_id | string | |
header_footer | boolean | |
landscape | boolean | |
path | string | |
scale | number | |
tab_id | string |
tab_scroll
Scroll the page. to=bottom|top, or direction=down|up|left|right with distance, or scroll a specific element into view via selector/ref.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
direction | string | |
distance | integer | |
ref | string | |
selector | string | |
tab_id | string | |
to | string |
tab_handle_dialog
Accept or dismiss a JavaScript alert/confirm/prompt dialog.
| Parameter | Type | Description |
|---|---|---|
accept | boolean | |
browser_id | string | |
prompt_text | string | |
tab_id | string |
tab_bring_to_front
Focus a tab/window.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
find_element
Find the first element by CSS/XPath selector or a snapshot ref. Returns a ref.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
ref | string | |
selector | string | |
tab_id | string | |
timeout | integer |
find_elements
Find all elements matching a CSS/XPath selector.
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
browser_id | string | |
limit | integer | |
tab_id | string |
query_selector
Check whether a selector exists and return a stable ref for the first match.
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
browser_id | string | |
find_all | boolean | |
tab_id | string | |
timeout | integer |
element_info
Return detailed information about an element.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
ref | string | |
selector | string | |
tab_id | string |
element_click
Click an element. js=True uses JavaScript click; humanize=True simulates motion.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
double | boolean | |
humanize | boolean | |
js | boolean | |
ref | string | |
right | boolean | |
selector | string | |
tab_id | string | |
x_offset | integer | |
y_offset | integer |
element_type_text
Type text into an element (character by character when humanize=True).
| Parameter | Type | Description |
|---|---|---|
text * | string | |
browser_id | string | |
clear_first | boolean | |
humanize | boolean | |
press_enter | boolean | |
ref | string | |
selector | string | |
tab_id | string |
element_insert_text
Insert text instantly via JavaScript (fast, works with rich editors).
| Parameter | Type | Description |
|---|---|---|
text * | string | |
browser_id | string | |
ref | string | |
selector | string | |
tab_id | string |
element_clear
Clear an input/textarea/contenteditable element.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
ref | string | |
selector | string | |
tab_id | string |
element_press_key
Press a keyboard key while an element is focused (e.g. Enter, Tab, Escape).
| Parameter | Type | Description |
|---|---|---|
key * | string | |
browser_id | string | |
ref | string | |
selector | string | |
tab_id | string |
element_select_option
Select an option in a <select> by value, visible label, or index.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
index | integer | |
label | string | |
ref | string | |
selector | string | |
tab_id | string | |
value | string |
element_check
Check or uncheck a checkbox/radio.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
checked | boolean | |
ref | string | |
selector | string | |
tab_id | string |
element_set_input_files
Attach files to a file input element.
| Parameter | Type | Description |
|---|---|---|
files * | array | |
browser_id | string | |
ref | string | |
selector | string | |
tab_id | string |
element_get_attribute
Read an attribute value from an element.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
browser_id | string | |
ref | string | |
selector | string | |
tab_id | string |
element_scroll_into_view
Scroll an element into the viewport.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
ref | string | |
selector | string | |
tab_id | string |
element_hover
Hover over an element with the real mouse.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
ref | string | |
selector | string | |
tab_id | string |
element_screenshot
Screenshot a single element and return it as an image. The element is cropped from a plain capture in Python; the page is never scrolled or modified. If the element is only partially visible, the visible part is captured; if it is outside the viewport an error suggests using tab_screenshot(full_page=True). - scale: zoom on the crop (1.0 = native, 2.0 = pixel-crisp 2x). - grid: [cols, rows] grid drawn on the returned image with absolute viewport coordinates (the same space as mouse_click).
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
format | string | |
grid | ||
path | string | |
quality | integer | |
ref | string | |
scale | number | |
selector | string | |
tab_id | string |
form_fill
Fill many fields in one call. Each field: {"selector"|"ref": ..., "value": ..., "type": "text|select|checkbox"}. Prefer this over repeated element_* calls for forms.
| Parameter | Type | Description |
|---|---|---|
fields * | array | |
browser_id | string | |
submit | boolean | |
tab_id | string |
page_snapshot
Return a compact list of interactive elements with stable refs. Use the returned refs with element_click / element_type_text / form_fill. This is cheaper than a screenshot and gives deterministic targeting.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
max_items | integer | |
tab_id | string |
page_get_text
Return the visible text of the page (or of a selector).
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
selector | string | |
tab_id | string |
page_get_links
Return all links on the page as {text, href}.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
limit | integer | |
tab_id | string |
page_get_tables
Extract HTML tables as structured rows.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
limit | integer | |
tab_id | string |
page_get_metadata
Return title, canonical, description and Open Graph / meta tags.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
network_enable
Start recording network requests for a tab.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
network_disable
Stop recording network requests for a tab.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
network_get_requests
List recorded requests (optionally filtered by URL substring/regex).
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
filter | string | |
include_static | boolean | |
limit | integer | |
tab_id | string |
network_get_request_detail
Return the full recorded payload for a request id.
| Parameter | Type | Description |
|---|---|---|
request_id * | string | |
browser_id | string | |
tab_id | string |
network_get_response_body
Fetch the response body for a request id (network events must be enabled).
| Parameter | Type | Description |
|---|---|---|
request_id * | string | |
browser_id | string | |
tab_id | string |
network_intercept_enable
Enable request interception. hold=True pauses requests until you continue/fail/fulfill them.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
hold | boolean | |
tab_id | string |
network_intercept_disable
Disable request interception and release paused requests.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
route_add
Add a network rule. action=fulfill|block|redirect|continue. pattern is a glob (``**/api/users``) or regex. Fulfill returns `status`/`body`.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | |
action | string | |
body | string | |
browser_id | string | |
content_type | string | |
headers | ||
redirect_url | string | |
status | integer | |
tab_id | string |
route_list
List active network rules for a tab.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
route_remove
Remove network rules matching a pattern (or all when pattern is empty).
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
pattern | string | |
tab_id | string |
request_continue
Continue a paused request, optionally rewriting URL/method/headers/body.
| Parameter | Type | Description |
|---|---|---|
request_id * | string | |
browser_id | string | |
headers | ||
method | string | |
post_data | string | |
tab_id | string | |
url | string |
request_fail
Fail a paused request with an error reason.
| Parameter | Type | Description |
|---|---|---|
request_id * | string | |
browser_id | string | |
reason | string | |
tab_id | string |
request_fulfill
Fulfill a paused request with a synthetic response.
| Parameter | Type | Description |
|---|---|---|
request_id * | string | |
body | string | |
browser_id | string | |
content_type | string | |
status | integer | |
tab_id | string |
network_pending_list
List requests currently paused by interception (hold mode).
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
network_emulate
Emulate network conditions: offline, added latency and throughput throttling. Use -1 for throughput to leave it unthrottled.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
download_kbps | integer | |
latency_ms | integer | |
offline | boolean | |
tab_id | string | |
upload_kbps | integer |
cookie_get
Read cookies for the current page (optionally filter by name substring).
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
selector | string | |
tab_id | string |
cookie_set
Set cookies for the current page. Each item needs name/value and domain or url.
| Parameter | Type | Description |
|---|---|---|
cookies * | array | |
browser_id | string | |
tab_id | string |
cookie_delete_all
Delete all cookies in the tab's browser context.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
localstorage_get
Get one localStorage value, or all values when key is empty.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
key | string | |
tab_id | string |
localstorage_list
List all localStorage key/value pairs.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
localstorage_set
Set a localStorage item.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
value * | string | |
browser_id | string | |
tab_id | string |
localstorage_delete
Delete a localStorage item.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
browser_id | string | |
tab_id | string |
localstorage_clear
Clear all localStorage for the current origin.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
sessionstorage_get
Get one sessionStorage value, or all values when key is empty.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
key | string | |
tab_id | string |
sessionstorage_list
List all sessionStorage key/value pairs.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
sessionstorage_set
Set a sessionStorage item.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
value * | string | |
browser_id | string | |
tab_id | string |
sessionstorage_clear
Clear all sessionStorage for the current origin.
| Parameter | Type | Description |
|---|---|---|
browser_id | string | |
tab_id | string |
pydoll_modules
Report the active tool profile and enabled modules.
server_info
Return server version, settings summary and running browsers.
batch
Run several tool calls in one round-trip. Each item: {"tool": "find_element", "arguments": {...}}. Calls run in order; a failure is reported per item without aborting the batch.
| Parameter | Type | Description |
|---|---|---|
calls * | array |