pilot_page_attrs
Get all HTML attributes of a page element as a JSON object. Use to inspect data-, aria-, class, id, href, src, and other attributes, or debug attribute-related issues.
Instructions
Get all HTML attributes of a specific element as a JSON object. Use when the user wants to inspect an element's attributes (data-, aria-, class, id, href, src, etc.), check custom data attributes, or debug attribute-related issues.
Parameters:
ref: Element reference from snapshot (e.g., "@e3") or CSS selector
Returns: JSON object mapping attribute names to their values.
Errors:
"Element not found": The ref is stale. Run pilot_snapshot to get fresh refs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref or CSS selector |