take_snapshot
Capture a textual page snapshot with stable element UIDs for reliable browser automation. Use the generated UIDs to interact with page elements consistently across navigation and DOM changes.
Instructions
Capture a textual page snapshot with stable UIDs for elements. Always take a fresh snapshot after navigation or major DOM changes. TIP: Use the UIDs with click_by_uid / fill_by_uid / hover_by_uid. The output may be truncated for readability.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
includeAttributes | No | Include detailed ARIA and computed attributes in output (default: false) | |
includeText | No | Include text content in output (default: true) | |
maxDepth | No | Maximum depth of tree to include (default: unlimited) | |
maxLines | No | Maximum number of lines to return in output (default: 100) |
Input Schema (JSON Schema)
{
"properties": {
"includeAttributes": {
"description": "Include detailed ARIA and computed attributes in output (default: false)",
"type": "boolean"
},
"includeText": {
"description": "Include text content in output (default: true)",
"type": "boolean"
},
"maxDepth": {
"description": "Maximum depth of tree to include (default: unlimited)",
"type": "number"
},
"maxLines": {
"description": "Maximum number of lines to return in output (default: 100)",
"type": "number"
}
},
"type": "object"
}