add_node
Adds a node to a dynamic ComfyUI workflow and returns its new node ID for chaining further steps.
Instructions
Add a node to a dynamic workflow. Returns the new node id (e.g. "1", "2").
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": {
"workflow_id": "<workflow_id>",
"class_type": "<class_type>"
},
"name": "add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | Node inputs (literal values; use connect_nodes for links) | |
| class_type | Yes | ComfyUI node class (e.g. CheckpointLoaderSimple, CLIPTextEncode) | |
| workflow_id | Yes | Workflow id from create_workflow |