# onf_arrange_workflow

Arrange the saved canvas using the same shared layered/frame layout as the UI, with exact pinned definition socket geometry and fallback node sizes (no live browser measurements). Honors frame lockAutoArrange: true by preserving frame bound

Canonical URL: https://opennodeflow.dev/wiki/tool-onf-arrange-workflow/
JSON reference: https://opennodeflow.dev/wiki/tool-onf-arrange-workflow/index.json
Source snapshot: 2026-10-23

Arrange the saved canvas using the same shared layered/frame layout as the UI, with exact pinned definition socket geometry and fallback node sizes (no live browser measurements). Honors frame lockAutoArrange: true by preserving frame bounds and member positions and placing movable content clear of them. Changes unlocked node positions/frame bounds and clears stale absolute wire routes when an endpoint moves; preserves wire identities/sockets, pins, configuration, entry states and execution data. expectedRevision is required even for dryRun; does not run or enable automation. Read relevant workspace/workflow/frame context first; after a material edit, update concise purpose/wiring/operating notes with onf_update_context_documentation using its independent revision.

[Agent workflow authoring](/wiki/mcp-workflow-authoring/) · [All MCP tools](/wiki/mcp-tools/)

## Inputs

| Field | Required | Contract |
| --- | --- | --- |
| `workflowId` | Yes | string |
| `expectedRevision` | Yes | Revision returned by get_workflow/get_graph. Stale revisions fail without overwriting. |
| `dryRun` | No | boolean; default false |

## Exact input schema


```json
{
  "type": "object",
  "properties": {
    "workflowId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "pattern": "^[A-Za-z0-9_.-]+$"
    },
    "expectedRevision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Revision returned by get_workflow/get_graph. Stale revisions fail without overwriting."
    },
    "dryRun": {
      "default": false,
      "type": "boolean"
    }
  },
  "required": [
    "workflowId",
    "expectedRevision"
  ]
}
```


## MCP annotations

- `readOnlyHint`: `false`
- `destructiveHint`: `false`
- `idempotentHint`: `false`
- `openWorldHint`: `true`

Annotations describe tool behavior; they are not an authorization boundary.

## Calling this tool

Use the exact registered name `onf_arrange_workflow` through a compatible MCP client. Start with discovery and read the current object before a change. Pass the documented revision or version guards where required. A JSON Schema default is not a substitute for reading the tool contract.

See [connection setup](/wiki/mcp-connect/) and [agent safety](/wiki/agent-safety/) for transport, permissions and uncertain-action recovery.

---

## Documentation provenance

- `server/mcp-tools.ts`

This page describes maintained source, not a live inventory or an authorization to perform actions.
