comfy_add_node
Insert a new node into a ComfyUI workflow with a specified ID and class type. Set optional input values to configure the node.
Instructions
Add a node to a workflow.
Args: workflow: The workflow dictionary to modify node_id: ID for the new node (string, e.g. "8") class_type: ComfyUI node class type inputs: Optional input values for the node
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": "<workflow>",
"node_id": "<node_id>",
"class_type": "<class_type>"
},
"name": "comfy_add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | ||
| node_id | Yes | ||
| workflow | Yes | ||
| class_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |