get_document_state
Retrieve current Chrome page state including URL, title, readyState, selection, and scroll position using Chrome DevTools Protocol for efficient page orientation.
Instructions
Return current Chrome page state via CDP: url, title, readyState, selection, and scroll position. Far cheaper than browser_get_dom for page orientation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | CDP port (default 9222). | |
| tabId | No | CDP tab id (omit for first page). |