duddy_plan_workflow
Plan ComfyUI canvas changes as granular, ordered steps, then send the plan to the user for approval before any node, connection, or widget is created or modified.
Instructions
【第一步·只规划,绝不动手】把你想在画布上做的事写成一个分步计划,推送给用户的 ComfyUI 界面,等待用户点击「同意」。
硬性要求: · 每个 step 只做一件事,粒度要细(一个节点一步、一条连线一步) · create_node 必须给 ref 别名,后续 connect/set_widget 用别名引用,不要猜 node_id · connect 用 from_ref/from_slot → to_ref/to_slot · 每步给 title(人类可读)和 why(为什么需要这一步)
调用后你会拿到 plan_id 和 state=proposed。此时什么都不会发生,直到用户在弹窗里点同意。 直接把 narration 字段念给用户听,然后停下来等。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"summary": "<summary>",
"steps": "<steps>"
},
"name": "duddy_plan_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | 风险提示/前置条件,可空 | |
| steps | Yes | 按执行顺序排列的步骤 | |
| title | Yes | 计划标题,一句话,人类可读 | |
| summary | Yes | 这个计划要达成什么,2-3 句 |