attr
Retrieves a specified HTML attribute value from a targeted element.
Instructions
Get an HTML attribute value from an element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Attribute name (href, class, etc.). | |
| lease | No | Optional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env. | |
| target | Yes | @eN / @text: / @label: / CSS. | |
| session | No | Optional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'. |