GET /tabs/:id/stats
Returns detailed statistics about a tab’s activity, including tool call count, visited URLs, and session information.Authentication
RequiresuserId as a query parameter. Returns 404 if the tab doesn’t exist or belongs to a different user.
Request
Path parameters
The
tabId returned when creating the tab via POST /tabs.Query parameters
User identifier. Must match the user who owns the tab.
Response
UUID identifier for the tab.
Session key (task/conversation group) this tab belongs to.
Deprecated. Same as
sessionKey. Included for backward compatibility.Current URL of the tab.
Array of all URLs visited in this tab (chronological order). Includes URLs from navigation, clicks, and redirects.
Number of API operations performed on this tab. Includes navigate, click, type, scroll, snapshot, and other actions.
Number of interactive element references currently available on the page. Refs are generated by
/snapshot and reset on navigation.Example
Error responses
| Status | Error | Cause |
|---|---|---|
| 400 | userId required | Missing userId query parameter |
| 404 | Tab not found | Tab doesn’t exist, was closed, or belongs to different user |
| 500 | Internal server error | Tab state retrieval failure |
Notes
- Tool calls increment on every API operation: navigate, snapshot, click, type, scroll, back, forward, refresh, links, and press
- Visited URLs are tracked in a Set (duplicates removed) and returned as an array
refsCountreflects the number of interactive elements (buttons, links, inputs) on the current page- Refs reset to 0 after navigation until the next
/snapshotcall - Tab not found errors occur if:
- The tab was explicitly closed via
DELETE /tabs/:id - The tab’s session expired (30 minutes of inactivity)
- The
userIddoesn’t match the tab owner
- The tab was explicitly closed via