Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Take a screenshot

screenshot

Captures the screen, a pixel region, or a specific window as a PNG for visually inspecting canvas/WebGL, images, CAPTCHAs, or final results the accessibility tree cannot describe.

Instructions

Capture the real screen (or a region, or a specific window's bounds) via the Wayland compositor (grim). Returns a PNG image. EXPENSIVE: costs image tokens and a vision pass. For interactive elements (buttons, links, form fields) use read_page/click_element/type_into_element instead — they're exact and far cheaper. Reach for screenshot only for things the accessibility tree can't describe: canvas/WebGL content, images you need to actually look at, CAPTCHAs, or visually verifying a final result. IMPORTANT: when a region/window crop is used, the returned image's pixel (0,0) is NOT screen (0,0) — it's the region's top-left corner. The accompanying text tells you that offset; you MUST add it to any pixel position you read off the image before passing coordinates to click/move_mouse, or you will click the wrong place.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionNoPixel region to capture. Omit to capture the whole screen.
window_addressNoHyprland window address (from list_windows) to crop the screenshot to instead of specifying region manually.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description carries the full burden and does most of it: it discloses cost (image tokens plus a vision pass), the return type (PNG), and the critical behavioral trap that a cropped image's pixel (0,0) is the region's top-left, not screen origin, with a required offset correction. It stops short of naming permissions, capture latency, or multi-monitor behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and return type, then cost, then alternatives, then the coordinate caveat — a sensible priority order. It is dense and long for a two-parameter tool, but nearly every clause carries decision-relevant information, with only minor redundancy between the region parenthetical and the later warning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, yet the description states what comes back (PNG plus accompanying text with the offset) and how to use it. There are no annotations, but the read-only, side-effect-free nature is implicit in capturing a screen and the description covers the remaining risks (cost, coordinate error). Nothing needed to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3; the description adds genuine meaning on top by explaining the coordinate-offset consequence of using region/window crops and on how to think about window_address versus manual region. That offset semantic is not expressed anywhere in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource (capture the real screen, region, or window bounds) and names the mechanism (Wayland compositor, grim). It also names the sibling alternatives it is not (read_page/click_element/type_into_element), so an agent can route correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-not-to-use ('for interactive elements use read_page/click_element/type_into_element instead — they're exact and far cheaper') and explicit when-to-use (canvas/WebGL, images to actually look at, CAPTCHAs, final visual verification). Both directions of the decision are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.