deskwright
Deskwright is an MCP server that lets an AI agent observe and control a GNOME Wayland desktop—inspecting windows and accessibility trees, clicking, typing, launching apps, capturing screenshots/video, and verifying state.
Window control — list windows with ids/geometry/focus, activate, move, resize, close, minimize/maximize, pin, and move across workspaces.
App launching — start apps by desktop id or argv and confirm their window appears.
Accessibility (AT-SPI) — list apps, inspect UI trees, find widgets by text/role, read text, set text, and invoke widget actions reliably without coordinates.
Pointer input — move, click (with occlusion checks), drag, scroll, and inspect what is under a point or where the pointer is.
Keyboard/text input — type into a confirmed focused window, send key combos, hold keys, and verify typed text.
OCR — locate visible text on screen via
find_text, useful for Chrome, Electron, and Qt apps.Screenshots/visual inspection — capture the screen, a window, or a region; zoom at full resolution; get annotated screen maps with clickable widget refs.
Screen recording — record to mp4 and convert videos into tiled frame contact sheets with change/stutter detection.
Waiting and assertions — wait for windows, widgets, text, focus changes, clipboard changes, or pixel changes; assert final desktop state with evidence.
Batched actions — run validated multi-step sequences in one call with retries and a single result picture.
Clipboard — read/write text or file bytes and verify the write.
Diagnostics/audit — check
desktop_healthand review the journal of state-changing actions.Headless desktops — per the README, run a separate virtual GNOME session so the agent does not take over your physical desktop.
Provides computer-use capabilities for a GNOME desktop environment, enabling AI agents to launch applications, read UI widgets, click, type, drag, manage windows, take screenshots, OCR text, and record the screen.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@deskwright Take a screenshot and read me what's on the screen"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Deskwright
Computer use for AI agents on GNOME Wayland.
Let your coding agent use your Linux desktop. Or give it one of its own, so it stops stealing your mouse.
Install • What it can do • A desktop of its own • When something's off • Security
Claude Code can edit your files and run your commands. It can't open GIMP, click a button in a settings dialog, or read what a native app is showing you. On macOS and Windows it can, through computer use. On Linux that's still on Anthropic's list.
This fills the gap on GNOME. It's an MCP server plus a small shell extension, and it hands an agent the actual desktop: launching apps, reading widgets, clicking, typing, dragging, window management, OCR and screen recording. Any MCP client can drive it. Claude Code, Codex, Cursor, your own script.
The part people tend to like most: DESKWRIGHT_SESSION=headless runs all of
it on a virtual monitor that isn't on any of your screens. Your agent gets a real GNOME
desktop to work on, and it never takes your focus.
Linux hybrid beta: 0.2.0b1
The beta adds guarded native controls, exact multi-control queries, adaptive visual fallback and shorter verified execution batches. It supports GNOME Wayland; Windows is not implemented. See the interaction guide and measurements and limits.
For a new installation:
pipx install --system-site-packages 'deskwright==0.2.0b1'
deskwright-setupFor an existing pipx installation, pipx upgrade --pip-args='--pre' deskwright
keeps its existing system-site-packages setting. Run deskwright-setup to copy
the updated extension, then log out and back in if setup reports a changed
extension. Restart the MCP connection to load the updated Python tools.
A connection restart alone cannot reload GNOME Shell's extension.
Related MCP server: kwin-mcp
Why this exists
Wayland deliberately stops an application from seeing or touching any other
window. That's a good rule, and it's why xdotool, wmctrl and grim either
do nothing on GNOME or fail in ways that look like your own mistake. Every
Linux computer-use project I found either shipped a Docker container running
X11, or quietly assumed X11 and broke.
So I went looking for what GNOME actually permits, and it turns out to be quite a lot, just not where anyone looks. Mutter answers D-Bus. AT-SPI, the accessibility layer built for screen readers, exposes every real widget in every running app with its name, its role and the action it performs. And a shell extension runs inside gnome-shell itself, where the rest lives.
That middle one matters more than it sounds. Pressing a widget's own accessibility action isn't a nicer way to click. It's a different thing: it can't miss, it survives the window moving, and it needs no pointer at all. An agent working this way stops guessing at coordinates, and stops taking a screenshot after every action to find out what happened.
Install
You need GNOME Shell on Wayland. Check with echo $XDG_CURRENT_DESKTOP $XDG_SESSION_TYPE, which should mention GNOME and wayland.
The lazy way: hand it to your agent
Open Claude Code, or Codex, or whatever you use, and say:
Set up https://github.com/tristanmuzzu/deskwright on this machine, follow the AGENTS.md.
AGENTS.md is a runbook written for agents. Every command, how to
check each one worked, the right package names for Debian, Fedora and Arch, and
the handful of things that go wrong with their fixes. Your agent will ask you
for a sudo password once and tell you to log out once. That's your whole
involvement.
By hand: two commands and a logout
pipx install --system-site-packages deskwright
deskwright-setupdeskwright-setup narrates every step. It turns on the accessibility flag, installs
the bundled shell extension, and tells you about any missing system package
with the right install line for your distro, so you're never guessing at
package names. It never runs sudo itself.
Then log out and log back in. Once. There's no way around this one: on Wayland, gnome-shell only picks up an extension at session start.
Last step, point your client at it:
claude mcp add deskwright --scope user -- deskwrightThat's it. Ask your agent to open an app and it will.
PyGObject publishes no wheels to PyPI. It's a distro package everywhere
(python3-gi, python3-gobject, python-gobject), so an isolated venv can't
import it. Leave the flag off and you get a server that starts cleanly and then
dies on the first click with input_backend_failed.
uvx has no equivalent flag, which is the only reason this says pipx. If you'd
rather skip pipx, a plain python3 -m venv --system-site-packages followed by
pip install deskwright works identically.
The repo is also a plugin marketplace. It registers the server plus a skill that teaches an agent which tool to reach for first.
claude plugin marketplace add tristanmuzzu/deskwright
claude plugin install deskwright@deskwrightThe plugin runs the server from its own checkout, so there's no pip install. You still need the system packages and the extension, so run the setup out of the checkout Claude Code cloned for you, once:
~/.claude/plugins/marketplaces/deskwright/bin/deskwright-setupThen log out and back in, same as above.
git clone https://github.com/tristanmuzzu/deskwright
cd deskwright
bin/deskwright-setup
./mcp_server.py --self-test./mcp_server.py is the same entry point as the deskwright
command, by the path older registrations already point at.
CONTRIBUTING.md has the layout and which test suites need
a real session.
Check it works
DESKWRIGHT_SESSION=headless deskwright --self-testYou want 18/18 passed. It runs on a virtual monitor rather than your screen,
so it's safe to run while you're working. The first run takes about 20 seconds
because it has to start a second gnome-shell.
Drop DESKWRIGHT_SESSION=headless and it tests your real desktop instead. Do that one
while you're looking at the screen: the self-test injects real input, because
it's checking the guards that refuse dangerous key combinations.
When something's wrong, ask your agent to call desktop_health. It answers in
one line whether this desktop is usable, then says which mechanisms work right
now and what each of them will actually do.
What it can do
44 tools. Each returns enough that you do not need a second call to work out what happened. The order below is the order an agent should reach for them. Use native controls and exact queries where useful, with screenshots and ordinary input for visual work or incomplete accessibility.
Tool | What it's for |
| Find things. |
| Compatibility API for invoking a widget by index path. Requires |
| Bounded native references, guarded actions and exact completion checks. See semantic interaction. |
| Compatibility API for writing by index path, with exact readback. Prefer |
| Read a widget's contents. This is how you verify something worked. |
| Start an app by desktop id and wait for its window, inside one call. |
| Where everything is, in pixels: windows top of stack first, plus every pressable widget of the focused app with the point to click it at. Each carries a |
| Real pointer input in absolute screen coordinates. Pass |
| Draw a continuous curve through a list of screen points, with one button press, bounded duration and interruption checks. Requires a target window. |
| What a click at a point would hit, before you click it. And where the pointer is now, or an honest note that only the last position it set is known. |
| For a Chrome, Chromium or Electron page you launched with |
| Fill an open file chooser with a path and confirm it, or say that no chooser is open and list the dialogs that are. Never answers a 'replace file?' prompt. |
| Restart a private headless desktop at another resolution (say 1920x1080). Refused on your own desktop and while any window is open there. |
| Where a visible string is, in screen coordinates. OCR, about 0.3s for a window, and no image in your transcript. This is the answer for Chrome, Electron and Qt, which expose almost nothing to |
| Wait for a window, a widget, some text, a focus change or the clipboard, instead of sleeping a guessed number of seconds. |
| Wait for pixels to change. For what |
| Pass or fail with evidence, so a long run can decide for itself that it's finished. |
| A known sequence in one call, validated before anything runs, with per-step retry and one picture at the end, or at the step that broke. |
| Window list, focus and layout. |
| A picture, or a full-resolution crop of one window, region or widget. |
| For anything that moves, because a still can't show motion. |
| Keyboard input through compositor keysyms, with focus proven before anything gets typed. |
| Pasting beats two thousand keystrokes, and reading back is how you check it arrived. |
| The trail of everything the agent did: arguments, outcome, whether it landed, screenshot hashes. For reviewing an unattended run, or working out where you are after a context reset. |
| One line on whether this desktop is usable, then the detail. |
A second desktop it uses while you work
An agent that needs your screen is only half useful. deskwright-headless starts a
separate GNOME session on a virtual monitor, with its own session bus, its own
gnome-shell --headless and its own runtime directory. A server pinned to it
drives that desktop with the same 44 tools while you keep the physical one.
deskwright-headless start # about 200 MB of gnome-shell, idempotent
deskwright-headless status # liveness, memory, bus address
deskwright-headless stop # don't leave it idling on an 8 GB machineRegister it as a second MCP server and you can hand it long jobs:
claude mcp add deskwright-headless --scope user --env DESKWRIGHT_SESSION=headless -- deskwrightSessions are named, so two agents can each have a desktop of their own and never watch each other's windows move:
deskwright-headless start --name work
deskwright-headless list # every session, memory used, memory free
DESKWRIGHT_SESSION=headless:work deskwrightGive a session its own home and it boots a GNOME that has never been used: no desktop icons, no session restore, no recent files. That is what you want for a recorded demo or a clean-room test, where the default behaviour of sharing your home means an editor opens your last document.
deskwright-headless start --name demo --home /tmp/demo-homeThere are guards on this, because each session is a real compositor at around
205 MB: a per-name start lock so two agents can't both spawn one, a session cap
(DESKWRIGHT_HEADLESS_MAX, default 4), and a free-memory floor that refuses a start
which would push the machine into swap. The agent that would cause that can't
see it coming, so the server does.
When something's off
The extension says INACTIVE, or window tools don't work. You haven't logged out yet. gnome-shell can't load an extension without a session restart and there's no workaround. Until then you still get AT-SPI, pointer, keyboard and clipboard. You don't get window management, extension screenshots, pointer position or the halt switch.
An app shows no widgets in ui_tree. It was already running when
toolkit-accessibility got turned on. Apps read that setting at startup, so
restart the app.
Chrome, Electron or Qt apps look empty. As far as AT-SPI is concerned, they
are. Use find_text instead, which OCRs the screen and hands back coordinates.
For Chrome specifically, launching it with --force-renderer-accessibility
gets you a real tree at a small performance cost.
Everything fails with input_backend_failed. pipx without
--system-site-packages. Reinstall with the flag:
pipx install --force --system-site-packages deskwrightEvery ui_* call says "Namespace Atspi not available". You have
python3-gi but not the AT-SPI typelib, which is a separate package:
gir1.2-atspi-2.0 on Debian and Ubuntu, at-spi2-core on Fedora and Arch.
deskwright-setup --check catches this and names it.
A tool returns halted. Somebody pressed Super+Ctrl+Escape, which is the
halt switch. Press it again to clear it.
Your screen locked and half the tools stopped. Expected. GNOME unloads
extensions that don't declare unlock-dialog, so screenshots and window
geometry go away until you unlock. AT-SPI keeps working, so ui_find,
ui_press and ui_read_text all still do.
What it won't do
Deliberately out of scope as a project, not just off by default:
No CAPTCHA solving. CAPTCHAs exist to tell humans from software. This is software.
No credential typing features. Nothing here is built to harvest, store or autofill secrets. The journal doesn't record what gets typed, only how much.
No detection evasion. No timing jitter to look human, no fingerprint spoofing, no anti-anti-bot work.
No cloud, no telemetry, no account. It's a local process on your session bus, and nothing leaves the machine.
On the other side of that line the design is deliberately permissive. The agent is trusted, and the tooling's job is to make it capable rather than to fence it in. The whole safety budget goes to three things: a halt switch a human can always reach, guards against actions that can't be undone, and an honest record of what happened. SECURITY.md is blunt about what enabling this actually switches on, and it's worth reading before you point it at your real screen.
How it actually works
Wayland denies all of this to Wayland clients. It says nothing about D-Bus, and that's where the doors are. Four mechanisms, roughly in order of how much work they carry:
AT-SPI for anything semantic. Real widgets, real actions, no pointer.
A gnome-shell extension over D-Bus for what gnome-shell keeps to itself: window enumeration and control, screenshots, pointer position, and a keybinding grab for the halt switch.
org.gnome.Mutter.RemoteDesktopfor pointer and keyboard. Absolute coordinates, and keysyms rather than key positions, so your keyboard layout can't transpose what gets typed.xdg-desktop-portalfor the same thing, standardised. This is the route to compositors that aren't GNOME.
Worth knowing: number 2 is the only one of those that isn't already open. Mutter's ScreenCast and RemoteDesktop interfaces answer any client on your session bus with no consent dialog, which is why recording here needs no permission popup, and why the portal is a caller of them rather than a gate in front of them. SECURITY.md has the exact commands if you'd rather check that yourself than take my word for it.
docs/field-notes.md is the long version: every wall
hit on the way here, what the compositor refused, and the measurements that
shaped the tool surface. It's the file to read when something behaves oddly, or
before you change the code.
Requirements
deskwright-setup --check is the real answer. It detects everything, names the
package for your distro and exits nonzero if a hard requirement is missing.
The short version:
Platform | Status |
GNOME Shell 50 on Wayland | Verified. Developed on 50.1 (Ubuntu 26.04), live suites run against it on every change. |
GNOME Shell 48 to 49 | Should work. Same D-Bus and AT-SPI surfaces, not tested. Reports welcome, attach |
KDE Plasma, Sway, Hyprland | Input only. The portal backend drives pointer and keyboard, but window management and screenshots need per-compositor work that isn't done. |
X11 | Not a target. |
Claude Code, not Cowork. On Linux the desktop app runs Cowork tasks inside a QEMU/KVM virtual machine, so an MCP server it starts lives in that VM and cannot see your session bus, your gnome-shell or your screen. Everything here would fail there. Use it from the Claude Code CLI, the Code tab, or any other MCP client running on the host itself.
Claude Code, not Cowork. On Linux the desktop app runs Cowork tasks inside a QEMU/KVM virtual machine, so an MCP server it starts lives in that VM and cannot see your session bus, your gnome-shell or your screen. Everything here would fail there. Use it from the Claude Code CLI, the Code tab, or any other MCP client running on the host itself.
Packages, using Debian names (deskwright-setup prints yours): python3-gi,
gir1.2-atspi-2.0, python3-pil, libglib2.0-bin, wl-clipboard,
tesseract-ocr. ydotool is optional and only used as an input fallback. The
headless session additionally wants gnome-shell and dbus-daemon as
binaries, which any normal desktop already has.
Contributing, security, license
CONTRIBUTING.md has the layout, the test suites and what
each one needs. SECURITY.md is the threat model, stated
plainly. ROADMAP.md is what's next and why, in order.
Apache-2.0. If you get it running on a compositor that isn't GNOME, or on a GNOME older than 50, please open an issue and say so. That's the most useful thing anyone can send.
mcp-name: io.github.tristanmuzzu/deskwright
Available Tools
33 toolsactivate_windowA
Focus and raise a window, then confirm focus actually landed there. Returns an error rather than a false success.
Inputs: target (required), look, look_at, settle_max_s.
assert_stateARead-only
Prove the desktop is in a state, with evidence -- the honest way to END a task. Each assertion comes back passed/failed with what was actually observed; a false assertion is a result, not an error. Give any of: window_exists, window_focused, text_present, widget_exists, clipboard_contains.
Inputs: text_present, widget_exists, window_exists, window_focused, +1 more.
clipboard_readARead-only
What is on the clipboard. Text by default; types:true lists the offered mimetypes instead. An empty clipboard is a clean result, not an error, and a clipboard owner that never serves its offer is reported after a short deadline instead of hanging.
Inputs: types.
clipboard_writeA
Put text or a file's bytes on the clipboard, and PROVE it landed by reading it back. Goes through the gnome-shell extension so the compositor sets the clipboard itself -- mutter has a measured bug (S-018) where an external client's offer can serve wrong bytes to text requests, so wl-copy is only the fallback and says so when used.
Inputs: path, text, mimetype.
desktop_healthARead-only
Whether each mechanism is usable right now, and what each one will actually do: extension state and which methods the RUNNING shell has (an edited extension does not load until the next login), absolute pointer control, window and AT-SPI counts, keyboard layout, and the XTEST trap. Call this first when something behaves oddly.
Inputs: no named parameters.
do_stepsA
Run a short sequence of actions in ONE call and look once at the end. Every separate tool call costs a model round trip of several seconds while the action itself takes milliseconds, so a known sequence -- activate, click, type, press Return, see the result -- belongs here rather than in four calls. Steps run with their own look off; the picture is taken after the last one, or at the step that failed. Use single tools when the next action depends on what the last one revealed. The sequence is validated up front -- a call that cannot finish never starts.
Inputs: steps (required), look, look_at, settle_max_s, +1 more.
find_textARead-only
Where a visible piece of text is on screen, in coordinates you can click. Reads the pixels with OCR, so it works in Chrome, Electron and Qt apps, which expose almost nothing to ui_find. Try ui_find FIRST -- pressing a real widget cannot miss -- and come here when it returns nothing. About 1.5s for a window; cheaper and more exact than taking a picture and estimating. Blind to icon-only buttons: there is no text in them to read.
Inputs: text (required), psm, exact, limit, +3 more.
framesARead-only
Turn a video into ONE image you can actually look at: N frames, evenly spaced, stamped with frame number and timestamp, tiled into a contact sheet. This is the other half of screencast -- a model cannot decode an mp4, so a recording is useless until it becomes stills. Also measures per-frame change and reports duplicate frames, which detects a source repainting slower than the capture rate and catches stutter and frozen output that eyeballing misses. Use from_frame/to_frame to zoom into a fraction of a second once the overview shows where the interesting moment is. Works on any video, not just screencast output.
Inputs: path (required), cols, rows, outdir, +3 more.
hold_keyA
Hold ONE key down for a duration, then release it -- a real press and a separate release, not a tap. For shift-selection, held-key scrolling and games. Blocks for the whole duration; press_keys is the tool for combinations.
Inputs: key (required), seconds (required), look, target, +2 more.
journalARead-only
Read back the trail of acted tool calls -- every state-changing call is journaled with its arguments, outcome, hit/miss verdict and screenshot hash. Use it to reconstruct what already happened after context loss, or to review an unattended run. Reading tools are not in it.
Inputs: tail, session.
launch_appA
Start an application and confirm it actually arrived: the result carries the NEW window's dict (or, while the screen is locked, the new AT-SPI app) and names which mechanism confirmed. Every real task starts with an app that is not running yet; this is that step, inside the protocol instead of a shell command.
Inputs: file, command, timeout, desktop_id, +1 more.
list_windowsARead-only
Every open window with id, wm_class, title, geometry, pid and which one has focus. Start here: ids from this list are what type_text and press_keys target (ids change when a dialog is recreated -- a wm_class or title fragment does not). HOW TO DRIVE THIS DESKTOP, because the round trip is the expensive part and the actions are milliseconds: (1) ui_find then ui_press where the app has an accessibility tree -- it cannot miss; (2) find_text for Chrome, Electron and Qt, which expose almost nothing; (3) do_steps when you already know the next few actions, instead of one call each; (4) let the acting tool show you the result rather than following it with a screenshot -- they all do now. A screenshot of the whole screen is the last resort, not the first move.
Inputs: no named parameters.
pointer_clickA
Click at an absolute screen position. Reports whether it LANDED on anything -- the screen is compared before and after, so a click into dead space says so instead of looking exactly like one that worked -- and shows you the result without a separate screenshot. Also reports whether the keyboard moved as a result. PASS expect_window: the click is refused if something else is under that point, which is the difference between a missed click and a click in someone else's window. Needs no consent dialog, unlike xdotool.
Inputs: x, y, ref, look, +7 more.
pointer_dragA
Press at one point, travel, release at another. The travel is real intermediate motion, because a press-and-teleport is not a drag to most toolkits.
Inputs: to_x (required), to_y (required), from_x (required), from_y (required), +7 more.
pointer_moveA
Move the pointer to an absolute screen position. Exact: this goes to the compositor (org.gnome.Mutter.RemoteDesktop), not through ydotool, so there is no acceleration curve and no closed loop needed. Coordinates are the same ones list_windows and screen_map report.
Inputs: x (required), y (required), look, look_at, +2 more.
pointer_positionARead-only
Where the pointer is. Answers from the compositor when the extension supports it, otherwise from the last position this server set and says which. Never guesses from X, whose answer is stale whenever the pointer is over a Wayland surface.
Inputs: no named parameters.
pointer_scrollB
Wheel clicks at a point. dy positive scrolls down, dx positive scrolls right.
Inputs: x (required), y (required), dx, dy, +4 more.
press_keysA
Send a key combination to a named window, e.g. ctrl+s. Chain several with do_steps rather than one call each. Focus is confirmed first. Ctrl+Alt+F1-F12 is refused: it switches virtual terminal and looks exactly like a frozen machine.
Inputs: combo (required), target (required), via, look, +2 more.
region_changedARead-only
Wait until a window or rectangle CHANGES, then show it. For anything wait_for cannot express: a reply arriving, a spinner finishing, a download completing. Polls pixels here instead of making you take blind screenshots and look at each one, and returns as soon as it changes.
Inputs: look, region, window, timeout, +1 more.
screencastARead-only
Record the screen, or one window, to an h264 mp4. Use this instead of screenshot whenever the thing being judged MOVES -- an animation, a transition, a scroll, a stutter, a hover state. Stills cannot show motion and bursting them tops out near 5 fps. Goes under the xdg portal straight to org.gnome.Mutter.ScreenCast, so there is no share-your-screen consent dialog, and encodes on the iGPU. Read the result back by pulling frames out with ffmpeg.
Inputs: path (required), fps, target, seconds, +1 more.
screen_mapARead-only
Everything on screen with the coordinates to reach it: the desktop rectangle, every window top of the stack first with its centre point, where the pointer is, and every pressable widget of the focused application with the exact pixel to click it at. This is the one call that turns 'click the Save button' into a number without looking at an image. Every widget also carries a ref: N -- pass it straight to ui_press(ref) or pointer_click(ref); refs are valid until the next screen_map call, and the result's refs_generation says which call issued them.
Inputs: app, limit, widgets.
screenshotARead-only
Look at the screen, one window, or one rectangle. The image comes back in this reply -- there is nothing to Read afterwards. CROP, DO NOT SHRINK: window costs about 1300 tokens and a region strip about 160, against 1843 for the whole desktop, and all three stay legible, while scale below 1 makes small text unreadable for a saving a crop would have made anyway. Passing window AND region means a rectangle measured inside that window. annotate draws grid lines and window boxes labelled in SCREEN coordinates, so the number to pass to pointer_click can be read off the picture instead of estimated. Before reaching for this at all: ui_find and find_text answer "where is X" without an image, and every acting tool already shows you the result.
Inputs: app, path, scale, inline, +4 more.
type_textA
Type into a named window. Focus is confirmed first, nothing is typed if it cannot be confirmed, and the widget is read back afterwards to check the right characters arrived. Characters go to the compositor as keysyms, so the keyboard layout cannot transpose them -- the German-QWERTZ hazard that made ydotool type z for y does not apply to this path. ui_set_text is still better where it works: it hands text to the widget and needs no focus at all.
Inputs: text (required), target (required), via, look, +4 more.
ui_appsARead-only
Applications currently on the AT-SPI bus. These names are what ui_tree and ui_find take.
Inputs: no named parameters.
ui_findARead-only
Find widgets by visible text. THE way to locate something to act on: pressing a real widget through AT-SPI cannot miss and does not care where the window moved to. Paths returned here are valid only while the tree is unchanged -- find, then act.
Inputs: app, role, text, depth, +1 more.
ui_pressA
Invoke a widget's own action through AT-SPI -- the preferred way to act on this desktop. Requires expect_name or expect_role, and refuses if the path no longer points at that widget, so a shifted tree cannot make you press the wrong thing.
Inputs: ref, look, path, look_at, +4 more.
ui_read_textARead-only
Read the content of a text widget straight out of the accessibility tree. This is how you VERIFY that something landed, instead of trusting that a keystroke arrived.
Inputs: app, path.
ui_set_textA
PREFERRED way to enter text. Writes through AT-SPI EditableText, which needs no focus and no ydotool: it works on an unfocused window and even while the screen is locked, and it reads the widget back to prove the text landed. Use type_text only when a widget is not AT-SPI-editable.
Inputs: text (required), app, look, path, +3 more.
ui_treeARead-only
Accessibility tree for one application: roles, names, screen bounds, and which nodes are actionable. Prefer ui_find unless you genuinely need the shape of the whole window.
Inputs: app (required), depth.
wait_forARead-only
Wait until the desktop reaches a state, instead of sleeping a guessed number of seconds. Conditions: window_exists, window_gone, window_focused, focus_changes; text_appears (OCR polls a window for a string -- a reply arriving, a build finishing); widget_exists (an AT-SPI widget matching text/role shows up in app); clipboard_changed (a copy landed); elapsed (just wait N seconds -- for a long install with nothing to poll, and the honest alternative to watching for a string you know will never appear). Returns as soon as it is true, or reports honestly that it timed out. A timeout over 300s is clamped, not refused.
Inputs: condition (required), app, role, text, +2 more.
window_atARead-only
What a click at this point would hit. Use it before clicking somewhere you inferred from a screenshot. Reports both the compositor's own pick (which respects input shapes, so a click-through overlay is seen through) and every window whose rectangle covers the point.
Inputs: x (required), y (required).
window_manageB
Move, resize, close, (un)minimize, (un)maximize, re-workspace or pin a window -- through the compositor, where these are ordinary calls. The result reports the window as it IS afterwards (new geometry, or gone), not just that the call was sent. close that leaves the window standing names the usual reason: an unsaved-changes dialog.
Inputs: action (required), target (required), x, y, +4 more.
zoomARead-only
Look closer at a small area at FULL resolution -- never scaled, unlike screenshot, which fits everything to the model's 1568px ceiling. For a tiny glyph, a hairline border, an icon. Refuses more than half the desktop: zoom exists to spend tokens on FEW pixels.
Inputs: pad, path, region, window.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 33 tools
Each tool targets a distinct mechanism or operation — pointer, AT-SPI, OCR, compositor, clipboard, video — and the descriptions explicitly steer between adjacent pairs (ui_find vs find_text, ui_set_text vs type_text, wait_for vs region_changed, screenshot vs zoom). The closest pair, screen_map vs window_at, is separated by one being a full snapshot with refs and the other a cheap single-point hit test.
snake_case verb_noun dominates and prefix families are consistent (pointer_*, ui_*, clipboard_*). A handful of bare-noun tools (zoom, frames, journal, screenshot, screencast) and two odd formulations (window_at, region_changed) break the pattern but never obscure meaning.
33 tools is heavy, but the domain — full Wayland desktop control across pointer, keyboard, AT-SPI, window management, video, OCR, clipboard, and diagnostics — is unusually broad, and nearly every tool maps to a distinct operation. It's more than a typical CRUD server needs, but the count is large without being bloated.
The full loop of see → decide → act → verify is covered: capture (screenshot, zoom, screencast, frames), locate (ui_find, find_text, screen_map), act (pointer/keyboard/widget tools), manage (launch_app, window_manage, activate_window), verify (assert_state, ui_read_text, clipboard_read), plus wait_for, region_changed, desktop_health, and journal. No dead ends or critical gaps for the stated purpose.
Maintenance
Related MCP Connectors
A cloud Linux desktop for your AI: browse, click, type, read the screen and run commands.
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Cloud desktops for AI agents: create a Linux computer, see its screen, click, type and run tasks.
Real desktops for AI agents, on machines you choose: screenshot, type, click, hire more agents.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables an AI agent to see and control a Linux desktop via Wayland/Hyprland, providing screenshots, structured desktop state, pointer/keyboard input, semantic window/workspace tools, and a policy engine for safe execution.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to automate and observe Linux desktop GUIs on KDE Plasma 6 Wayland through isolated virtual sessions or live desktop connections, providing 30 tools for input, clipboard, accessibility tree inspection, screenshots, and window management.2MIT
- AlicenseBqualityBmaintenanceEnables AI agents to inspect, automate, and test desktop GUI applications on Wayland through window/desktop streaming, semantic AT-SPI accessibility tree inspection, and boundary-clamped mouse, keyboard, drag, and scroll input injection. It also manages application process lifecycle, captures window frames, and registers Python GUI scripts as native Linux desktop launchers.221MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to see, click, type, and drive a Wayland Linux desktop through mouse, keyboard, screenshots, OCR, icon finding, window management, and accessibility-tree inspection.1ISC