Skip to main content
Glama
computer
by zznabil

Press element

element_press
Destructive

Triggers an accessibility action on a UI element, defaulting to press, and can select a menu item path when the action opens a menu.

Instructions

Perform an accessibility action on an element: default "press"; others from ax_element actions (e.g. "showMenu", "increment"). With menu, choose that item path in the menu the action opens. When a Windows control requires the foreground, the server takes over if its setting allows.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ref": "<ref>"
    },
    "name": "element_press"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesElement ref from ax_tree/ax_find, e.g. "e12".
menuNoMenu item path to choose.
actionNoAction name (default "press").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already flag destructive=true, openWorld=true, non-idempotent and non-read-only, so the description's burden is lower. It adds useful behavior about foreground takeover and menu-path selection, but never states what the destructive side effects actually are for arbitrary accessibility actions or what happens when an action isn't supported.

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?

Three dense sentences with the core purpose front-loaded and no filler. The foreground-takeover sentence is slightly tangential to invocation choice but still earns its place as behavioral context.

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?

There is no output schema, and the description never indicates what a call returns or how failures surface, which matters for a destructive, open-world action. It covers the parameter-driven behavior adequately but leaves the result side under-described.

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 100%, so baseline is 3, but the description adds real meaning: 'action' values are sourced from ax_element actions with 'press' as default, and 'menu' is a path into the menu the action opens. That clarifies how the parameters interact beyond their one-line schema descriptions.

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?

The description states a specific verb and resource: 'Perform an accessibility action on an element', and clarifies that 'press' is the default while other actions come from ax_element's action list. It does not distinguish this tool from sibling element_click, which an agent may easily confuse with the default 'press' case.

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?

It gives concrete when-to-use signals: use 'menu' to choose an item path when the action opens a menu, and note the foreground takeover case. It does not say when to prefer this over element_click or press_keys, so the alternative-selection guidance is incomplete.

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