Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Press Escape once for the page (store pop-ups)

escape_page

Sends one Escape key to the loaded page document only when no field, list, or choice has focus; returns sent status and focus details.

Instructions

Send ONE Escape to the page document, after the page has loaded: focus in browser UI is first given to the page document (no click). Refused, with nothing pressed, when a field, a list or a choice has focus. Returns {sent, focus_before, focus, reason}. Verify with a read afterwards; this never claims a pop-up closed.

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

Input Schema

NameRequiredDescriptionDefault
window_addressNo
move_from_fieldNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses the focus handoff to the page document (no click), the silent no-op refusal condition, the exact return fields {sent, focus_before, focus, reason}, and an explicit non-guarantee that a pop-up closed. It does not describe retry/idempotency behavior or what window it targets.

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?

Roughly three dense sentences with the core action front-loaded, then preconditions, then return contract. Every clause carries information; the phrasing is telegraphic in places ('Refused, with nothing pressed, when...') but not padded.

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

Completeness3/5

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

Return values are covered in lieu of an output schema, and the refusal semantics are spelled out, which suits a low-complexity single-keystroke tool. The unexplained window_address and move_from_field parameters remain a real gap that could cause a mis-targeted or unexpectedly refused call.

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

Parameters2/5

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

Schema description coverage is 0% for two parameters, so the description must compensate and it does not: neither window_address nor move_from_field is mentioned. The refusal-on-field-focus rule hints at move_from_field but never explains how to override it or which window is addressed by default.

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

Purpose4/5

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

States a precise verb and resource: send exactly ONE Escape keystroke to the page document, after load, with focus deliberately moved off browser UI. This is distinguishable from generic siblings like key_press or press_element by the single-key, page-scoped framing, though it never names those alternatives explicitly.

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

Usage Guidelines4/5

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

Gives clear preconditions (page must have loaded) and an explicit negative case: the tool refuses and presses nothing when a field, list, or choice has focus. It also instructs verification with a follow-up read. It stops short of routing the agent to a specific alternative (e.g. dismiss_dialog) when a dialog is present.

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