Skip to content

workflow_actions ​

GET /workflow/actions

口径:本页参数表最后核对于 v23.9(2026-10-27)。v24.0~v24.8 的改动(add_video 的 timeline_start/timeline_end 别名、apply_edl 批内失败计数、resource/search 的 limit 与 count 等价、/agent/route 类型分诊等)以 llms-full.txt 与 GET /agent/capabilities 为准。

接口说明 ​

返回工作流允许调用的全部动作清单和当前限制,方便大模型先取一遍再编排步骤。只读接口,不创建草稿。

请求参数 ​

无。

示例 ​

bash
curl https://your-domain.example/api/workflow/actions \
  -H "X-API-Key: $VECTCUT_API_KEY"

返回:

json
{
  "success": true,
  "output": {
    "actions": [
      {"action": "create_draft", "kind": "draft", "summary": "创建空白剪映草稿", "requires": []},
      {"action": "add_image", "kind": "draft", "summary": "添加图片片段", "requires": ["image_url"]}
    ],
    "max_steps": 300,
    "max_loop_iterations": 200,
    "max_total_iterations": 2000,
    "max_execution_seconds": 180
  },
  "error": ""
}

kind 取值:draft 会改动草稿,query 只读草稿,utility 是纯计算或搜索。

个人自建服务