opendevbrowser_get_attr
Tool reference for opendevbrowser_get_attr.
Overview
Tool reference for opendevbrowser_get_attr.
How to run
- Start a session and navigate to the target page.
- Capture a snapshot and pick the element
ref. - Read the attribute with either tool or CLI command.
Runtime mapping
- Tool id: opendevbrowser_get_attr
- Source: src/tools/index.ts
- CLI command:
dom-attr
Common attributes
| Attribute | Why it is useful |
|---|---|
href |
Verify destination URLs before clicking. |
aria-label |
Confirm accessibility labels and screen-reader semantics. |
aria-invalid |
Validate form error state after submit. |
data-* |
Inspect app-specific state markers. |
Tool example
opendevbrowser_get_attr sessionId="<session-id>" ref="r12" name="aria-label"
CLI example
npx opendevbrowser launch --no-extension
npx opendevbrowser goto --session-id <session-id> --url https://example.com/form
npx opendevbrowser snapshot --session-id <session-id>
npx opendevbrowser dom-attr --session-id <session-id> --ref r12 --attr aria-invalid
command example
npx opendevbrowser dom-attr --session-id <session-id> --ref r12 --attr aria-label