Skip to main content
Glama
liufeicc

cc-computer-use

by liufeicc

list_windows

List visible windows with ID, title, position, and size, sorted by area to identify the primary window and locate target window IDs for GUI automation.

Instructions

一次列出当前可见窗口:[{id,title,pid,x,y,w,h,area}],按面积降序(面积最大者通常是主窗口;未映射的孤儿窗/隐藏辅助窗已被过滤)。用于甄别同名窗、定位目标窗口 id,替代多次 shell 查询。返回 JSON 文本。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses that the output is a JSON list sorted by area descending, filters out unmapped orphan windows and hidden helper windows, and returns JSON text. This is substantial behavioral context for a read-only listing tool, though it doesn't mention rate limits or authentication (likely irrelevant). Score 4 is appropriate.

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?

The description is a single, dense sentence that packs purpose, output format, sorting, filtering, and use case without unnecessary fluff. It is front-loaded with the main action. It could be slightly more readable but is still efficient, so a 4 is justified.

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?

The presence of an output schema means the description need not explain return values in detail, and it does list the fields. However, the 'limit' parameter is completely undocumented, and there is no mention of error conditions or edge cases. For a tool with a single optional parameter, this is a notable omission, making the description incomplete.

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

Parameters2/5

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

The schema has one optional parameter 'limit' with a default of 100, and schema description coverage is 0%. The description never mentions 'limit' or explains its purpose or effect. Since the description does not compensate for the schema's lack of documentation, the parameter semantics are poorly conveyed. A score of 2 reflects this gap.

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 clearly states the tool lists visible windows with a specific output structure (id, title, pid, x, y, w, h, area) and indicates sorting and filtering. It gives a concrete use case (distinguishing same-name windows, locating target window id). However, it does not explicitly differentiate itself from sibling tools like get_screen_layout or get_ui_tree, so it falls short of a 5.

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?

The description provides clear context: it is meant for identifying windows by id and replacing multiple shell queries. It implies when to use it, but does not explicitly state when not to use it or name alternative tools. This meets 'clear context, no exclusions', which is a 4.

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