template.add
Crops an icon from a screenshot and saves it as a named template for a game, updating the manifest so UI elements can be matched permanently without hovering.
Instructions
声明图标模板:从截图(缺省最近一次 vision.screenshot)按 box 裁剪图标,写入 templates// 并更新 manifest。这是'图标→语义'声明层的一次性成本,之后 ui2.find_templates 永久可匹配(无需 hover)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| box | Yes | [l,t,r,b] 截图上的裁剪框 | |
| desc | No | 用途说明(声明层核心字段) | |
| from | No | 截图路径,缺省最近一次 vision.screenshot | |
| game | Yes | ||
| kind | No | ||
| name | Yes | 模板名(ascii slug,如 flash) | |
| label | No | 显示名(如 闪现) |