Endpoint
e1, e2, etc.) that can be used for clicking and typing.
Authentication
No authentication required. All endpoints useuserId for session isolation.
Path parameters
The unique identifier of the tab
Query parameters
User identifier for session isolation
Whether to include a base64-encoded PNG screenshot in the response
Character offset for pagination. Use
nextOffset from previous response to fetch next chunk.Response format (currently only
text is supported)Response
The current URL of the tab
Accessibility tree snapshot with element references in YAML-like format. Interactive elements are annotated with refs like
[e1], [e2].Total number of interactive element references available
Whether the snapshot was truncated due to size limits
Total character count of the full snapshot (before truncation)
Whether more content is available beyond the current chunk
Character offset to use for fetching the next chunk (only present if
hasMore is true)Screenshot data (only present if
includeScreenshot=true)Pagination
Large pages are automatically truncated to prevent token overflow. The snapshot is limited to 80,000 characters (~20K tokens), with the last 5,000 characters preserved for pagination/navigation links.- First request:
offset=0returns the head of the snapshot plus tail (pagination links) - Subsequent requests: Use
nextOffsetvalue from the previous response - The tail (last 5K chars) is appended to every chunk so navigation refs remain accessible
Element references
Interactive elements (buttons, links, textboxes, checkboxes, etc.) are annotated with refs:/click and /type endpoints. Refs reset after navigation - always call /snapshot after navigating to get fresh refs.
Error codes
400- Missing required parameter (userId)404- Tab not found500- Internal server error
Examples
Basic snapshot
Snapshot with screenshot
Paginated snapshot
Caching behavior
Foroffset > 0 requests, the server uses a cached snapshot from the last offset=0 call. This ensures consistent pagination without rebuilding the accessibility tree. The cache is invalidated after navigation or interaction.
Excluded elements
The following elements are excluded from snapshots to avoid interference:- Comboboxes (date pickers, complex dropdowns)
- Elements matching patterns:
date,calendar,picker,datepicker