list-windows
List all visible windows, marking Tauri apps.
No Bridge Required
This command works without a bridge. It detects Tauri apps by matching window PIDs against bridge token files.
Usage
Options
| Option | Description | Default |
|---|---|---|
--json |
Output as JSON | — |
--tauri |
Only show Tauri app windows | — |
Examples
List all windows
ID PID NAME SIZE TAURI
12345678 1234 My Tauri App 1920x1080 yes (port 9876)
87654321 5678 Firefox 1920x1080 no
11223344 9012 Terminal 800x600 no
Only Tauri windows
JSON output
[
{
"windowId": "12345678",
"pid": 1234,
"name": "My Tauri App",
"x": 0,
"y": 0,
"width": 1920,
"height": 1080,
"tauri": true,
"bridge": { "port": 9876, "token": "abc..." }
}
]
Notes
- Tauri detection works by cross-referencing window PIDs with bridge token files in
/tmp/ - The
bridgefield in JSON output includes the port and token for direct bridge access - Window listing uses platform-native tools (
xdotoolon X11,swaymsgon Wayland,osascripton macOS)