Files
skill-template/assets/examples/lookup-paged-table.action.example.json
chendelian cef7e366cf
All checks were successful
技能自动化发布 / release (push) Successful in 7s
沉淀 Lookup 分页勾选小表契约,避免再造一套控件
2026-09-30 11:21:37 +08:00

48 lines
1.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"_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
}
}
}
}
}
]
}