hyprcage
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
hyprcage gives you a virtual screen on the human's Hyprland desktop. Anything graphical you run for yourself goes there, never on the human's screens. Workflow: screen_create -> app_launch -> screenshot / click / type / key / scroll / drag / wait -> screen_destroy as soon as you are done. Coordinates are screen pixels (1280x800 by default). A screenshot costs ~1300 tokens: ask for screenshot_after only when you need to see the result, and prefer wait (stable_ms or title) over blind delays. Never launch apps outside app_launch, never touch the human's focus, cursor or workspaces.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| app_closeA | Ask a window of the screen to close gracefully. Window ids change when a window remaps, so take the id from windows rather than from an older reply. |
| app_launchB | Run a graphical application inside a screen. Returns its pid and, once it appears, its window. |
| batchB | Run several actions in one call; stops at the first error. |
| clickB | Click at screen coordinates (left by default; count=2 for a double click). |
| double_clickB | Double-click at screen coordinates with the left button. |
| dragB | Press the left button at (x1,y1), move to (x2,y2) and release. |
| keyB | Press key combinations such as ctrl+l, Return, alt+F4, ctrl+shift+t. |
| mirrorA | Open (open=true, default) or close (open=false) the human's mirror window for a screen, without touching the screen. Use it when the human asks to watch, or to stop showing a screen. |
| moveA | Move the pointer to screen coordinates without clicking (hover). |
| screen_createA | Create a virtual screen for yourself: a compositor with an output of its own, invisible to the human's desktop. Returns its name; use it in every other tool. Destroy it when done. The reply carries mirror_note when there is no mirror window for the human, and why. |
| screen_destroyA | Close a screen you created: its applications, its mirror window and its compositor. |
| screen_listB | List your screens (or every session's with all=true). |
| screenshotB | Capture the screen. Returns the image plus its geometry; coordinates for other tools are screen pixels. |
| scrollC | Scroll the mouse wheel at screen coordinates. |
| setupA | Install what hyprcage needs on this machine (cage) through the package manager. A password dialog opens on the human's screen: tell the human before calling it. Use it when screen_create fails with cage_missing, then retry. |
| typeC | Type Unicode text with the virtual keyboard (accents and emoji included). |
| waitB | Wait for a delay, for the image to stop changing (stable_ms) or for a window title (regexp). |
| windowsB | List the windows of a screen with their ids, titles and app ids. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 18 tools
Most tools target clearly distinct resources or actions (screen lifecycle, app lifecycle, pointer/keyboard primitives, observation tools like screenshot/windows/wait). The one real overlap is double_click, which is fully redundant with click's documented count=2 option, forcing an arbitrary choice between two tools that do the same thing. setup and screen_create are adjacent but the description explicitly chains them (cage_missing -> setup -> retry), so that pairing is not confusing.
Two conventions coexist: noun_verb for managed resources (screen_create, screen_list, screen_destroy, app_launch, app_close) and bare verbs or bare nouns for input/observation (click, type, key, drag, scroll, move, wait, screenshot, windows, batch, mirror). The internal grouping is logical and readable, but it is not a single predictable pattern, and 'windows' breaks the app_* family it arguably belongs to (could be app_list).
18 tools sits at the borderline of heavy for what is essentially a screen-automation loop. Input primitives legitimately need breadth, but double_click duplicates click and move+drag/click could be consolidated, so a couple of tools do not fully earn their place.
Coverage is strong: screen create/list/destroy, app launch/close, window enumeration, a full pointer and keyboard input set, screenshot, wait, mirroring, batching and environment setup. The main gaps are window-level manipulation (move/resize/focus a window) and clipboard/paste support, which agents can partly work around with key combos but not fully.