Skip to main content
Accessible snapshot of the page as an indented tree. Interactive elements get refs like [ref=e12] for click/fill/select/read/wait and the devtools_elements tool. Refs stay valid until the DOM changes; re-snapshot after navigation. diff:true returns only lines that changed since the previous snapshot of this tab.
The tool names stay the same across browsers. See browser selection and Firefox and Zen exceptions before choosing an operation.

Parameters

integer
Target tab id from browser_tabs, which lists tabs across all windows. Defaults to the agent’s most recently opened usable tab, or the only usable tab. Otherwise select a listed tabId.
boolean
 

Example

Only what changed since the last snapshot