Skip to main content
Glama
liufeicc

cc-computer-use

by liufeicc

act_sequence

Batch a sequence of desktop UI actions (click, type, key, wait) into one call, returning each step's status and an optional final screenshot to confirm the result without extra round trips.

Instructions

一次调用批量执行一串动作——省往返的关键工具。⭐ 使用判据:凡是下一步不依赖上一步结果的连续动作,一律一次提交;每多一次单独调用,就多一个「模型思考 + 读结果」的来回(实测每轮 30~70 秒,而工具本身只要零点几秒)。只有需要看结果做分支判断时才拆成多次调用。steps 每项含 op 字段:click{ref?,text?,role?,app?,button?,x?,y?} / type{text,ref?,clear_first?} / key{combo} / wait{title_contains?,window_id?,timeout?} / sleep{seconds} / list_windows{} / screenshot{region?,max_side?}。把 screenshot 放在最后一步,可以在同一次调用里拿到「这一串做完之后长什么样」,省掉单独截图的整个来回(确认类截图占实测截图的三分之二)。stop_on_error=true 时某步失败即停止后续。返回每步 ok/message 的 JSON;点击类步骤的 message 里带落点证据(落在哪扇窗、底下什么字、点后活动窗口),据此判断有没有点偏,不必再截图确认。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepsYes
stop_on_errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A5/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden, and it excels. It discloses the return format (JSON with per-step ok/message), the stop_on_error semantics, the step op types and their optional fields, and the landing-point evidence in click messages. It also reveals performance characteristics (measured round-trip times) and the advice about screenshots, giving an agent a realistic mental model of execution and side effects.

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

Conciseness5/5

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

The description is long but every sentence earns its place. It front-loads the core value proposition and usage rule, then systematically covers step ops, the screenshot tip, stop_on_error, and return details. The bold and star markers guide attention. For a tool with this many op variants and options, the density is appropriate—no filler, all actionable.

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

Completeness5/5

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

Given the tool's complexity (7 op types with numerous optional fields) and the absence of an output schema, the description covers all critical aspects: op syntax, usage heuristics, error behavior, return structure, and a practical optimization. It even addresses a common failure mode (off-target clicks) and how to verify without extra calls. An agent has everything needed to call it correctly and efficiently.

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

Parameters5/5

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

Schema description coverage is 0%, but the description fully compensates. It enumerates every op (click, type, key, wait, sleep, list_windows, screenshot) with their sub-fields, and explains the stop_on_error parameter's default and effect. This is far richer than the generic 'steps: array of objects' schema, enabling an agent to construct valid step objects without guessing.

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?

The description states a clear purpose: batch-executing a sequence of actions in one call to save round trips. It distinguishes itself from sibling tools (click, type_text, etc.) by framing it as the aggregation tool, and explicitly names the batching criterion. The verb 'execute' and resource 'a string of actions' are concrete, and it even quantifies the benefit (30–70s per round trip vs. sub-second tool call).

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?

It provides explicit, actionable usage criteria: submit consecutive actions whose next step doesn't depend on the previous result, and only split when you need to branch on results. It also gives a specific optimization—placing screenshot as the last step to save a round trip—and explains stop_on_error behavior. This directly tells an agent when to use this tool versus individual sibling calls.

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