Skip to main content
Glama

act

Destructive

Operate a browser or desktop element through its accessibility interface: press, set values, focus, or scroll into view without moving the pointer or sending keystrokes.

Instructions

Operate an element through the app's own accessibility interface — no pointer, no keyboard, no coordinates. element is an id from a parse_screen/find_elements whose "source" was browser-dom or at-spi (not vision).

action='press' activate it (button, link, checkbox, tab, menu item). Browser: a real, trusted click delivered to the page without moving the X pointer ("method": "cdp-input"); when the element is covered or out of view its click handler is invoked directly instead ("method": "dom-click", "synthetic": true — some pages ignore those). Native: the element's AT-SPI action ("at_spi_action"). action='set_value' set value: text for a field (browser: trusted insert-text events, then a direct set if the page reformatted it), an option's text for a , 'true'/'false' for a checkbox or radio, a number for a slider. Replaces the old content. action='focus' give it the keyboard focus (then type_text/press_keys). action='scroll_into_view' bring an off-screen element into the viewport. Returns {"ok", "action", "instance", "element", "label", "type", "did", "method", "before": {states, value}, "after": {states, value}, "center"?, "verified"?: true|false|null (set_value: the value read back equals value; null = unreadable, e.g. a password), "scrolled"?, "synthetic"?, "note"?}. Compare before/after to see the effect (e.g. "checked" appearing). Fails (isError), nothing done, when: the id is unknown or from a vision parse; the element is gone ("stale": true — find_elements again); it is disabled or read-only; a password field without allow_password=true; the app exposes no such action for it (then click_element(id) / fill(element=id) use the pointer and keyboard instead); a has no such option ("options" lists them). Prefer fill() when the page must see real keystrokes (autocomplete, per-key validation). observe/settle_ms/observe_region: see click().

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": {
      "element": "<element>"
    },
    "name": "act"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueNo
actionNopress
elementYes
observeNonone
instanceNo
settle_msNo
allow_passwordNo
observe_regionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing per-action mechanisms (cdp-input trusted click, dom-click synthetic fallback, at_spi_action), the destructive nature of set_value ('Replaces the old content'), password gating via allow_password, and a detailed isError failure taxonomy including stale ids. The openWorldHint/destructiveHint annotations are corroborated rather than contradicted; only the observe/settle_ms behavior is delegated to click() rather than explained here.

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 core concept, then organized into a scannable action table followed by return shape and failure modes — structure carries the length. Some sentences are dense (the nested 'did'/'method'/'synthetic' return enumeration), but little is redundant.

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?

For an 8-parameter, open-world, destructive mutation tool with no output schema and no annotation detail, the definition covers mechanism, failure modes, and return fields thoroughly. Residual gaps are the undefined observe/settle_ms/observe_region and `instance` parameters, which an agent must resolve by reading click()'s documentation.

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 0%, so the description carries the load and does most of it: it enumerates and explains the four `action` values (the schema has no enum), defines `value` per action type (text, select option text, 'true'/'false', number), scopes `element`, and explains allow_password. `instance`, `observe`, `settle_ms`, and `observe_region` are either undefined or deferred to click(), leaving a real gap for 8 params.

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 mechanism: 'Operate an element through the app's own accessibility interface — no pointer, no keyboard, no coordinates,' and immediately constrains the valid `element` ids to non-vision parses. It is clearly distinguishable from pointer-based siblings like click_element and fill, which are named and characterized.

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 says when to use this versus alternatives: prefer fill() when the page must see real keystrokes (autocomplete, per-key validation), and fall back to click_element(id)/fill(element=id) when the app exposes no accessibility action. It also prescribes the source of the element id (parse_screen/find_elements with browser-dom or at-spi), which prevents a whole class of misuse.

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