# uip maestro flow nodes and uip maestro flow edges

> Syntax and options for `uip maestro flow nodes` and `uip maestro flow edges`, which create, configure, list, and delete nodes and edges in a `.flow` file.

A Flow is a graph. **Nodes** are the vertices (triggers, activities, connectors, agents); **edges** are the directed connections between them. The `uip maestro flow nodes` and `uip maestro flow edges` commands edit a `.flow` file in place — adding, configuring, listing, and deleting both.

This page also covers two companion command groups that edit the `.flow` file in the same way: [`variables`](#variables) and [`bindings`](#bindings).

## Synopsis

```
uip maestro flow nodes create     <file> <node-type> [-i <json>] [--position <x,y>] [--label <label>] [--id <id>] [--source <uuid>] [--parent <node-id>] [--metadata <file> --scripts <dir>]
uip maestro flow nodes configure  <file> <node-id> --detail <json>
uip maestro flow nodes list       <file> [--limit <n>] [--offset <n>]
uip maestro flow nodes delete     <file> <node-id>
uip maestro flow nodes provision  <file> [--node-id <node-id>]
uip maestro flow nodes schema get <file> --node-id <node-id>
uip maestro flow nodes schema set <file> --node-id <node-id> --schema <json|@file> [--discard-draft]

uip maestro flow edges create <file> <source-id> <target-id> [--source-port <port>] [--target-port <port>]
uip maestro flow edges list   <file> [--limit <n>] [--offset <n>]
uip maestro flow edges delete <file> <edge-id>

uip maestro flow format [file]
```

Honors [global options](./global-options.md). Exit codes follow the [standard contract](./exit-codes.md).

The singular group names `node`, `edge`, `variable`, and `binding` are aliases of `nodes`, `edges`, `variables`, and `bindings`. `add` is an alias of `create` in all four groups, and `remove` is an alias of `delete` in `variables` and `bindings`.

---

## uip maestro flow nodes create

Create a node in a `.flow` file. The node type must exist in the registry — use [`uip maestro flow registry search`](./uip-maestro-flow-registry.md) to discover valid `<node-type>` values.

### Arguments

- `<file>` *(required)* — path to the `.flow` file.
- `<node-type>` *(required)* — node type identifier (e.g. `core.trigger.manual`, `uipath.connector.slack.send-message`).

### Options

| Option | Description |
|---|---|
| `-i, --input <json>` | JSON object of input values to set on the node (e.g. `'{"script":"…"}'`). Must be a JSON object, not an array or scalar. For **connector** nodes (type `uipath.connector.*`), do **not** pass `--input` here — run [`nodes configure`](#uip-maestro-flow-nodes-configure) afterward. |
| `--position <x,y>` | Canvas position, e.g. `250,150`. Both x and y are required numbers. |
| `--label <label>` | Display label for the node. |
| `--id <id>` | Exact ID for the node, used as given. Without it, the ID is the camel-cased label plus a number. The ID must be unused in the flow. |
| `--source <uuid>` | Source UUID for node types whose definition declares a source dependency (populates `inputs.source`). For an inline agent node, pass the agent's `ProjectId`. For an agent resource node, pass the resource `id` from the parent inline agent's `resources[]`. An inline agent node needs no `--source` when the flow project holds exactly one inline agent folder. |
| `--parent <node-id>` | ID of the existing node that should contain this node — set when authoring a loop body whose containment can't be inferred from edges alone (typically the id of a `core.logic.loop` node). The ID of a `core.subflow` node puts the new node inside that subflow. |
| `--metadata <file>` | Non-catalog activities only. The activity metadata file (`<Name>.json`) generated by [`uip is activities metadata generate`](./uip-is-activities.md#uip-is-activities-metadata-generate). The node definition is built from this file instead of the registry, and `<node-type>` must be `uipath.connector.custom.<connector-key>.<slug>`. Requires `--scripts`. |
| `--scripts <dir>` | Non-catalog activities only. Directory that holds `<scriptRef>.js` for the action and for every lookup the metadata references. The script sources are embedded in the node. Requires `--metadata`. |

### Example

```bash
uip maestro flow nodes create invoice-flow.flow uipath.connector.slack.send-message --label "Notify team"
```

### Data shape (`--output json`)

```json
{
  "Code": "NodeAddSuccess",
  "Data": {
    "Node": { "id": "node_a1b2c3d4", "type": "uipath.connector.slack.send-message" },
    "DefinitionAdded": true,
    "BindingsCreated": 0,
    "VariableCount": 0
  }
}
```

`DefinitionAdded` is `true` on the first insertion of a given `node-type` — the corresponding entry in the `.flow` `definitions[]` array is created.

Passing only one of `--metadata` and `--scripts` fails the command.

The command fails with `ErrorCode: invalid_argument` and leaves the `.flow` file unchanged in these cases:

- `--id` is already in use, or is the ID of an `in` or `inout` variable of the same graph.
- `--id` is not a valid identifier, for example an ID with a space or a leading digit.
- `--parent` names a node that does not exist.

A node type that the tenant has not enabled fails with `ErrorCode: not_enabled`.

### Extract document nodes

The Extract document node (`uipath.ixp.extract-document-builder`) extracts data from a document with a schema that the node holds in `inputs.schemaDocument`. The node type is not listed by [`uip maestro flow registry`](./uip-maestro-flow-registry.md). To find out if the tenant can run it, use [`uip maestro flow extraction check`](./uip-maestro-flow-extraction.md).

```bash
uip maestro flow nodes create invoice-flow.flow uipath.ixp.extract-document-builder --label "Extract invoice"
```

The node is created with a default extraction schema that has no field groups, and with the processor it extracts through. `Data` also carries `IdpProcessor`:

| Field | Description |
|---|---|
| `ProcessorKey` | The key written to the node as `inputs.processorKey`. A key passed in `--input` is kept. |
| `ProcessorName` | The name of the processor. |
| `ResourceFile` | The processor resource file created under `resources/solution_folder/idpProcessor/extraction/` in the solution. |
| `ResourcePending` | Why no resource file was created. For a flow project outside a solution, the file is created when the project is packed inside one. |

A node created with `"processorReadOnly": true` in `--input` reads the processor of another node, so `Data` has no `IdpProcessor`.

Write the extraction schema with [`nodes schema set`](#uip-maestro-flow-nodes-schema-set).

---

## uip maestro flow nodes configure

Populate `inputs.detail` on an already-added node and create the workflow bindings it needs. Run this **after** `nodes create` for connector, managed HTTP, and file nodes (`core.action.file.read`, `core.action.file.create`). A file node's Orchestrator connection is bound only by `nodes configure`; a `connectionId` passed in `nodes create --input` is not bound.

### Arguments

- `<file>` *(required)* — path to the `.flow` file.
- `<node-id>` *(required)* — ID of the node to configure (find it with `nodes list`).

### Options

- `--detail <json>` *(required)* — configuration JSON. Shape depends on node type:

### Connector nodes (uipath.connector.*)

Get `method` and `endpoint` from `connectorMethodInfo` in the [`registry get`](./uip-maestro-flow-registry.md#uip-maestro-flow-registry-get) output.

- **Required**: `connectionId`, `folderKey`
- **Required for Generic activities** (manifest `activityType` `Generic`, such as `*.insert-record` or `*.list-records`): `method`, `endpoint`, and `objectName`. For other activities, `method` and `endpoint` default to the values of the activity, and a value passed in `--detail` overrides the default. Discover objects with [`uip is resources list`](./uip-is-resources.md) and `uip is resources describe`.
- **Optional**: `bodyParameters`, `queryParameters`, `pathParameters`, `filter`, `customFieldsRequestDetails`

A value that reads another node's output must use the `$vars.` prefix inside the `=js:` expression, for example `"=js:$vars.createEntityRecord1.output.Id"`. The bare form (`"=js:createEntityRecord1.output.Id"`) resolves to `undefined` at runtime.

```bash
uip maestro flow nodes configure invoice-flow.flow node_a1b2c3d4 --detail '{
  "connectionId": "b2c3d4e5-0000-0000-0000-000000000001",
  "folderKey":    "c3d4e5f6-0000-0000-0000-000000000001",
  "method":       "POST",
  "endpoint":     "/issues",
  "bodyParameters": { "summary": "Bug" }
}'
```

### Connector triggers and wait-for events (uipath.connector.trigger.*, uipath.connector.event.*)

A connector trigger starts the flow; a wait-for event node pauses the flow until the event fires. Both take the same detail shape.

- **Required**: `connectionId`, `folderKey`, `eventMode` (for example `polling` or `webhooks`)
- **Required for Generic triggers and events** (manifest `activityType` `GenericTrigger`, such as a Data Fabric `*.record-created`): `objectName`, the object to subscribe to
- **Optional**: `eventParameters`, `queryParameters`, `pathParameters`, `filter` (a structured filter tree, not a raw expression)

Discover `eventMode` with `uip is triggers describe <connector-key> <eventType> <object> --connection-id <uuid>`.

```bash
uip maestro flow nodes configure invoice-flow.flow node_trigger1 --detail '{"connectionId":"…","folderKey":"…","eventMode":"polling"}'
```

### File nodes (core.action.file.read, core.action.file.create)

Bind the Orchestrator connection the node uses to reach job attachments.

- **Required**: `connectionId` (a `uipath-uipath-orchestrator` connection UUID)
- **Optional**: `folderKey` (defaults to the connection's folder)

```bash
uip maestro flow nodes configure invoice-flow.flow node_file1 --detail '{"connectionId":"…"}'
```

### Managed HTTP nodes (core.action.http.v2)

Two authentication modes:

**Connector mode** (`authentication: "connector"`) — uses an Integration Service connection for auth:

- **Required**: `authentication`, `method`, `connectionId`, `folderKey`, `targetConnector`
- `method` ∈ `GET`, `POST`, `PUT`, `PATCH`, `DELETE`, `OPTIONS`, `HEAD`
- **Optional**: `url` (path appended to connector base URL), `headers`, `query`, `body`

```bash
uip maestro flow nodes configure invoice-flow.flow node_abc --detail '{
  "authentication":  "connector",
  "targetConnector": "uipath-microsoft-outlook365",
  "connectionId":    "…",
  "folderKey":       "…",
  "method":          "GET",
  "url":             "/me"
}'
```

**Manual mode** (`authentication: "manual"`) — no connector auth, provide the full URL and any auth headers yourself:

- **Required**: `authentication`, `method`, `url` (full URL)
- **Optional**: `headers`, `query`, `body` (string; can be an expression, e.g. `=js:({…})`)

```bash
uip maestro flow nodes configure invoice-flow.flow node_abc --detail '{
  "authentication": "manual",
  "method":         "GET",
  "url":            "https://api.example.com/data",
  "headers":        { "Authorization": "Bearer <token>" }
}'
```

### Data shape (`--output json`)

```json
{
  "Code": "NodeConfigureSuccess",
  "Data": {
    "NodeId": "node_a1b2c3d4",
    "BindingsCreated": 2,
    "DetailPopulated": true
  }
}
```

`<node-id>` can be a node inside a subflow.

When a connector metadata call fails, `Instructions` carries the HTTP status and the message of the service, and `ErrorCode` follows the status. For example, a connection that the tenant does not hold fails with `not_found`. HTTP 401 and 403 exit with code `2`, and HTTP 400 exits with code `3`.

---

## uip maestro flow nodes list

List all nodes in a `.flow` file, including the nodes inside subflows.

### Arguments

- `<file>` *(required)* — path to the `.flow` file.

### Options

| Option | Description |
|---|---|
| `-l, --limit <number>` | Number of rows to return, 1–10000. |
| `--offset <number>` | Number of rows to skip, 0–1000000. Default `0`. |

Without `--limit` or `--offset`, every row comes back. With either one, `Count` is the number of rows returned, and the response carries a `Pagination` object with:

- `Returned`
- `Limit`
- `Offset`
- `Total`
- `HasMore`

### Data shape (`--output json`)

```json
{
  "Code": "NodeListSuccess",
  "Data": {
    "Nodes": [
      { "id": "start",          "type": "core.trigger.manual" },
      { "id": "node_a1b2c3d4",  "type": "core.action.http.v2" }
    ],
    "Count": 2
  }
}
```

Each entry includes at minimum `id` and `type`; the service also attaches display metadata from the `.flow` `definitions[]` array.

---

## uip maestro flow nodes delete

Delete a node and everything it owns. Use `nodes list` to find the node ID. Deletes:

- Connected edges
- Orphaned bindings
- Orphaned definitions
- Node variables owned by the deleted node
- Variable updates owned by the deleted node

Deleting a `core.subflow` node also deletes its subflow, the nodes and subflows nested inside it, and the bindings that only those nodes use.

### Arguments

- `<file>` *(required)* — path to the `.flow` file.
- `<node-id>` *(required)* — ID of the node to delete.

### Data shape (`--output json`)

```json
{
  "Code": "NodeDeleteSuccess",
  "Data": {
    "DeletedNode":           { "id": "node_a1b2c3d4", "type": "core.action.http.v2" },
    "EdgesRemoved":          1,
    "BindingsRemoved":       0,
    "DefinitionsRemoved":    0,
    "VariablesRemoved":      0,
    "VariableUpdatesRemoved": 0
  }
}
```

---

## uip maestro flow nodes provision

Give an Extract document node (`uipath.ixp.extract-document-builder`) the processor it extracts through. `nodes create` and `nodes schema set` provision the node they write, so this command is for a node that has no processor, for example a node written by hand. [`uip maestro flow validate`](./uip-maestro-flow-validate.md) names this command when it finds such a node.

The command writes `inputs.processorKey` to the `.flow` file. When the project is inside a solution, it also writes the processor resource file. Commit both.

### Arguments

- `<file>` *(required)* — path to the `.flow` file.

### Options

| Option | Description |
|---|---|
| `--node-id <node-id>` | Provision only this node. Without it, the command provisions every Extract document node in the file that has no processor, including the nodes inside subflows. |

Nodes that read the processor of another node (`inputs.processorReadOnly`) and nodes that run a processor published to the tenant are left unchanged.

### Example

```bash
uip maestro flow nodes provision invoice-flow.flow --node-id extractDocument1
```

### Data shape (`--output json`)

```json
{
  "Code": "NodeProvisionSuccess",
  "Data": {
    "Provisioned": [
      {
        "NodeId": "extractDocument1",
        "ProcessorKey": "11111111-2222-3333-4444-555555555555",
        "ProcessorName": "Extract invoices",
        "ResourceFile": "resources/solution_folder/idpProcessor/extraction/Extract_invoices.json"
      }
    ]
  }
}
```

An entry carries `ResourcePending` instead of `ResourceFile` when no resource file was created, with the reason. `Data.AlreadyProvisioned` lists the IDs of the nodes that already named a processor.

The command fails with `ErrorCode: not_found` when `--node-id` matches no Extract document node, or when the flow has no Extract document node.

---

## uip maestro flow nodes schema get

Read the extraction schema of an Extract document node. The command prints the document as stored, so you can edit it and write it back with [`nodes schema set`](#uip-maestro-flow-nodes-schema-set). No login is required.

### Arguments

- `<file>` *(required)* — path to the `.flow` file.

### Options

- `--node-id <node-id>` *(required)* — ID of the Extract document node to read.

### Data shape (`--output json`)

```json
{
  "Code": "NodeSchemaGetSuccess",
  "Data": {
    "NodeId": "extractDocument1",
    "Schema": {
      "prompt": "Extract the invoice header and every line item.",
      "outputSchema": { "type": "object", "properties": {}, "$defs": {} }
    },
    "HasDraft": false
  }
}
```

| Field | Description |
|---|---|
| `Schema` | The stored document, with its own key casing. |
| `HasDraft` | `true` when the node carries an unsaved Schema Editor draft from Studio Web. `DraftIssueMessages` then lists the issues of the draft. |
| `ProcessorKey` | The processor the node names, when it names one. |

A `--node-id` that matches no node, or a node with no `inputs.schemaDocument`, fails with `ErrorCode: not_found`. A node that is not an Extract document node fails with `ErrorCode: invalid_argument`.

---

## uip maestro flow nodes schema set

Replace the extraction schema of an Extract document node. The document is the whole schema, not a patch. No login is required.

### Arguments

- `<file>` *(required)* — path to the `.flow` file.

### Options

| Option | Description |
|---|---|
| `--node-id <node-id>` | *(required)* ID of the Extract document node to write. |
| `--schema <json>` | *(required)* The schema document as a JSON string, or `@file.json` to read it from a file. |
| `--discard-draft` | Replace the schema even when the node carries an unsaved Schema Editor draft. The draft is deleted. |

### Schema document

The document is a JSON object with two members:

- `prompt` — the overall extraction instructions, a string.
- `outputSchema` — a JSON Schema object. Each entry of `outputSchema.properties` is a field group. An array of objects is a group that repeats, and a plain object is a group that occurs once.

These rules apply:

- A group named `Invoice > Line Items` is nested under the group named `Invoice`.
- Names are at most 64 characters. For a nested group, the limit applies to the whole `Parent > Child` path.
- Instructions are at most 4096 characters.
- A `config` member is ignored. The model settings belong to the node, at `inputs.modelConfig`.

Annotations and evaluator settings are stored against the `x-uipath-field-group-id` and `x-uipath-field-id` of each entry. Read the schema with `nodes schema get` and keep these IDs on the entries you edit, including the entries you rename. An entry without an ID takes the ID of the entry of the same name that it replaces. Otherwise it gets a new ID.

### Example

```bash
uip maestro flow nodes schema set invoice-flow.flow --node-id extractDocument1 --schema @taxonomy.json
```

### Data shape (`--output json`)

```json
{
  "Code": "NodeSchemaSetSuccess",
  "Data": {
    "NodeId": "extractDocument1",
    "Groups": 2,
    "Fields": 7,
    "FieldTypes": 6,
    "GroupIdsPreserved": 2,
    "GroupIdsMinted": 0,
    "FieldIdsPreserved": 6,
    "FieldIdsMinted": 1,
    "DraftDiscarded": false
  }
}
```

| Field | Description |
|---|---|
| `Groups`, `Fields`, `FieldTypes` | Number of field groups, fields, and field types written. |
| `GroupIdsPreserved`, `FieldIdsPreserved` | Entries that kept their ID. |
| `GroupIdsMinted`, `FieldIdsMinted` | Entries that got a new ID. |
| `DraftDiscarded` | `true` when `--discard-draft` deleted a Schema Editor draft. |
| `ProcessorKey` | The processor the node names. A node with no processor gets one, as with `nodes provision`. |
| `ResourceFile`, `ResourcePending` | The processor resource file created for a node that had no processor, or why none was created. |
| `ProcessorSync` | Says if `uip solution pack` rebuilds the processor from this node. For a node that reads the processor of another node, or runs a processor published to the tenant, the schema written here does not reach the deployed extraction. |

### Failures

| Case | Result | `ErrorCode` | Exit code |
|---|---|---|---|
| The document has no `prompt` string or no `outputSchema` object (`Message: "Invalid schema document"`) | `ValidationError` | `invalid_argument` | `3` |
| The document breaks a schema rule or a limit (`Message: "Schema document failed validation"`). `Data.Issues` lists each problem as `{ Path, Message }`. | `ValidationError` | `invalid_argument` | `3` |
| The document has the `{ taxonomy, fieldTypes }` shape (`Message: "Legacy schema document shape"`) | `ValidationError` | `invalid_argument` | `3` |
| The inline `--schema` value is not valid JSON | `Failure` | `invalid_argument` | `1` |
| The `@file` path does not exist | `Failure` | `not_found` | `1` |
| The node carries an unsaved Schema Editor draft and `--discard-draft` is not passed | `Failure` | `invalid_argument` | `1` |

---

## uip maestro flow edges create

Create an edge between two nodes. Both nodes must be in the same graph: the root of the flow, or the same subflow. An edge between two nodes of a subflow is written to that subflow.

### Arguments

- `<file>` *(required)* — path to the `.flow` file.
- `<source-id>` *(required)* — ID of the source node.
- `<target-id>` *(required)* — ID of the target node.

### Options

- `--source-port <port>` — source port name. Defaults to the port the node's definition marks as default, else `output`, else the node's only flow port. A node with several flow ports and no default, such as a decision, needs `--source-port` (for example `--source-port true`).
- `--target-port <port>` — target port name. Defaults to the port the node's definition marks as default, else `input`, else the node's only flow port.

Running the command again with the same arguments returns the existing edge with `Code: "EdgeAlreadyExists"` and writes a warning to stderr.

### Data shape (`--output json`)

```json
{
  "Code": "EdgeAddSuccess",
  "Data": {
    "Edge": {
      "id":         "edge_a1b2c3d4",
      "source":     "Node_1",
      "target":     "Node_2",
      "sourcePort": "output",
      "targetPort": "input"
    }
  }
}
```

---

## uip maestro flow edges list

List all edges in a `.flow` file.

```
uip maestro flow edges list <file> [--limit <n>] [--offset <n>]
```

### Options

| Option | Description |
|---|---|
| `-l, --limit <number>` | Number of rows to return, 1–10000. |
| `--offset <number>` | Number of rows to skip, 0–1000000. Default `0`. |

Without `--limit` or `--offset`, every row comes back. With either one, `Count` is the number of rows returned, and the response carries a `Pagination` object with:

- `Returned`
- `Limit`
- `Offset`
- `Total`
- `HasMore`

```json
{
  "Code": "EdgeListSuccess",
  "Data": {
    "Edges": [
      { "id": "edge_a1b2c3d4", "source": "Node_1", "target": "Node_2" }
    ],
    "Count": 1
  }
}
```

---

## uip maestro flow edges delete

Deletes a single edge by ID. Use `edges list` to find the ID.

### Arguments

- `<file>` *(required)* — path to the `.flow` file.
- `<edge-id>` *(required)* — ID of the edge to delete.

### Data shape (`--output json`)

```json
{
  "Code": "EdgeDeleteSuccess",
  "Data": {
    "DeletedEdge": { "id": "edge_a1b2c3d4", "source": "Node_1", "target": "Node_2" }
  }
}
```

---

## Variables

The `variables` group edits the `variables` subtree of a `.flow` file.

### uip maestro flow variables

```
uip maestro flow variables create <file> <variable-id> -d, --direction <direction> [-t, --type <type>] [--default-value <val>] [--description <text>] [--schema <json>] [--sub-type <type>] [--trigger-node-id <nodeId>]
uip maestro flow variables list   <file> [--limit <n>] [--offset <n>]
uip maestro flow variables delete <file> <variable-id>
```

- `direction` ∈ `in`, `out`, `inout` (required).
- `type` ∈ `string`, `number`, `boolean`, `object`, `array`, `file` (default `string`).
- `--default-value` is parsed per `--type` — `object`/`array` values must be valid JSON of the matching shape.
- `--schema` must be a JSON object (e.g. `'{"type":"string"}'`).
- `--trigger-node-id <nodeId>` — the trigger node an **input** variable belongs to. Defaults to the flow's only trigger node; required when the flow has more than one entry point.
- `create` fails when an `in` or `inout` variable ID is also the ID of a node in the root of the flow. An `out` variable can share its ID with a node.

`list` takes `--limit` and `--offset`, as [`nodes list`](#uip-maestro-flow-nodes-list) does.

Data shapes: `VariableAddSuccess` (`Data.Variable`) for `create`, `VariableListSuccess` (`Data.Variables[]`, `Count`), `VariableRemoveSuccess` (`Data.DeletedVariable`) for `delete`.

---

## Bindings

Bindings declare the external resources a Flow needs at publish/deploy time (a target process, an agent, a connection, a queue, …) and which node property they wire into.

```
uip maestro flow bindings create <file> <name> <resource> <default-value> [--resource-key <key>] [--property-attribute <attr>] [--resource-sub-type <type>]
uip maestro flow bindings list   <file> [--limit <n>] [--offset <n>]
uip maestro flow bindings delete <file> <resource-key>
```

- `<resource>` is a resource type, such as `connection`, `queue`, `process`, or `bucket`. Run `uip maestro flow bindings create --help` for the full list.
- `--property-attribute` is the target node property the binding populates (e.g. `name`, `folderPath`, `connection`).
- `--resource-sub-type` provides sub-classification (e.g. `Agent`, `Process`).
- `bindings delete` deletes all bindings with the given resource key, not a single entry by ID. `list` takes `--limit` and `--offset`, as [`nodes list`](#uip-maestro-flow-nodes-list) does.

Data shapes: `BindingAddSuccess` (`Data.Binding`) for `create`, `BindingListSuccess` (`Data.Bindings[]`, `Count`), `BindingRemoveSuccess` (`Data.DeletedBindings[]`, `Count`) for `delete`.

---

## uip maestro flow format

Auto-layout: reposition nodes in a `.flow` file to remove overlaps and arrange the graph cleanly.

```
uip maestro flow format [file]
```

`[file]` is the path to a `.flow` file or to a project directory. Default: the current directory. For a directory, the command formats the same `.flow` file that [`uip maestro flow validate`](./uip-maestro-flow-validate.md) resolves.

Data shape: `Code: "FlowFormat"`, `Data: { File, NodesTotal, EdgesTotal, NodesRepositioned, NodesResized, SubflowsTidied, VariableCount }`.

The command fails with exit code `1` and `Message: "Failed to tidy flow"` when the directory has no `.flow` file. It fails the same way, with `ErrorCode: invalid_argument`, when the directory has several `.flow` files and none is the main file of the project. `Instructions` lists the files.

## See also

- [`uip maestro flow registry`](./uip-maestro-flow-registry.md) — discover node types
- [`uip maestro flow validate`](./uip-maestro-flow-validate.md) — validate the edited `.flow`
- [`uip maestro flow init`](./uip-maestro-flow-init.md)
- [Flow overview](./uip-maestro-flow.md)
