browserlane
MCP reference

Browser state & emulation

Browser state & emulation — MCP tools exposed to agents.

16 tools in this group.

browser_delete_cookies

Delete cookies. If name is given, deletes that cookie. Otherwise deletes all cookies.

ParameterTypeRequiredDefaultDescription
namestringnoCookie name to delete (optional, omit to delete all)

browser_dialog_accept

Accept a dialog (alert, confirm, prompt). Optionally provide text for prompt dialogs.

ParameterTypeRequiredDefaultDescription
textstringnoText to enter in the prompt dialog (optional)

browser_dialog_dismiss

Dismiss a dialog (cancel/close)

No parameters.

browser_diff_map

Compare current page state vs last map. Shows additions (+) and removals (-) since the last browser_map call.

No parameters.

browser_download_set_dir

Set the download directory for the browser

ParameterTypeRequiredDefaultDescription
pathstringyesDirectory path for downloads

browser_emulate_media

Override CSS media features (color scheme, reduced motion, etc.)

ParameterTypeRequiredDefaultDescription
colorSchemestringnoColor scheme: "light", "dark", or "no-preference" (one of: light, dark, no-preference)
contraststringnoContrast preference: "more", "less", or "no-preference" (one of: more, less, no-preference)
forcedColorsstringnoForced colors: "active" or "none" (one of: active, none)
mediastringnoMedia type: "screen" or "print" (one of: screen, print)
reducedMotionstringnoReduced motion: "reduce" or "no-preference" (one of: reduce, no-preference)

browser_get_cookies

List all cookies for the current page

No parameters.

browser_get_viewport

Get the current viewport dimensions

No parameters.

browser_get_window

Get the OS browser window dimensions and state

No parameters.

browser_restore_storage

Restore cookies and storage from a JSON state file

ParameterTypeRequiredDefaultDescription
pathstringyesPath to the JSON state file

browser_set_content

Replace the page HTML content

ParameterTypeRequiredDefaultDescription
htmlstringyesHTML content to set

Set a cookie

ParameterTypeRequiredDefaultDescription
domainstringnoCookie domain (optional, defaults to current page domain)
namestringyesCookie name
pathstringnoCookie path (optional, defaults to /)
valuestringyesCookie value

browser_set_geolocation

Override the browser geolocation

ParameterTypeRequiredDefaultDescription
accuracynumberno1Accuracy in meters (default: 1)
latitudenumberyesLatitude (-90 to 90)
longitudenumberyesLongitude (-180 to 180)

browser_set_viewport

Set the browser viewport size

ParameterTypeRequiredDefaultDescription
devicePixelRationumbernoDevice pixel ratio (optional, e.g., 2 for Retina)
heightnumberyesViewport height in pixels
widthnumberyesViewport width in pixels

browser_set_window

Set the OS browser window size, position, or state

ParameterTypeRequiredDefaultDescription
heightnumbernoWindow height in pixels
statestringnoWindow state: normal, maximized, minimized, or fullscreen (one of: normal, maximized, minimized, fullscreen)
widthnumbernoWindow width in pixels
xnumbernoWindow x position in pixels
ynumbernoWindow y position in pixels

browser_storage_state

Export cookies, localStorage, and sessionStorage as JSON

No parameters.

On this page