desktop_locate
Locate a UI element, text, or button in a screenshot and return its physical pixel coordinates (x,y). Uses coarse-to-fine alignment for ~±5px accuracy.
Instructions
在截图中定位一个 UI 元素/文字/按钮,返回物理像素坐标 (x,y)。采用多阶段精定位:全图校准粗定位 → 局部放大精定位,误差约 ±5px。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refine | No | 是否做精定位(默认 true) | |
| target | Yes | 要定位的目标描述,如 '开始游戏按钮'、'下载按钮'、'游戏版本(测试版)' | |
| image_path | No | 截图路径(可选,缺省自动截图) |