List Node-RED flows
nodered_list_flowsList Node-RED flows and subflows with node counts and current deploy revision to retrieve flow IDs or get an overview before reading, updating, enabling, or deleting a flow.
Instructions
List the Node-RED add-on's flows (editor tabs) and subflows with node counts and the current deploy rev.
Finds the Node-RED add-on through the Supervisor, then reads
GET /flows (Node-RED Admin API v2) on http://127.0.0.1:46836.
Changes nothing.
Use when: getting flow ids before nodered_get_flow, nodered_update_flow,
nodered_set_flow_enabled or nodered_delete_flow, or an overview.
Not for: nodes inside a flow — use nodered_get_flow; HA automations —
use automations_list_automations.
Returns: {"addon_slug", "rev", "flows": [{id, label, disabled, node_count}], "subflows": [{id, name, node_count, instance_count}], "global_config_nodes", "total_nodes"} in editor tab order. Pass rev
as expected_rev to a write tool to refuse it if someone deploys first.
Errors: nodered_not_found, nodered_not_running,
nodered_unsupported_addon, nodered_unreachable,
nodered_auth_required, timeout, HTTP <status>, or a missing
SUPERVISOR_TOKEN.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nodered_list_flows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||