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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ref": "<ref>"
},
"name": "pilot_page_attrs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref or CSS selector |