Skip to main content
Glama

act

Destructive

Execute ordered Windows desktop actions via UI Automation, native, or background message input, with configurable feedback and screenshots.

Instructions

Run ordered actions with uia, native, or background message input_mode.

Omitted input_mode preserves native=false/true. Explicit native or message mode opts in alone; native=true conflicts with explicit uia/message.

Explicit native force_focus restores/attaches input threads and verifies the exact foreground HWND; focus keeps conservative SetForegroundWindow behavior. Neither is automatically used before keyboard or mouse actions. Auto feedback returns full state for message, an image for native, text for UIA; screenshot=false disables feedback. Observation does not verify game effects. feedback=compact/detailed controls native receipt/context metadata only, independently of screenshot; it does not select another input channel.

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

Input Schema

NameRequiredDescriptionDefault
focusNo
nativeNo
targetNo
actionsYes
timeoutNo
feedbackNocompact
settle_msNo
capture_idNo
input_modeNo
key_methodNoscancode
screenshotNoauto
stop_on_errorNo
coordinate_spaceNoscreen
max_output_bytesNo
max_output_charsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

B3.1/5.0
Behavior4/5

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

Annotations already declare a non-read-only, destructive operation, but the description adds genuinely non-obvious behavior: force_focus verifies the exact foreground HWND, focus keeps conservative SetForegroundWindow, neither is applied automatically before keyboard/mouse actions, and crucially "Observation does not verify game effects" — an important caveat that returned state does not confirm success. It also explains what screenshot=false and feedback=compact/detailed toggle. It omits error handling (stop_on_error default true) and any permission/safety notes, keeping it below a 5.

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

Conciseness3/5

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

The content is dense with no filler sentences, and mode-selection rules are front-loaded, but the prose is heavily compressed and jargon-laden (e.g., "Omitted input_mode preserves native=false/true") with awkward line-wrapped fragments that slow parsing. No sentence is wasted, but readability suffers from the terse telegraphic style.

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

Completeness2/5

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

For a 15-parameter, destructive tool with no output schema and 0% schema description coverage, the description is far from complete. Most critically, the required `actions` parameter is typed only as an array of untyped objects with no explanation of its element shape, so an agent has no way to know what actions are valid or how to order them. Several behavioral knobs central to correct invocation (stop_on_error, timeout, settle_ms, coordinate_space) are never mentioned.

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 0% across 15 parameters, so the description must carry the load and it only explains about six of them (input_mode, native, focus/force_focus, feedback, screenshot). Where it speaks it adds real value, resolving the conflict rules between native and input_mode and clarifying that feedback is independent of input channel selection. Nine parameters, including key_method, coordinate_space, settle_ms, capture_id, and target, receive no explanation at all.

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

Purpose3/5

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

The description says it will "Run ordered actions with uia, native, or background message input_mode," which gives a verb and a mode space, but "actions" is essentially a restatement of the tool name "act" and the description never states what domain the actions belong to (input events, window ops, game input). Mentions of "keyboard or mouse actions" and "game effects" hint at desktop input automation, but an agent must infer this. It also does not distinguish itself from siblings like play or record.

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

Usage Guidelines3/5

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

There is real guidance on choosing between uia, native, and message modes, including the constraint that omitted input_mode preserves the native flag while native=true conflicts with explicit uia/message. However, there is no guidance on when to use this tool at all versus the other automation siblings, and no prerequisites or failure conditions are stated.

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

Deploy Server

Other Tools