attr
Retrieve an element's attribute value by CSS selector or snapshot ref, enabling browser automation agents to inspect page state and target specific UI properties.
Instructions
Attribute value of an element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ref from snapshot, e.g. e3 | |
| tab | No | tab id, defaults to current | |
| name | Yes | ||
| selector | No | CSS selector | |
| request_timeout | No | Outer page request deadline in milliseconds; defaults to at least 30000 |