/** * Func 标签:string-reg-location * * 约定:src/pages/processing/func/ 目录下每个文件名就是一个"可用标签/能力"。 * 本文件用于声明该标签存在(供文档/提示词/后续动态加载使用)。 * * 语义:通过 OCR/文字匹配找到指定字符串所在位置并返回坐标(常用于定位/点击)。 * 当前项目里对应能力主要由 electronAPI.findTextAndGetCoordinate / ActionParser 的 string-press 等实现承载。 */ export const tagName = 'string-reg-location'; export const schema = { description: '在屏幕截图中查找目标文字并返回位置坐标(可用于 click/press)。', inputs: { text: '要匹配的目标文字/正则(建议让用户提供稳定的关键字)', variable: '输出变量名(保存坐标)', }, outputs: { variable: '坐标(x,y 或 position 对象)', }, };