Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

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.

Windows desktop automation over UI Automation. Observe before you act: tool_skyshot reads a window as a compact, diffable text tree (orders of magnitude cheaper than a screenshot), and tool_find_elements / tool_element_at_point name controls inside it. Prefer element actions (tool_element_action, tool_element_action_at): they deliver UIA patterns, so they never steal focus and do not care about z-order. Reach for tool_click_at or tool_send_keys only when no element path exists - those inject real physical input, are hard-gated, and yield to the human. Every action returns a receipt: action_sent means the call was accepted, effect_verified means the effect happened. They are different things, and action_sent=true is never a claim that it worked. If a call comes back user-active, a person is at the keyboard: do not retry in a loop - wait, or switch to the element path. The 12 read-only tools are safe to call at any time.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
tool_list_windowsA

List all visible top-level windows with title, hwnd, PID, position and size, sorted largest first. Read-only — safe while the user works.

tool_find_windowA

Find a window by title substring and return its hwnd and geometry. Read-only.

tool_capture_windowA

Capture a window screenshot and SAVE IT TO A FILE. Provide hwnd or title substring. Crops to the window's CLIENT area by default, so image pixel (0,0) is the same point click_at calls (0,0) — no frame offset to guess. Returns bounds = the screen rect (x,y,width,height) the image maps to, and per-axis scale_x and scale_y. Multiply image coordinates by the corresponding scale and then add the bounds origin to get screen coordinates. A DPI-virtualized target can have different image-pixel and screen-pixel dimensions even without resizing. Also reports dpi_verified; when false, image pixels and input coordinates cannot be safely paired. Defaults to JPEG q80 — a 1080p shot is ~6-10x smaller than PNG, which is what keeps a long session's request body under the provider's 32 MiB cap. The bytes are NOT inlined as base64 by default (that costs ~12,500 tokens per shot as text); read the saved_path with read_image instead, which attaches the same picture for ~50 tokens. Pass include_data_uri=true only when a caller genuinely cannot read a file. Read-only — no input injection, no focus change.

tool_send_keysA

Send keyboard shortcut to a window. Example: keys=['ctrl','s']. Physical keys follow the active input method. A successful dispatch does not verify that text was committed. Use set_value for literal text when available. For Alt+key menu navigation, include 'alt' as first key (or set use_alt_key). MUTATING: serialized across agent sessions via the admission gate, and global hotkeys additionally YIELD TO THE USER — recent mouse/keyboard activity makes them wait, then refuse with reason user-active instead of interrupting; switch to element actions or retry later. Also refuses when the window is not the foreground window, because injected keys would go to the wrong window.

tool_click_atA

Click at client-area coordinates within a window. Coordinates relative to window content area (0,0 = top-left). Tries the ELEMENT path first (resolve the point via UI Automation and invoke that element) because it needs no focus and does not care about z-order; falls back to a gated raw cursor click before dispatch when the hit is an image/document surface or cannot be invoked. A sent Invoke is never followed automatically by a raw click. Check effect_verified and observe the window when the effect is unconfirmed. The result's method says which was used: 'ax_press' or 'raw_event'. MUTATING: serialized across agent sessions; the raw_event path ALSO YIELDS TO THE USER (waits for input-quiet, then refuses with user-active rather than fighting them for the cursor); the ax_press path injects no physical input. The raw path verifies the addressed window actually owns that screen point and returns success=false instead of clicking another window. Pass dry_run=true to check where the click would land without moving the cursor, clicking, or taking any gate.

tool_element_actionA

Perform an action on a UI element by the ref from element_at_point — this is the focus-free path: a UI Automation pattern is delivered to the element, so the window is never raised and z-order never matters. MUTATING (soft): serialized across agent sessions; NO physical input is injected, so it can run while the user types — just do not operate the very window the user is working in. action must be one of the actions listed for that element (press, set_value, select, toggle, expand, collapse, scroll_into_view, focus); set_value also needs text. Refuses with the supported list when the element does not offer the action.

tool_type_textA

Post text to a window's text control without activating or restoring its window. MUTATING (soft): serialized across agent sessions. No physical input is injected. On PostMessage failure, stops at the first rejected character and returns how many were queued in typed. A partial post may already have edited the target. Inspect it before retrying. effect_verified reports whether readback confirmed the requested insertion. Some applications require their window to be active to process text.

tool_get_window_rectC

Get detailed position and size info for a window: absolute position, dimensions, and client area size. Read-only.

tool_element_at_pointA

Identify the UI element at a PHYSICAL screen point via Windows UI Automation. Returns its name, role, rect, and which actions it supports, plus an opaque ref for read_element. This is how you turn 'what I see in the screenshot' into something addressable without clicking: coordinates here are the same space as capture bounds (both physical pixels). Read-only — moves no cursor and changes no focus.

tool_read_elementA

Re-read a UI element by the ref returned from element_at_point. Use this to check whether an element is still there before acting on it; a ref goes stale when the UI is rebuilt, and that is reported rather than guessed. Read-only.

tool_skyshotA

Read a window's accessibility tree as compact text. Each element line is '{index} {indent}{role} {name}{Value: ...}{(state)}'. After the first shot, the result is a diff by default: '~' shows changed or renumbered elements, '+' shows additions, and removed indices refer to the previous shot. Unchanged lines are omitted. For tool_element_action_at, pass the returned hwnd and shot_id plus an index printed on an element line in this response. Taking another shot of the same window invalidates that pair. Pass disable_diff=true to see the full tree and act on an omitted element. The shot_key identifies the window, while shot_id identifies this observation. Pass include_offscreen=true to include scrolled-out or hidden elements. A minimized window may expose only part of its tree; restore the window and read again if needed. Element values can contain window content. Read-only: no input injection or focus change.

tool_element_action_atA

Act on an element printed by the latest skyshot of a window. Pass hwnd, shot_id and the element's printed index from the same tool_skyshot response. A missing or stale shot_id or an index omitted from the response is refused before acting. If refused, take a fresh full shot with disable_diff=true and use its shot_id and index. MUTATING (soft): serialized across agent sessions; no physical input injected. Actions: press, set_value, select, toggle, expand, collapse, scroll_into_view, focus. set_value also needs text.

tool_find_elementsA

Find UI elements by role and/or name substring and return refs that can be acted on with element_action. This is how you reach an element that cannot be hit-tested — the point of naming it is that you no longer need a pixel. role is the lowercase role from skyshot (button, edit, document, list_item, ...). At least one filter is required: an unfiltered call would be a tree dump, so use skyshot for that. The result reports minimized — a minimized window does not always expose its full tree, so a zero here is not proof that nothing matches. Read-only.

tool_coexistence_statusA

Report the coexistence policy in force: whether the admission gate is enabled, the quiet/max-wait/mutex-timeout tunables, the pre-injection final-check window, named-mutex health, and how long ago the last physical input happened. Read-only — call it when an action was refused with user-active or arbiter-busy and you want the numbers behind the refusal.

tool_clipboard_readA

Read the current clipboard text. Read-only. Non-text clipboard content reports empty text rather than failing.

tool_clipboard_writeA

Replace the clipboard contents with text. MUTATING (soft): serialized across agent sessions — and it DESTROYS whatever the user last copied, so do not use it casually; announce it when you do.

tool_open_applicationA

Open a file, folder, or URI with the shell's default handler — like double-clicking it in Explorer: an .exe path, a document, or a URL. MUTATING (soft): serialized across agent sessions; the launched app may take focus.

tool_list_displaysA

List monitors: index (1-based), primary flag, device name, and the monitor plus work-area rectangles in physical pixels. Read-only.

tool_cursor_positionA

Current cursor position plus the screen size, both physical pixels. Read-only.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 19 tools

Disambiguation3/5

Three different tools can press a button — tool_click_at (which silently falls back to an ax_press path), tool_element_action (by ref), and tool_element_action_at (by skyshot index) — and the last two have near-identical names with subtly different addressing schemes. The very detailed descriptions do explain the distinctions, and the window/display/clipboard tools are cleanly separated, but an agent must read carefully to pick the right action path.

Naming Consistency4/5

All 19 tools share a consistent `tool_` prefix and are overwhelmingly snake_case verb_noun (capture_window, send_keys, click_at, find_elements, list_displays). Minor deviations exist: clipboard_read/clipboard_write invert to noun_verb, and skyshot, cursor_position, coexistence_status are noun-only with no verb.

Tool Count4/5

19 tools is on the heavy side but each maps to a real capability of a desktop-automation server (capture, input, element addressing, window enumeration, clipboard, displays). The only redundancy is the three overlapping element-activation paths, which could be collapsed to two.

Completeness3/5

Core read/act loop is covered, but there is no mouse-wheel/scroll tool, no drag, no right-click or double-click, and no window lifecycle control (move, resize, minimize, close, focus). For a computer-use server these are common operations an agent will hit as dead ends, forcing workarounds via send_keys or element scroll_into_view.

Maintenance

ActivityNo data
ResponsivenessOutdated data