add_node
Add a node using a known nodeType from the editor or get_node_definitions. Unknown types can be found with list_available_nodes. Set node data with config. This edits the graph without running generation.
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": {
"workspaceId": "<workspaceId>",
"workflowId": "<workflowId>",
"nodeType": "<nodeType>"
},
"name": "add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional custom label for the node | |
| config | No | Node configuration/data values | |
| nodeType | Yes | Type of node to add (e.g., constant_text, media_image, llm_text) | |
| workflowId | Yes | Workflow ID | |
| workspaceId | Yes | The workspace ID |