{ "_comment": "形状参考:Action 表单 file/directory 用 pathRoot 指定原生对话框起始目录(相对技能数据根)。省略则宿主默认 {skill_data}/input。完整契约见 references/ACTIONS.md「本地路径选择与 pathRoot」。勿与宿主导入面板(replaces:import)混用本示例。", "schemaVersion": 1, "skill": "query-payslip-default", "actions": [ { "id": "import-pack", "label": "导入数据包", "description": "从本技能输入目录子文件夹选择 JSON 并写入业务表。", "placements": ["toolbar", "agent"], "executionProfile": "sync", "interaction": "form", "bind": { "tables": ["business_items"] }, "inputSchema": { "type": "object", "required": ["file"], "properties": { "file": { "type": "string", "title": "数据包文件", "description": "请选择 input/数据包/ 下的 JSON。", "format": "file", "display_type": "file", "pathRoot": "input/数据包" } } }, "entrypoint": { "type": "cli", "command": "import-pack", "args": ["--file", "{{file}}"] }, "steps": [{ "when": "afterSuccess", "do": "reloadTable" }] } ] }