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
string
required
The
tabId returned when creating the tab via POST /tabs.Query parameters
string
required
User identifier. Must match the user who owns the tab.
Response
string
UUID identifier for the tab.
string
Session key (task/conversation group) this tab belongs to.
string
Deprecated. Same as
sessionKey. Included for backward compatibility.string
Current URL of the tab.
array
Array of all URLs visited in this tab (chronological order). Includes URLs from navigation, clicks, and redirects.
number
Number of API operations performed on this tab. Includes navigate, click, type, scroll, snapshot, and other actions.
number
Number of interactive element references currently available on the page. Refs are generated by
/snapshot and reset on navigation.Example
Error responses
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