主题
get_workflow_preset
POST /workflow/presets/get
口径:本页参数表最后核对于 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 为准。
接口说明
按名称读取一个预设的完整内容,包括 steps、inputs 和 description。只读接口。
请求参数
| 参数 | 必填 | 说明 |
|---|---|---|
name | 是 | 预设名 |
示例
json
{
"name": "image_caption"
}返回:
json
{
"success": true,
"output": {
"name": "image_caption",
"description": "封面加标题",
"inputs": {"cover": "https://example.com/default.png", "title": "默认标题"},
"steps": [
{"id": "create", "action": "create_draft", "params": {}},
{"id": "img", "action": "add_image", "params": {"image_url": "${cover}", "start": 0, "end": 5}}
],
"updated_at": "2026-01-01T00:00:00Z"
},
"error": ""
}预设不存在时返回 success: false。