You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clients may include sessionId in initialize. When a client with a sessionId disconnects, the server parks browser state in a dormant store. Reconnecting with the same sessionId restores the session. Dormant sessions expire after dormantSessionTtl (default: 300s).
Error Responses
All errors follow JSON-RPC 2.0 error format with extended data:
{
"code": -32012,
"message": "Element not found",
"data": {
"retryable": true,
"retryAfterMs": 500,
"details": { "selector": { "type": "text", "value": "Submit" } },
"recoveryHint": "Run observe() to refresh interactive elements, then retry with an updated selector"
}
}
Create new page. Params: url, viewport, userAgent, contextId
page/navigate
Navigate to URL. Params: url, waitUntil, observe (fusion)
page/reload
Reload page
page/goBack
Navigate back
page/goForward
Navigate forward
page/close
Close page
page/list
List all pages
page/activate
Activate page (bring to front)
Actions (13)
Method
Description
action/click
Click element
action/dblclick
Double-click element
action/type
Type text character by character
action/fill
Fill input (clears first)
action/clear
Clear input
action/press
Press keyboard key
action/hover
Hover over element
action/scroll
Scroll page or element
action/select
Select dropdown option
action/check
Check checkbox
action/uncheck
Uncheck checkbox
action/upload
Upload file
action/drag
Drag element
Observations (7)
Method
Description
observe/screenshot
Take screenshot (JPEG default, PNG optional)
observe/accessibility
Get accessibility tree
observe/dom
Get page HTML (sensitive content redacted)
observe/element
Get element properties
observe/pdf
Generate PDF
observe/content
Get page text/HTML/markdown
observe/ariaSnapshot
Get ARIA snapshot (YAML)
Storage (5)
Method
Description
storage/getState
Get cookies + localStorage
storage/setState
Set cookies + localStorage
storage/getCookies
Get cookies
storage/setCookies
Set cookies
storage/clearCookies
Clear cookies
Emulation (4)
Method
Description
emulate/setViewport
Set viewport size
emulate/setUserAgent
Set user agent
emulate/setGeolocation
Set geolocation
emulate/setOffline
Toggle offline mode
Dialog, Tracing, Events (4)
Method
Description
dialog/handle
Accept/dismiss dialog
trace/start
Start Playwright trace
trace/stop
Stop trace, return data
events/subscribe
Subscribe to event types
Context (3)
Method
Description
context/create
Create browser context
context/list
List contexts
context/destroy
Destroy context
Frame (3)
Method
Description
frame/list
List frames
frame/switch
Switch to frame
frame/main
Switch to main frame
Stream + Approval (2)
Method
Description
stream/cancel
Cancel streaming response
approval/respond
Respond to approval request
Discovery (1)
Method
Description
discovery/discover
Discover WebMCP tools on page
Agent (3)
Method
Description
agent/act
Execute action sequence with retry, conditions, fusion
agent/observe
Get interactive elements with stable refs, annotation, fusion
agent/extract
Extract structured data from page
Observe Response Fields
alternativeSelectors (v0.7.0)
Each InteractiveElement in agent/observe results includes an optional alternativeSelectors array — multiple selector options ordered by reliability (most reliable first):