name: accessibility-tree description: Interpret an accessibility tree to identify roles, names, states, and actionable UI targets. metadata: source: skills/10-computer-use/accessibility-tree.md category: 10-computer-use version: "v1"
Category: Computer Use
Skill Level: advanced
Stability: stable
Description
Interpret an accessibility tree to identify roles, names, states, and actionable UI targets.
When to Use
Use when an accessibility tree is available and UI interaction should rely on semantic targets rather than coordinates.
Inputs / Outputs / Failure Modes
| Area | Contract |
|---|---|
| Inputs | Verified UI state, target identity, action parameters, authorization, and expected postcondition. |
| Outputs | Performed action plus verified resulting UI state or an explicit failure. |
| Failure modes | Stale UI, wrong focus/target, coordinate drift, permission failure, or unexpected side effects. |
Procedure
- Establish the active application, target, and expected UI state.
- Verify the target before interaction; prefer semantic accessibility identifiers when available.
- Perform only the requested action within the declared bounds.
- Inspect the resulting UI state and verify the expected postcondition.
- Stop and report ambiguity rather than guessing when the UI differs from the expected state.
Runnable Example
action = {"capability": "accessibility-tree", "target_verified": True}
assert action["target_verified"]
result = {"status": "postcondition_required", "capability": action["capability"]}
print(result)
Failure Modes
- Target or application identity cannot be verified.
- UI changed between observation and action.
- Focus is ambiguous or lost.
- Action may have destructive or irreversible side effects.
- Postcondition cannot be verified.
Safety Boundary
Accessibility trees can be stale or incomplete; verify the target state before acting.
Evidence
Canonical repository skill: this file. Structural conformance is defined by the repository schema, validation workflows, Agent Skills contract, and security gates. Computer-use actions require target verification and postcondition checks.
Related
- ../14-security/input-guardrails.md
- ../14-security/output-guardrails.md