page-tree
Captures the rendered layout of a webpage as a spatial tree of elements, with positions, sizes, grid layouts, backgrounds, and overlay occlusion, via the web CLI. Returns indented text, a JSON tree, and a map from node IDs to CSS selectors. Use before page decomposition, overlay detection, or brand extraction, or when the user asks for a page's visual hierarchy or layout.
- License
- Apache-2.0
- Compatibility
- Requires Node 22+ and playwright-cli on PATH; uses the web CLI (plugins/web/cli)
Pinned to revision ae83a5beb6a7, so it is the text this page describes rather than whatever the author pushed since.
Files
Every link opens the file at its source, pinned to the revision this page describes.