take_snapshot
Capture a stable DOM snapshot of the current page, with options to limit depth, include attributes or text, and scope to a specific CSS selector. Use after navigation to get updated snapshots.
Instructions
Capture DOM snapshot with stable UIDs. Retake after navigation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxLines | No | Max lines (default: 100) | |
| includeAttributes | No | Include ARIA attributes (default: false) | |
| includeText | No | Include text (default: true) | |
| maxDepth | No | Max tree depth | |
| includeAll | No | Include all visible elements without relevance filtering. Useful for Vue/Livewire apps (default: false) | |
| selector | No | CSS selector to scope snapshot to specific element (e.g., "#app") |