You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Agents drive native apps by clicking screenshot coordinates only. There is no tool to list windows or move focus: desktop_type and desktop_key go to whatever window is focused, waitWindow matches a title substring, and a newly launched client can steal focus (packages/mcp-server/src/tools/desktop.ts launch gating comment). listWindows in packages/desktop-linux/src/apps.ts already wraps xdotool search.
desktop_windows (MCP) and desktop windows (CLI): id, name, class, geometry and whether the window is focused, using existing listWindows plus xdotool getactivewindow and getwindowgeometry
desktop_focus / desktop focus: activate a window by id or exact name, gated by the agent permit like other input, recorded in the evidence journal as an interaction with the window identity as target
Bounded wait after activation until the window is reported focused; error record on timeout
Tests with a fake xdotool and one live Xvfb test using two zenity windows
Implementation, local checks and independent review are complete. #172 awaits required PR CI before merge. Actual two-zenity managed-Xvfb focus passed locally; full native-app acceptance remains #156.
Implementation started from the merged #150 foundation. Scope is window inventory, explicit focus selection, bounded focus confirmation, existing agent-permit gating and recorded interactions, with fake-command and real two-zenity-window coverage. Existing managed Xvfb sessions have no window manager, so implementation will verify that behavior rather than assume EWMH activation works. No host-desktop use, Wayland implementation or release publication. Separate review and required PR CI precede merge.
Activity
ElbertePlinio commentedon Sep 15, 2026
Implementation started from the merged #150 foundation. Scope is window inventory, explicit focus selection, bounded focus confirmation, existing agent-permit gating and recorded interactions, with fake-command and real two-zenity-window coverage. Existing managed Xvfb sessions have no window manager, so implementation will verify that behavior rather than assume EWMH activation works. No host-desktop use, Wayland implementation or release publication. Separate review and required PR CI precede merge.
feat(desktop): add window inventory and focus tools (#172)