build_node
Generate valid ComfyUI node JSON with inputs and outputs for workflow assembly. Set custom inputs or use defaults and placeholders for connections.
Instructions
Generate valid node JSON with proper inputs/outputs that can be assembled into a workflow. Provide inputs to override defaults, or leave empty to get a node with default values and placeholders for connections.
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": {
"nodeType": "<nodeType>",
"nodeId": "<nodeId>"
},
"name": "build_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | Input values to set. For connections, use [nodeId, slotIndex] format. Omitted inputs use defaults. | |
| nodeId | Yes | The node ID for this node in the workflow (e.g., '1', '5') | |
| nodeType | Yes | The node class_type (e.g., 'KSampler', 'CheckpointLoaderSimple') |