Skip to content
OpenNodeFlow.DocsOpen beta ↗
Agent guide ↗
Docs/MCP tool reference

onf_create_workflow

Create a workflow in a workspace. Defaults to disabled/manual and an empty editable graph. Pass node/edge arrays to create a complete graph in one call. Read relevant workspace/workflow/frame context first; after a material edit, update con

23 Oct 2026 · 1 min read
Markdown ↗JSON ↗

Create a workflow in a workspace. Defaults to disabled/manual and an empty editable graph. Pass node/edge arrays to create a complete graph in one call. 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 · All MCP tools

Inputs#

FieldRequiredContract
workspaceIdYesstring
nameYesstring
descriptionNostring; default ""
nodesNoArray of object
edgesNoArray of object
framesNoArray of object
enabledNoboolean; default false
triggerNoobject; default {"kind":"manual"}

Exact input schema#

json
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "pattern": "^[A-Za-z0-9_.-]+$"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "description": {
      "default": "",
      "type": "string",
      "maxLength": 10000
    },
    "nodes": {
      "default": [],
      "maxItems": 500,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "variableBinding": {
            "type": "object",
            "properties": {
              "variableId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "workspaceId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "type": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "typeVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "variableId",
              "workspaceId",
              "name",
              "type"
            ],
            "additionalProperties": false
          },
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "definitionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "definitionVersion": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "label": {
            "type": "string",
            "maxLength": 120
          },
          "hiddenInputs": {
            "maxItems": 1000,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          },
          "hiddenOutputs": {
            "maxItems": 1000,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          },
          "hiddenInputWires": {
            "maxItems": 1000,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          },
          "position": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y"
            ]
          },
          "config": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "inputs": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "trigger": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "manual",
                  "webhook",
                  "schedule",
                  "poll",
                  "websocket"
                ]
              },
              "websocket": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "maxLength": 8192
                  },
                  "urlSecret": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "protocols": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    }
                  },
                  "subscribeSecret": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "heartbeatSecret": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "heartbeatIntervalSeconds": {
                    "type": "integer",
                    "minimum": 5,
                    "maximum": 3600
                  },
                  "idleTimeoutSeconds": {
                    "type": "integer",
                    "minimum": 5,
                    "maximum": 86400
                  },
                  "connectTimeoutMs": {
                    "type": "integer",
                    "minimum": 100,
                    "maximum": 30000
                  },
                  "maxMessageBytes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1048576
                  },
                  "maxQueueMessages": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "maxQueueBytes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 4194304
                  },
                  "maxPendingRuns": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "reconnectMinMs": {
                    "type": "integer",
                    "minimum": 100,
                    "maximum": 30000
                  },
                  "reconnectMaxMs": {
                    "type": "integer",
                    "minimum": 100,
                    "maximum": 300000
                  }
                }
              },
              "intervalSeconds": {
                "type": "integer",
                "minimum": 5,
                "maximum": 31536000
              },
              "cron": {
                "type": "string",
                "maxLength": 200
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "enabled"
            ]
          }
        },
        "required": [
          "id",
          "definitionId",
          "definitionVersion",
          "position",
          "config",
          "inputs"
        ]
      }
    },
    "edges": {
      "default": [],
      "maxItems": 2000,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "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_.-]+$"
          },
          "reroutePoints": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number"
                },
                "y": {
                  "type": "number"
                }
              },
              "required": [
                "x",
                "y"
              ]
            }
          },
          "label": {
            "type": "string",
            "maxLength": 80
          }
        },
        "required": [
          "id",
          "source",
          "sourceHandle",
          "target",
          "targetHandle"
        ]
      }
    },
    "frames": {
      "maxItems": 500,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "label": {
            "type": "string",
            "maxLength": 200
          },
          "position": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y"
            ]
          },
          "width": {
            "type": "number",
            "minimum": 160,
            "maximum": 100000
          },
          "height": {
            "type": "number",
            "minimum": 96,
            "maximum": 100000
          },
          "color": {
            "type": "string",
            "maxLength": 30
          },
          "nodeIds": {
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "^[A-Za-z0-9_.-]+$"
            }
          },
          "lockAutoArrange": {
            "description": "True excludes this frame and all member positions from UI/MCP Arrange. Omitted/false allows arrangement; manual edits remain available.",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "label",
          "position",
          "width",
          "height",
          "nodeIds"
        ]
      }
    },
    "enabled": {
      "default": false,
      "type": "boolean"
    },
    "trigger": {
      "default": {
        "kind": "manual"
      },
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "manual",
            "webhook",
            "schedule",
            "poll",
            "websocket"
          ]
        },
        "websocket": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "maxLength": 8192
            },
            "urlSecret": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "protocols": {
              "maxItems": 10,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              }
            },
            "subscribeSecret": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "heartbeatSecret": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "heartbeatIntervalSeconds": {
              "type": "integer",
              "minimum": 5,
              "maximum": 3600
            },
            "idleTimeoutSeconds": {
              "type": "integer",
              "minimum": 5,
              "maximum": 86400
            },
            "connectTimeoutMs": {
              "type": "integer",
              "minimum": 100,
              "maximum": 30000
            },
            "maxMessageBytes": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1048576
            },
            "maxQueueMessages": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "maxQueueBytes": {
              "type": "integer",
              "minimum": 1,
              "maximum": 4194304
            },
            "maxPendingRuns": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "reconnectMinMs": {
              "type": "integer",
              "minimum": 100,
              "maximum": 30000
            },
            "reconnectMaxMs": {
              "type": "integer",
              "minimum": 100,
              "maximum": 300000
            }
          }
        },
        "intervalSeconds": {
          "type": "integer",
          "minimum": 5,
          "maximum": 31536000
        },
        "cron": {
          "type": "string",
          "maxLength": 200
        }
      },
      "required": [
        "kind"
      ]
    }
  },
  "required": [
    "workspaceId",
    "name"
  ]
}

MCP annotations#

  • readOnlyHint: false
  • destructiveHint: true
  • idempotentHint: false
  • openWorldHint: true

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

Calling this tool#

Use the exact registered name onf_create_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 and agent safety for transport, permissions and uncertain-action recovery.

Source provenance

Reviewed against maintained source and topic documentation on 23 October 2026. This is a source snapshot; installed versions and provider access may differ.

  • server/mcp-tools.ts
Type to search the documentation.
↑ ↓ to navigate · Enter to openAgent map ↗