Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Read the page/window structure (fast, cheap)

read_page

Reads a focused or specified window's live accessibility tree to return interactive elements with roles, coordinates, and refs for clicking or typing, plus filters to narrow busy pages.

Instructions

The default way to see what's on screen. Reads the live accessibility tree (same API screen readers use) for the focused window (or a given window_address) and returns every interactive element (buttons, links, fields, checkboxes, etc.) with its exact screen coordinates and a short ref like 'e3'. Costs a few hundred tokens, not an image. Use filter_text/filter_role to narrow a busy page. Follow up with click_element/type_into_element using the ref. Only fall back to screenshot if you need to see something visual (an image, canvas, layout) that has no accessible representation.

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": "read_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
filter_roleNoOnly return elements of this role (several with |, e.g. 'entry|combo box' — one walk of the page), e.g. 'button', 'link', 'entry', 'heading', 'image', 'dialog' (popups/cookie banners/size sheets show up as 'dialog' — filter on it to read what the open popup contains: each dialog row, marked DIALOG-ROOT, followed by its buttons, options and list items).
filter_textNoOnly return elements whose accessible name contains this (case-insensitive).
filter_stateNoOnly return elements that REPORT this state — e.g. filter_state 'pressed' finds the currently chosen option in a variant picker. Combines with filter_text/filter_role: an element must match ALL filters given. This can only express the PRESENCE of a state: there is no way to ask for 'not checked', because an unchecked control and one that never exposes the state at all look identical here.
include_textNoAlso include static text/paragraphs/headings for reading page content, not just interactive elements.
start_at_refNoRead from this ref (from the previous read_page) onward, in page order — e.g. a product's heading, to read a buy box that sits past the row limit.
window_addressNoDefaults to the currently focused window.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are supplied, so the description must carry the load, and it largely does: read-only semantics are implicit in 'reads', cost is quantified ('a few hundred tokens, not an image'), and the fallback boundary is stated. What it omits is failure behavior — what happens on a stale ref, a dialog overlay, or a window that has gone away — which matters for a 30-plus-sibling agent surface.

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

Conciseness5/5

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

Four dense sentences, front-loaded with the default-use claim before the mechanism, the cost, the filtering hint, and the fallback. Nothing repeats the tool title or restates the schema; every clause carries actionable information.

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

Completeness4/5

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

With no output schema, the description rightly spends words on the return shape (elements, coordinates, short refs) and the token cost. The one remaining gap is the paging/truncation story around limit and start_at_ref, which the description leaves entirely to the schema despite it being a likely failure mode on busy pages.

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

Parameters3/5

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

Schema description coverage is already 86% and the schema documents limit, filter_*, include_text, start_at_ref and window_address thoroughly, so the baseline is 3. The description reinforces filter_text/filter_role ('to narrow a busy page') and the ref convention, but adds no syntax or interaction detail beyond what the properties already say.

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 and resource ('Reads the live accessibility tree ... for the focused window'), names the underlying API for mental model, and describes the return payload (interactive elements with coordinates and 'e3'-style refs). It is clearly distinguishable from the screenshot sibling, which it explicitly scopes to visual-only cases.

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?

Explicitly positions itself as 'the default way to see what's on screen', names the exclusion ('Only fall back to screenshot if you need to see something visual'), and gives the follow-up path (click_element/type_into_element using the ref). This covers when, when-not, and what to do next.

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