Skip to main content
Glama

cua_batch_actions

Execute multi-step desktop GUI macros in a single call to automate clicks, typing, clipboard, waits, and app actions, with Escape-key abort and optional final screenshot.

Instructions

Execute a multi-step desktop GUI macro (activate, launch, mouse, keyboard, ax_action, clipboard, wait, wait_for, applescript, powershell) in a single tool call with Escape-key emergency abort and optional final screenshot.

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": {
      "steps": "<steps>"
    },
    "name": "cua_batch_actions"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYesOrdered list of step objects, each with 'type' and step-specific parameters.
app_nameNoOptional default target app for virtual mouse/keyboard steps.
input_modeNoDefault input mode for mouse/keyboard steps in this batch ('virtual' avoids interfering with user input).virtual
stop_on_errorNo
screenshot_appNo
screenshot_gridNo
final_screenshotNo
screenshot_targetNofull

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It usefully discloses the Escape-key emergency abort and optional final screenshot, but omits how errors are handled (stop_on_error defaults to true in the schema but its effect is unexplained), whether the call blocks until all steps finish, and whether the virtual input mode leaves the user's desktop untouched.

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?

A single front-loaded sentence with the core action first and the step-type inventory in a parenthetical. The list is long but every item is informative; no filler or redundancy.

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?

For an 8-parameter macro executor with no annotations, no output schema, and low schema coverage, the description leaves real gaps: the structure of a step object, error/interrupt semantics, and the return value are all unaddressed. It covers the headline capability and safety valve adequately but not the operational details.

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 coverage is 38% across 8 parameters, so the description needs to compensate. The enumeration of valid step 'type' values is genuinely additive since steps are untyped nested objects, but the screenshot_app, screenshot_grid, and screenshot_target parameters get no explanation beyond 'optional final screenshot', and no step-object shape or example is given.

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 concrete verb ('Execute') and resource ('multi-step desktop GUI macro') and enumerates the ten supported step types, which cleanly distinguishes it from single-action siblings like cua_mouse or cua_keyboard. No sibling is named explicitly, so the differentiation is implied by 'multi-step ... in a single tool call' rather than stated.

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?

Usage is implied: batch several GUI steps together when you want them in one call. Nothing says when to prefer this over chaining the individual primitives, nor any exclusion (e.g., don't batch long waits, don't mix apps), so the agent must infer the tradeoff.

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