{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "tool-onf-arrange-workflow",
  "title": "onf_arrange_workflow",
  "section": "MCP tool reference",
  "description": "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",
  "kind": "mcp",
  "url": "/wiki/tool-onf-arrange-workflow/",
  "markdown": "/wiki/tool-onf-arrange-workflow/index.md",
  "json": "/wiki/tool-onf-arrange-workflow/index.json",
  "headings": [
    {
      "id": "inputs",
      "title": "Inputs",
      "depth": 2
    },
    {
      "id": "exact-input-schema",
      "title": "Exact input schema",
      "depth": 2
    },
    {
      "id": "mcp-annotations",
      "title": "MCP annotations",
      "depth": 2
    },
    {
      "id": "calling-this-tool",
      "title": "Calling this tool",
      "depth": 2
    }
  ],
  "sources": [
    "server/mcp-tools.ts"
  ],
  "contract": {
    "name": "onf_arrange_workflow",
    "description": "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.",
    "inputSchema": {
      "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"
      ]
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": true
    },
    "source": {
      "file": "server/mcp-tools.ts",
      "line": 798
    }
  }
}
