{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "tool-onf-connect-nodes",
  "title": "onf_connect_nodes",
  "section": "MCP tool reference",
  "description": "Connect named output/input socket IDs and validate the resulting graph before one revision-protected save. dryRun previews. Existing wires are preserved. Read relevant workspace/workflow/frame context first; after a material edit, update co",
  "kind": "mcp",
  "url": "/wiki/tool-onf-connect-nodes/",
  "markdown": "/wiki/tool-onf-connect-nodes/index.md",
  "json": "/wiki/tool-onf-connect-nodes/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_connect_nodes",
    "description": "Connect named output/input socket IDs and validate the resulting graph before one revision-protected save. dryRun previews. Existing wires are preserved. 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"
        },
        "allowInvalid": {
          "default": false,
          "description": "Allow saving an incomplete graph. Enabled nonmanual workflows still must validate.",
          "type": "boolean"
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120,
          "pattern": "^[A-Za-z0-9_.-]+$"
        },
        "sourceHandle": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120,
          "pattern": "^[A-Za-z0-9_.-]+$"
        },
        "target": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120,
          "pattern": "^[A-Za-z0-9_.-]+$"
        },
        "targetHandle": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120,
          "pattern": "^[A-Za-z0-9_.-]+$"
        },
        "edgeId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120,
          "pattern": "^[A-Za-z0-9_.-]+$"
        }
      },
      "required": [
        "workflowId",
        "expectedRevision",
        "source",
        "sourceHandle",
        "target",
        "targetHandle"
      ]
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": true,
      "idempotentHint": false,
      "openWorldHint": true
    },
    "source": {
      "file": "server/mcp-tools.ts",
      "line": 936
    }
  }
}
