Skip to main content
Glama

cursor_locate

Locate a target on an image by iteratively adjusting a cursor via visual feedback and relative offset estimates, converging on the target center.

Instructions

移动光标 + 视觉反馈循环定位:渲染光标位置,模型输出目标相对光标的偏移(dx/dy),逐步逼近目标中心。对相对偏移的估计比绝对坐标更准(参考 GUI-Cursor 交互式搜索范式)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageYes
startNo光标初始位置(归一化 0-1 比例),默认 [0.5, 0.5] 即图中心
coordsNo返回坐标单位:pixel(默认)或 norm(0-1000 归一化)
targetYes要定位的目标,如:蓝色提交按钮 / 红色圆形 / 报错文字
out_pathNo保存最终光标位置的图(必须位于输出目录内)
max_stepsNo最大移动轮数,默认 6,范围 1-20
step_ratioNo单轮最大移动比例(相对图宽高),默认 0.25,范围 0.05-0.6
Behavior3/5

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

With no annotations, the description carries full transparency burden. It explains the iterative feedback loop and why it is used, but does not disclose potential side effects (e.g., whether the actual screen cursor is moved), failure behaviors, or what happens if `max_steps` is exceeded. This is moderate but incomplete.

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?

Two concise sentences: the first states the core mechanism, the second justifies its advantage. No wasted words, front-loaded with the tool's purpose and method.

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

Completeness4/5

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

For a moderately complex tool with 7 params and no output schema, the description explains the distinct interactive approach. It lacks explicit mention of return format, but the schema's `coords` parameter indirectly covers this. Overall, it is nearly complete for a specialized locator.

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

Parameters4/5

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

The schema covers 86% of parameters, so the baseline is 3. The description adds meaning by explaining the relative-offset mechanism, which helps interpret `max_steps` and `step_ratio`. It does not detail individual parameters, but the core behavior clarifies their purpose.

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 clearly states the tool's function: moving the cursor with a visual feedback loop to iteratively locate a target by estimating relative offsets (dx/dy). This distinguishes it from sibling tools like `locate_object` or `som_locate` by emphasizing the interactive refinement mechanism.

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?

It provides a clear rationale for when this tool is preferred: when relative offset estimation is more accurate than absolute coordinates, citing the GUI-Cursor interactive search paradigm. However, it does not explicitly mention when not to use it or compare with alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zouyuanqing/vision-primitives-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server