-
-
Notifications
You must be signed in to change notification settings - Fork 6
Features Location
Tuck edited this page Jun 28, 2026
·
1 revision
Get the user's geographic location (via GeoClue) and interact with the desktop UI accessibility tree — inspect elements, click, and set text.
Get the current geographic location. Requires GeoClue D-Bus service.
deskbrid location.get{"type": "location.get"}Response:
{
"type": "response",
"status": "ok",
"data": {
"latitude": 37.7749,
"longitude": -122.4194,
"accuracy": 100.0,
"timestamp": 1705312800
}
}Get the accessibility tree from the currently focused window or application.
deskbrid ui.tree.get{"type": "ui.tree.get"}Response includes a tree structure with node roles, names, states, and positions.
Click a UI element identified by a CSS-like selector in the accessibility tree.
| Parameter | Type | Description |
|---|---|---|
selector |
string | Element selector (e.g., button#submit, textfield) |
tab_index |
uint? | Tab index within the window (for multi-tab apps) |
deskbrid ui.element.click '{"selector": "button#submit"}'{"type": "ui.element.click", "selector": "button#submit"}Set the text content of a UI element (e.g., a text field).
| Parameter | Type | Description |
|---|---|---|
selector |
string | Element selector (e.g., textfield#username) |
text |
string | Text to set |
tab_index |
uint? | Tab index within the window |
deskbrid ui.element.set_text '{"selector": "textfield#username", "text": "admin"}'{
"type": "ui.element.set_text",
"selector": "textfield#username",
"text": "admin"
}from deskbrid import Deskbrid
client = Deskbrid()
# Get location
loc = client.location_get()
print(f"Location: {loc['latitude']}, {loc['longitude']}")
# Get UI tree
tree = client.ui_tree_get()
print(tree)
# Click an element
client.ui_element_click(selector="button#submit")
# Fill a text field
client.ui_element_set_text(selector="textfield#username", text="admin")-
Location: Requires GeoClue D-Bus service (
org.freedesktop.GeoClue2) - UI Tree: Requires AT-SPI2 accessibility bus
Stable — location and UI tree interaction supported.
- 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