Skip to main content
Glama
CT-mao

uitree-local

by CT-mao

long_press

Press and hold at (x, y) for a set duration to open context menus, select text, or grab an icon before dragging.

Instructions

Long-presses at (x, y) for duration_ms (default 600). Opens context menus, selects text, or grabs an icon before dragging. For element targets with humanized random points use long_press_element.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYes
yYes
verifyNo复查屏幕树确认变更生效 (default true).
duration_msNoHold duration in ms (default 600).
verify_poll_msNo轮询树的时间间隔毫秒 (default 300).
verify_timeout_msNo等待变更生效的超时毫秒 (default 3000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral-disclosure burden. It states the default hold duration and common effects, but omits verification behavior, polling/timeout semantics, and any risk or mutating side-effect profile.

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?

Three short sentences, front-loaded core action, then effects, then sibling alternative. Every sentence earns its place with no wasted text.

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?

Core invocation and sibling routing are covered, but with no output schema and no annotations the description leaves verification parameters and result/return behavior unexplained. The schema partially compensates for optional parameter 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 description coverage is 67%. The description names x, y and repeats the duration_ms default, but does not add meaning for verify, verify_poll_ms, or verify_timeout_ms beyond what the schema descriptions already provide.

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 the specific verb 'long-presses' with coordinate and duration inputs, describes intended outcomes (context menus, text selection, drag grab), and names the sibling for element targets. An agent can distinguish it from long_press_element and other gesture tools without opening the schema.

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?

Gives clear use cases (context menus, text selection, dragging) and explicitly routes element-target use to long_press_element. It does not cover prerequisites or when coordinate long press should be preferred over other siblings like swipe or tap beyond the element alternative.

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