Skip to content

Sessions and pages tools

browser_runtime_info

Returns versions, Chromium launch state, effective safe configuration, resource limits, and active/failed session counts. It takes no input and does not launch Chromium.

browser_session_create

Creates an isolated context and deterministic initial page.

InputTypeRequired
namesafe non-empty stringno
metadatastring mapno
stateIdstring, 1–128 charsno
contextSettingsobjectno

Context settings support viewport {width,height} (integers 1–10,000), deviceScaleFactor (0.1–10), locale, timezoneId, colorScheme, reducedMotion, userAgent, geolocation, and a maximum of 100 explicit geolocation permission origins.

json
{
  "name": "admin-dark",
  "metadata": { "role": "admin" },
  "contextSettings": {
    "viewport": { "width": 1440, "height": 900 },
    "colorScheme": "dark",
    "geolocation": { "latitude": 41.3111, "longitude": 69.2797 },
    "permissions": [{ "permission": "geolocation", "origin": "https://example.test" }]
  }
}

Returns { operationId, session, initialPage: { sessionId, pageId } }.

Session lookup and close

ToolInputOutput
browser_session_listnone{ operationId, sessions }
browser_session_getsessionId{ operationId, sessionId, session }
browser_session_closesessionIdterminal session view

Close is idempotent. Closing releases every page and the isolated context.

Page lifecycle

ToolInputOutput
browser_page_createsessionIdnew managed page
browser_page_listsessionIdpages in that session only
browser_page_closesessionId, pageIdclosed: true

Use another page when tabs should share cookies and storage. Use another session when identity must be isolated.

Released under the Apache License 2.0.