{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "tool-onf-extract-subflow",
  "title": "onf_extract_subflow",
  "section": "MCP tool reference",
  "description": "Extract selected nodes from a saved workflow into a new typed subflow. Creates the library asset; returns replacement workflow draft without saving parent. Review the returned draft; save with update workflow only if it contains no redactio",
  "kind": "mcp",
  "url": "/wiki/tool-onf-extract-subflow/",
  "markdown": "/wiki/tool-onf-extract-subflow/index.md",
  "json": "/wiki/tool-onf-extract-subflow/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/feature-tools.ts"
  ],
  "contract": {
    "name": "onf_extract_subflow",
    "description": "Extract selected nodes from a saved workflow into a new typed subflow. Creates the library asset; returns replacement workflow draft without saving parent. Review the returned draft; save with update_workflow only if it contains no redaction placeholders. Triggers cannot be selected. Parent must match expectedRevision.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "workflowId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120,
          "pattern": "^[A-Za-z0-9_.-]+$"
        },
        "expectedRevision": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        "nodeIds": {
          "minItems": 1,
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        "description": {
          "type": "string",
          "maxLength": 10000
        }
      },
      "required": [
        "workflowId",
        "expectedRevision",
        "nodeIds",
        "name"
      ]
    },
    "annotations": {
      "readOnlyHint": false,
      "destructiveHint": false,
      "idempotentHint": false,
      "openWorldHint": true
    },
    "source": {
      "file": "server/feature-tools.ts",
      "line": 96
    }
  }
}
