fix: 更新SKILL.md和actions.json,添加RPA功能声明和action

This commit is contained in:
chenfuqiang
2026-09-14 15:30:16 +08:00
parent c5103e2650
commit 2ad0a3ed94
2 changed files with 191 additions and 2 deletions

View File

@@ -411,6 +411,183 @@
"command": "config-path",
"args": []
}
},
{
"id": "extract-invoices",
"label": "提取发票信息",
"description": "从网站自动提取发票信息,需要提供登录凭证和浏览器配置目录。",
"placements": ["agent"],
"executionProfile": "sync",
"interaction": "form",
"entrypoint": {
"type": "cli",
"command": "extract-invoices",
"args": [
"--username", "{{username}}",
"--password", "{{password}}",
"--profile-dir", "{{profileDir}}",
"--headless", "{{headless}}",
"--detail-mode", "{{detailMode}}"
]
},
"inputSchema": {
"type": "object",
"properties": {
"username": {
"type": "string",
"title": "用户名",
"description": "网站登录用户名"
},
"password": {
"type": "string",
"title": "密码",
"description": "网站登录密码"
},
"profileDir": {
"type": "string",
"title": "浏览器配置目录",
"description": "通过account-manager获取的浏览器配置目录路径"
},
"headless": {
"type": "boolean",
"title": "无头模式",
"description": "是否使用无头模式(生产不建议)",
"default": false
},
"detailMode": {
"type": "boolean",
"title": "详细模式",
"description": "是否提取详细信息",
"default": false
}
},
"required": ["username", "password", "profileDir"]
}
},
{
"id": "test-rpa-connection",
"label": "测试RPA连接",
"description": "测试RPA连接和登录功能。",
"placements": ["agent", "skill-detail"],
"executionProfile": "sync",
"interaction": "form",
"entrypoint": {
"type": "cli",
"command": "test-rpa-connection",
"args": [
"--username", "{{username}}",
"--password", "{{password}}",
"--profile-dir", "{{profileDir}}"
]
},
"inputSchema": {
"type": "object",
"properties": {
"username": {
"type": "string",
"title": "用户名",
"description": "网站登录用户名"
},
"password": {
"type": "string",
"title": "密码",
"description": "网站登录密码"
},
"profileDir": {
"type": "string",
"title": "浏览器配置目录",
"description": "通过account-manager获取的浏览器配置目录路径"
}
},
"required": ["username", "password", "profileDir"]
}
},
{
"id": "list-rpa-invoices",
"label": "查询RPA提取记录",
"description": "查询RPA提取的发票数据记录。",
"placements": ["agent", "skill-detail"],
"executionProfile": "sync",
"entrypoint": {
"type": "cli",
"command": "list-rpa-invoices",
"args": [
"--limit", "{{limit}}",
"--batch-id", "{{batchId}}",
"--username", "{{username}}",
"--status", "{{status}}"
]
},
"inputSchema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"title": "条数",
"description": "返回条数,默认20",
"default": 20
},
"batchId": {
"type": "string",
"title": "批次ID",
"description": "按批次ID筛选"
},
"username": {
"type": "string",
"title": "用户名",
"description": "按用户名筛选"
},
"status": {
"type": "string",
"title": "状态",
"description": "按状态筛选",
"enum": ["extracted", "processed", "error"]
}
}
}
},
{
"id": "show-rpa-invoice",
"label": "查看RPA提取详情",
"description": "查看RPA提取的发票数据详情。",
"placements": ["row"],
"executionProfile": "sync",
"bind": {
"tables": ["rpa_invoices"],
"inputMapping": {
"recordId": "{{id}}"
}
},
"entrypoint": {
"type": "cli",
"command": "show-rpa-invoice",
"args": [
"--record-id", "{{recordId}}"
]
},
"inputSchema": {
"type": "object",
"properties": {
"recordId": {
"type": "number",
"title": "记录ID",
"description": "RPA提取记录ID"
}
},
"required": ["recordId"]
}
},
{
"id": "rpa-invoice-stats",
"label": "RPA提取统计",
"description": "获取RPA提取的统计信息。",
"placements": ["agent", "skill-detail"],
"executionProfile": "sync",
"entrypoint": {
"type": "cli",
"command": "rpa-invoice-stats",
"args": []
}
}
]
}