48 lines
1.7 KiB
JSON
48 lines
1.7 KiB
JSON
{
|
||
"_comment": "形状参考:Action Lookup 分页勾选小表。仍是 display_type=lookup,加 presentation=paged_table。完整契约见 references/ACTIONS.md「分页勾选小表」。不要新造 display_type。skill_cli 的 stdout 须为一行 {items,total};0 条也成功退出。列表命令不要在 main.py 入口加载整包 jiangchang_skill_core 或 Playwright。",
|
||
"schemaVersion": 1,
|
||
"skill": "your-skill-slug",
|
||
"actions": [
|
||
{
|
||
"id": "import-picked",
|
||
"label": "导入文章",
|
||
"description": "从已生成文章里勾选要导入的,可翻页。",
|
||
"placements": ["toolbar"],
|
||
"executionProfile": "sync",
|
||
"interaction": "form",
|
||
"bind": {
|
||
"tables": ["articles"],
|
||
"selectionMode": "none"
|
||
},
|
||
"entrypoint": {
|
||
"type": "cli",
|
||
"command": "import-articles",
|
||
"args": ["--ids", "{{articleIds}}"]
|
||
},
|
||
"inputSchema": {
|
||
"type": "object",
|
||
"required": ["articleIds"],
|
||
"properties": {
|
||
"articleIds": {
|
||
"type": "string",
|
||
"title": "选择文章",
|
||
"description": "勾选要导入的文章。可翻页,可本页全选。",
|
||
"display_type": "lookup",
|
||
"lookup": {
|
||
"source": "skill_cli",
|
||
"skill": "geo-generate-article-all",
|
||
"command": "title",
|
||
"args": ["list-generated-json", "--platform", "toutiaohao"],
|
||
"value_column": "id",
|
||
"label_column": "title",
|
||
"multiple": true,
|
||
"presentation": "paged_table",
|
||
"page_size": 10
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
]
|
||
}
|