{ "schemaVersion": 1, "skill": "account-manager", "actions": [ { "id": "account-add-web", "label": "新增账号", "description": "登记网页/RPA 账号并自动创建浏览器 Profile 目录(走 account add-web,非宿主直写库)。", "replaces": "create", "placements": [], "executionProfile": "sync", "interaction": "form", "bind": { "tables": ["accounts"] }, "inputSchema": { "type": "object", "required": ["platform", "accountLabel"], "properties": { "platform": { "type": "string", "title": "平台", "description": "平台键或显示名,如 cosco / 抖音" }, "accountLabel": { "type": "string", "title": "账号名称" }, "loginId": { "type": "string", "title": "登录账号" }, "loginIdType": { "type": "string", "title": "登录标识类型", "default": "unknown" }, "tenantId": { "type": "string", "title": "租户编号" }, "environment": { "type": "string", "title": "环境", "default": "production" }, "role": { "type": "string", "title": "角色", "default": "default" }, "providerCode": { "type": "string", "title": "供应商代码" }, "url": { "type": "string", "title": "入口链接" } } }, "entrypoint": { "type": "cli", "command": "account", "args": [ "add-web", "--platform", "{{platform}}", "--label", "{{accountLabel}}", "--login-id", "{{loginId}}", "--login-id-type", "{{loginIdType}}", "--tenant-id", "{{tenantId}}", "--environment", "{{environment}}", "--role", "{{role}}", "--provider-code", "{{providerCode}}", "--url", "{{url}}" ] } }, { "id": "reveal-profile", "label": "打开文件位置", "description": "在系统文件管理器中打开该账号的浏览器 Profile 目录。", "placements": ["row"], "executionProfile": "sync", "interaction": "direct", "bind": { "tables": ["accounts"], "inputMapping": { "accountId": "$row.$pk" } }, "inputSchema": { "type": "object", "required": ["accountId"], "properties": { "accountId": { "type": "number", "title": "账号 ID", "description": "accounts 表主键", "readOnly": true } } }, "entrypoint": { "type": "cli", "command": "account", "args": ["reveal-profile", "{{accountId}}"] } }, { "id": "open-browser", "label": "打开浏览器", "description": "用该账号持久化 Profile 直接打开系统 Chrome/Edge,仅供肉眼核对(不做登录判定)。与打开文件位置同为一点即开。", "placements": ["row"], "executionProfile": "sync", "interaction": "direct", "bind": { "tables": ["accounts"], "inputMapping": { "accountId": "$row.$pk" } }, "inputSchema": { "type": "object", "required": ["accountId"], "properties": { "accountId": { "type": "number", "title": "账号 ID", "description": "accounts 表主键", "readOnly": true } } }, "entrypoint": { "type": "cli", "command": "account", "args": ["open", "{{accountId}}"] } } ] }