-
-
Notifications
You must be signed in to change notification settings - Fork 6
Features Accessibility
coe0718 edited this page May 23, 2026
·
3 revisions
Inspect accessibility trees via AT-SPI.
deskbrid a11y tree
deskbrid a11y tree --app code
deskbrid a11y tree --window 12345678Response:
{
"type": "response",
"status": "ok",
"data": {
"role": "application",
"name": "Visual Studio Code",
"description": "",
"state": ["enabled", "focusable"],
"children": [
{
"role": "window",
"name": "main.rs - project",
"children": [
{
"role": "button",
"name": "Close",
"state": ["enabled", "focusable"]
}
]
}
]
}
}Protocol:
{"action": "a11y.tree", "app": "code"}deskbrid a11y find --role button --name "Close" --app codeProtocol:
{
"action": "a11y.find",
"role": "button",
"name": "Close",
"app": "code"
}deskbrid a11y action --app code --path "/window[0]/button[0]" --action click
deskbrid a11y action --app code --path "/window[0]/button[0]" --action focusProtocol:
{
"action": "a11y.action",
"path": "/window[0]/button[0]",
"action_name": "click",
"app": "code"
}deskbrid a11y value --app code --path "/window[0]/text[0]"Protocol:
{
"action": "a11y.get_value",
"path": "/window[0]/text[0]",
"app": "code"
}from deskbrid import Deskbrid
client = Deskbrid()
# Get accessibility tree for VS Code
tree = client.a11y_tree(app="code")
# Find close button
close_button = client.a11y_find(
role="push button",
name="Close",
app="code"
)
# Click it
client.a11y_action(path=close_button["path"], action_name="click")Common roles:
-
application- Application root -
window- Window -
dialog- Dialog box -
button- Push button -
checkbox- Checkbox -
text- Text field -
menu- Menu -
menuitem- Menu item -
table- Table -
cell- Table cell
Common states:
-
enabled- Element is enabled -
disabled- Element is disabled -
focused- Element has focus -
focusable- Element can receive focus -
visible- Element is visible -
hidden- Element is hidden -
checked- Checkbox/radio is checked -
selected- Item is selected
- Accessibility
- Apps
- Audio
- Backlight (LED driver)
- Bluetooth
- Clipboard
- Color Picker
- Desktop Portal
- Desktop Settings
- Files
- Hotkeys
- Input
- Keyboard Layouts
- Media (MPRIS)
- Monitors
- Network
- Notifications
- Print (CUPS)
- Screenshots
- Screen Recording
- Screencast
- Self-Update
- System
- System Tray
- Systemd Units & Timers
- Terminals (PTY)
- Windows & Workspaces