Update a Node-RED flow (tab)
nodered_update_flowReplace a single Node-RED flow and its nodes by id while leaving other tabs untouched. Read it first, edit, then send the full flow object back. Requires write access enabled.
Instructions
Replace a single Node-RED flow (one tab) and its nodes by id, leaving other tabs untouched. Read it first with nodered_get_flow, edit, then send the whole flow object back. Requires HA_ALLOW_WRITE=true and HA_ALLOW_CONFIG_WRITE=true.
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": {
"id": "<id>",
"flow": "<flow>"
},
"name": "nodered_update_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Flow (tab) id to update. | |
| flow | Yes | Full flow object for this tab: { id, label, nodes: [...], configs?: [...] }. | |
| instance_id | No | Optional: the instance you mean (as listed by vomehome_list_instances). When given, the call is refused if this session is targeting a different home, instead of answering from it. |