{
  "formatVersion": 1,
  "generatedOn": "2026-10-23",
  "toolCount": 111,
  "tools": [
    {
      "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
      }
    },
    {
      "name": "onf_cancel_run",
      "description": "Cancel a queued/running execution and terminate its current worker. External side effects already accepted cannot be undone.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "runId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1180
      }
    },
    {
      "name": "onf_complete_human_task",
      "description": "Record a human decision with the current task revision and resume its pinned run. Use only when the user authorizes the actual offered decision; downstream code may have external effects.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 320,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "expectedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "decision": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "value": {}
        },
        "required": [
          "taskId",
          "expectedRevision",
          "decision"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/feature-tools.ts",
        "line": 192
      }
    },
    {
      "name": "onf_configure_worker_pool",
      "description": "Create or update a local worker pool with expectedRevision (0 to create). concurrency bounds node attempts; config.$workerPool routes a graph node. Disabling refuses queued/new attempts without killing code already running.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "poolId": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{0,63}$"
          },
          "expectedRevision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "concurrency": {
            "type": "integer",
            "minimum": 1,
            "maximum": 32
          },
          "runtimes": {
            "minItems": 1,
            "maxItems": 4,
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "typescript",
                "javascript",
                "python",
                "powershell"
              ]
            }
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "poolId",
          "expectedRevision",
          "name",
          "concurrency",
          "runtimes",
          "enabled"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/feature-tools.ts",
        "line": 222
      }
    },
    {
      "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
      }
    },
    {
      "name": "onf_control_debug",
      "description": "Pause, step exactly one ready node, continue or configure a debug run with its latest debug.revision. Configuration requires a paused run. Provided fixtures replace the map; omission preserves. Explicit mockUnconfigured:false allows unmocked code to perform real effects.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "expectedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "action": {
            "type": "string",
            "enum": [
              "pause",
              "step",
              "continue",
              "configure"
            ]
          },
          "breakpoints": {
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "^[A-Za-z0-9_.-]+$"
            }
          },
          "fixtures": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "outputs": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                },
                "routes": {
                  "maxItems": 100,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                }
              },
              "required": [
                "outputs"
              ]
            }
          },
          "mockUnconfigured": {
            "description": "Defaults true: pause before unmocked code. False explicitly permits real code and its external effects.",
            "type": "boolean"
          }
        },
        "required": [
          "runId",
          "expectedRevision",
          "action"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/feature-tools.ts",
        "line": 123
      }
    },
    {
      "name": "onf_create_branch_merge",
      "description": "Publish a typed alternative-branch merge with 2–8 paired branch-control/value inputs. Only selected branch data is required. No workflow is saved or executed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "type": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "typeVersion": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "branches": {
            "type": "integer",
            "minimum": 2,
            "maximum": 8
          }
        },
        "required": [
          "name",
          "type",
          "branches"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/control-flow-tools.ts",
        "line": 60
      }
    },
    {
      "name": "onf_create_definition",
      "description": "Publish version 1 of a reusable node, trigger, executor or JSON Schema type. Code is an async function body. Graph instances pin published versions.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "definition": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "kind": {
                "type": "string",
                "enum": [
                  "node",
                  "trigger",
                  "executor",
                  "type"
                ]
              },
              "description": {
                "default": "",
                "type": "string",
                "maxLength": 10000
              },
              "documentation": {
                "description": "Versioned Markdown documentation. Empty string clears it; omission preserves it when publishing. Reading documentation never upgrades runtime dependency pins.",
                "type": "string",
                "maxLength": 100000
              },
              "category": {
                "default": "Custom",
                "type": "string",
                "maxLength": 80
              },
              "color": {
                "default": "#58afa6",
                "type": "string",
                "maxLength": 30
              },
              "icon": {
                "type": "string",
                "maxLength": 120
              },
              "inputs": {
                "default": [],
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[A-Za-z0-9_.-]+$"
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 120
                    },
                    "type": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "description": "Primitive any/string/number/boolean/object/array/control, or a custom type definition ID."
                    },
                    "typeVersion": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "default": {},
                    "description": {
                      "type": "string",
                      "maxLength": 10000
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "type"
                  ]
                }
              },
              "outputs": {
                "default": [],
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[A-Za-z0-9_.-]+$"
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 120
                    },
                    "type": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "description": "Primitive any/string/number/boolean/object/array/control, or a custom type definition ID."
                    },
                    "typeVersion": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "default": {},
                    "description": {
                      "type": "string",
                      "maxLength": 10000
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "type"
                  ]
                }
              },
              "code": {
                "default": "",
                "description": "Async TypeScript/JavaScript function BODY. Uses inputs, config and context; returns an object keyed by output IDs. Not a module.",
                "type": "string",
                "maxLength": 250000
              },
              "runtime": {
                "type": "string",
                "enum": [
                  "typescript",
                  "javascript",
                  "python",
                  "powershell"
                ]
              },
              "runtimeOperation": {
                "type": "string",
                "enum": [
                  "wait.timer",
                  "wait.event",
                  "wait.approval",
                  "route.send",
                  "route.receive",
                  "error.report",
                  "join.all",
                  "join.first-completion",
                  "join.first-success",
                  "merge.selected"
                ]
              },
              "collection": {
                "type": "object",
                "properties": {
                  "bodyDefinitionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "bodyDefinitionVersion": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "itemInput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "indexInput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "resultOutput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "concurrency": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 16
                  },
                  "errorMode": {
                    "type": "string",
                    "enum": [
                      "stop",
                      "collect"
                    ]
                  },
                  "maxItems": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000
                  }
                },
                "required": [
                  "bodyDefinitionId",
                  "bodyDefinitionVersion",
                  "itemInput",
                  "resultOutput",
                  "concurrency",
                  "errorMode",
                  "maxItems"
                ]
              },
              "repeat": {
                "type": "object",
                "properties": {
                  "bodyDefinitionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "bodyDefinitionVersion": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "carryInput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "resultOutput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "stopOutput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "indexInput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "maxIterations": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000
                  }
                },
                "required": [
                  "bodyDefinitionId",
                  "bodyDefinitionVersion",
                  "carryInput",
                  "resultOutput",
                  "stopOutput",
                  "maxIterations"
                ],
                "additionalProperties": false
              },
              "subflow": {
                "type": "object",
                "properties": {
                  "nodes": {
                    "minItems": 1,
                    "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": {
                    "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"
                      ]
                    }
                  },
                  "inputs": {
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "portId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        },
                        "nodeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        },
                        "handleId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        }
                      },
                      "required": [
                        "portId",
                        "nodeId",
                        "handleId"
                      ]
                    }
                  },
                  "outputs": {
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "portId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        },
                        "nodeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        },
                        "handleId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        }
                      },
                      "required": [
                        "portId",
                        "nodeId",
                        "handleId"
                      ]
                    }
                  }
                },
                "required": [
                  "nodes",
                  "edges",
                  "inputs",
                  "outputs"
                ]
              },
              "executorId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "executorVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "configSchema": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "schema": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            },
            "required": [
              "name",
              "kind"
            ]
          }
        },
        "required": [
          "definition"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 676
      }
    },
    {
      "name": "onf_create_library_folder",
      "description": "Create a shared folder, optionally inside an existing folder. Names are unique per parent; maximum depth eight.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "parentId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.-]{1,120}$"
          }
        },
        "required": [
          "name"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 73
      }
    },
    {
      "name": "onf_create_library_pack",
      "description": "Create a shared custom library pack. Assign assets with onf_organize_definition and install in selected workspaces separately.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.-]{1,120}$"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "description": {
            "default": "",
            "type": "string",
            "maxLength": 4000
          },
          "color": {
            "default": "#58afa6",
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$"
          },
          "icon": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          }
        },
        "required": [
          "name"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/library-pack-tools.ts",
        "line": 80
      }
    },
    {
      "name": "onf_create_repeat",
      "description": "Publish a bounded Repeat Until container using an exact pinned subflow, typed carry/result sockets and boolean stop output. No workflow is saved or executed. Whole-container retries and durable waits inside the body are rejected.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "repeat": {
            "type": "object",
            "properties": {
              "bodyDefinitionId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "bodyDefinitionVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "carryInput": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "resultOutput": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "stopOutput": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "indexInput": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "maxIterations": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000
              }
            },
            "required": [
              "bodyDefinitionId",
              "bodyDefinitionVersion",
              "carryInput",
              "resultOutput",
              "stopOutput",
              "maxIterations"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "name",
          "repeat"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/control-flow-tools.ts",
        "line": 41
      }
    },
    {
      "name": "onf_create_variable",
      "description": "Declare a workspace variable with its initial JSON value and expectedRevision:0. Primitive type or exact custom type/version is immutable. Name is unique and case-sensitive in its workspace; returned revisions are globally monotonic and need not begin at 1.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "scope": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "workspace"
              },
              "workspaceId": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_.-]{1,120}$"
              }
            },
            "required": [
              "kind",
              "workspaceId"
            ],
            "additionalProperties": false
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "type": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.-]{1,120}$"
          },
          "typeVersion": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "value": {},
          "expectedRevision": {
            "type": "number",
            "const": 0
          }
        },
        "required": [
          "scope",
          "name",
          "type",
          "value",
          "expectedRevision"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/variable-tools.ts",
        "line": 90
      }
    },
    {
      "name": "onf_create_workflow",
      "description": "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.",
      "inputSchema": {
        "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"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 834
      }
    },
    {
      "name": "onf_create_workspace",
      "description": "Create a project workspace. 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": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "description": {
            "default": "",
            "type": "string",
            "maxLength": 10000
          },
          "color": {
            "default": "#58afa6",
            "type": "string",
            "maxLength": 30
          }
        },
        "required": [
          "name"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 511
      }
    },
    {
      "name": "onf_delete_definition",
      "description": "Permanently delete all versions of an unreferenced library asset. Fails while a workflow or another asset depends on it.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "definitionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "definitionId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 707
      }
    },
    {
      "name": "onf_delete_library_folder",
      "description": "Delete an empty folder with expectedRevision. Move assets and subfolders first.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "folderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "expectedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "folderId",
          "expectedRevision"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 90
      }
    },
    {
      "name": "onf_delete_library_pack",
      "description": "Delete an empty uninstalled pack with expectedRevision. Remove asset memberships and workspace links first.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "packId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "expectedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "packId",
          "expectedRevision"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/library-pack-tools.ts",
        "line": 97
      }
    },
    {
      "name": "onf_delete_secret",
      "description": "Delete a stored secret. Workflows referring to its name may then fail.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "pattern": "^[A-Za-z_][A-Za-z0-9_.-]{0,119}$"
          }
        },
        "required": [
          "name"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1302
      }
    },
    {
      "name": "onf_delete_variable",
      "description": "Delete a declared workspace variable using its current expectedRevision. Flows referencing its name will fail until explicitly reconfigured. Deleting does not execute or replay workflows.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "variableId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.-]{1,120}$"
          },
          "expectedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "variableId",
          "expectedRevision"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/variable-tools.ts",
        "line": 116
      }
    },
    {
      "name": "onf_delete_workflow",
      "description": "Permanently delete a workflow. Active runs must be cancelled first. Existing run history is retained. 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_.-]+$"
          }
        },
        "required": [
          "workflowId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 859
      }
    },
    {
      "name": "onf_delete_workspace",
      "description": "Permanently delete an empty workspace. Move or delete its workflows first. 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": {
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "workspaceId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 537
      }
    },
    {
      "name": "onf_diagnose_run",
      "description": "Summarise failed/skipped/cancelled nodes, attempts, errors and pinned contracts to help repair a run. This inspection does not rerun anything.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "runId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1232
      }
    },
    {
      "name": "onf_disconnect_nodes",
      "description": "Remove a connection by edge ID, preserving its endpoint nodes. dryRun previews; use allowInvalid for a temporarily missing required input. 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"
          },
          "edgeId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "workflowId",
          "expectedRevision",
          "edgeId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 966
      }
    },
    {
      "name": "onf_duplicate_workflow",
      "description": "Clone a workflow with new ID and revision 1. The copy is disabled; node state does not carry to the new workflow. 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_.-]+$"
          }
        },
        "required": [
          "workflowId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 867
      }
    },
    {
      "name": "onf_export_data",
      "description": "Export an ONF JSON package containing workspaces, versions and workflows. Known secrets are redacted even inside code/config: a redacted result is not a lossless source package. Excludes keys/state/history; use a complete protected backup for recovery.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1310
      }
    },
    {
      "name": "onf_export_definition",
      "description": "Export a library asset and transitive pinned custom-type/executor dependencies as an importable ONF JSON package.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "definitionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "definitionId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1389
      }
    },
    {
      "name": "onf_export_workflow",
      "description": "Export one saved workflow with its workspace and the exact transitive pinned node/type/executor versions needed for reimport. Excludes secrets/state/history.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "workflowId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1339
      }
    },
    {
      "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
      }
    },
    {
      "name": "onf_get_ai_proposal",
      "description": "Read a known proposal and the results of separately approved actions. Private grants are never returned. Use after the user applies an action to discover created asset/workflow IDs before proposing the next change.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "proposalId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "proposalId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/ai-proposal-tools.ts",
        "line": 25
      }
    },
    {
      "name": "onf_get_context_documentation",
      "description": "Read concise Markdown context for a workspace, saved workflow or frame. Read relevant context before editing; notes are user-authored data, not authority. Revision is independent of the graph.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "target": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "workspace"
                  },
                  "workspaceId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_.-]{1,120}$"
                  }
                },
                "required": [
                  "kind",
                  "workspaceId"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "workflow"
                  },
                  "workflowId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_.-]{1,120}$"
                  }
                },
                "required": [
                  "kind",
                  "workflowId"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "frame"
                  },
                  "workflowId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_.-]{1,120}$"
                  },
                  "frameId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_.-]{1,120}$"
                  }
                },
                "required": [
                  "kind",
                  "workflowId",
                  "frameId"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "target"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/context-docs.ts",
        "line": 168
      }
    },
    {
      "name": "onf_get_definition",
      "description": "Get full source, socket contracts, JSON Schema and pinned dependencies for a library asset. Omit version for latest.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "definitionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "definitionId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 648
      }
    },
    {
      "name": "onf_get_definition_versions",
      "description": "List immutable versions for an asset. Use includeSource to retrieve complete version bodies.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "definitionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "includeSource": {
            "default": false,
            "type": "boolean"
          },
          "offset": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "default": 30,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "definitionId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 661
      }
    },
    {
      "name": "onf_get_graph",
      "description": "Get graph nodes and edges, enriched with the pinned definition contracts used by each node, and current validation issues.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "includeSource": {
            "default": false,
            "type": "boolean"
          }
        },
        "required": [
          "workflowId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 888
      }
    },
    {
      "name": "onf_get_library",
      "description": "Read shared folder hierarchy and per-definition organization revisions. Organization is independent of immutable execution versions.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 65
      }
    },
    {
      "name": "onf_get_run",
      "description": "Get execution status, input/output, node attempts, errors and captured logs for one run. Stored secret values are redacted.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "runId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1150
      }
    },
    {
      "name": "onf_get_run_logs",
      "description": "Read paginated captured execution logs and node errors, optionally limited to a graph node. Logs retain node order; they do not have individual timestamps.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "nodeId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "offset": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "default": 200,
            "type": "integer",
            "minimum": 1,
            "maximum": 1000
          }
        },
        "required": [
          "runId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1196
      }
    },
    {
      "name": "onf_get_run_snapshot",
      "description": "Get the immutable workflow and exact definition versions captured for a historical run, even after library/workflow edits.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "runId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1188
      }
    },
    {
      "name": "onf_get_settings",
      "description": "Read shared execution concurrency, default timeout and run retention settings.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1263
      }
    },
    {
      "name": "onf_get_variable",
      "description": "Deliberately read one typed variable value and revision. Known credentials are redacted with valueRedacted=true; never roundtrip redacted content as the replacement value.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "variableId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.-]{1,120}$"
          }
        },
        "required": [
          "variableId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/variable-tools.ts",
        "line": 82
      }
    },
    {
      "name": "onf_get_webhook_info",
      "description": "Return a workflow or selected trigger-node webhook URL/header name without revealing or generating a key. Supply triggerNodeId when several webhook entries share a canvas. Nodes use the existing workflow key.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "triggerNodeId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "workflowId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1049
      }
    },
    {
      "name": "onf_get_workers",
      "description": "Inspect local worker pools, concurrency, queues and installed runtime capabilities. Pools execute on this PC; no remote agent is implied.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/feature-tools.ts",
        "line": 206
      }
    },
    {
      "name": "onf_get_workflow",
      "description": "Get a saved workflow graph and current revision. Editing uses expectedRevision to protect changes from other editors.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "workflowId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 826
      }
    },
    {
      "name": "onf_get_workspace",
      "description": "Get one workspace and concise summaries of its workflows.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "workspaceId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 497
      }
    },
    {
      "name": "onf_get_workspace_library",
      "description": "Read workspace installed pack IDs and independent library revision. Base and unpacked custom assets are shared.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "workspaceId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/library-pack-tools.ts",
        "line": 109
      }
    },
    {
      "name": "onf_health",
      "description": "Check ONF server availability and package version.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 446
      }
    },
    {
      "name": "onf_import_data",
      "description": "Validate and atomically import an ONF JSON package. Existing conflicting IDs/versions fail; new workflows are imported disabled. Does not import secrets, history or durable state.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "package": {
            "type": "object",
            "properties": {
              "format": {
                "type": "string",
                "const": "onf"
              },
              "version": {
                "type": "number",
                "const": 1
              },
              "workspaces": {
                "maxItems": 1000,
                "type": "array",
                "items": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                }
              },
              "definitions": {
                "maxItems": 10000,
                "type": "array",
                "items": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                }
              },
              "workflows": {
                "maxItems": 1000,
                "type": "array",
                "items": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                }
              },
              "contextDocumentation": {
                "maxItems": 10000,
                "type": "array",
                "items": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                }
              },
              "libraryFolders": {
                "maxItems": 2000,
                "type": "array",
                "items": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                }
              },
              "libraryMetadata": {
                "maxItems": 10000,
                "type": "array",
                "items": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                }
              },
              "libraryPacks": {
                "maxItems": 1000,
                "type": "array",
                "items": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                }
              },
              "workspaceLibraries": {
                "maxItems": 1000,
                "type": "array",
                "items": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                }
              }
            },
            "required": [
              "format",
              "version",
              "workspaces",
              "definitions",
              "workflows"
            ]
          }
        },
        "required": [
          "package"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1318
      }
    },
    {
      "name": "onf_list_definitions",
      "description": "Search library authoring discovery by kind, category, text or socket type. Supply workspaceId to restrict packed assets to installed packs. Hidden legacy helpers are omitted unless includeHidden=true. Metadata includes reciprocal codec links. Code/schema only when includeSource=true.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "node",
              "trigger",
              "executor",
              "type"
            ]
          },
          "category": {
            "type": "string",
            "maxLength": 80
          },
          "query": {
            "type": "string",
            "maxLength": 200
          },
          "portType": {
            "type": "string",
            "maxLength": 120
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "packId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "includeHidden": {
            "default": false,
            "type": "boolean"
          },
          "tags": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          "folderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "includeSubfolders": {
            "default": true,
            "type": "boolean"
          },
          "unfiled": {
            "default": false,
            "type": "boolean"
          },
          "includeSource": {
            "default": false,
            "type": "boolean"
          },
          "offset": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "default": 30,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        }
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 546
      }
    },
    {
      "name": "onf_list_human_tasks",
      "description": "List persisted approval tasks. Decisions must be one of the offered options; assignee is descriptive in this trusted LAN app. Reading does not approve anything.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "status": {
            "default": "pending",
            "type": "string",
            "enum": [
              "pending",
              "completed",
              "all"
            ]
          }
        }
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/feature-tools.ts",
        "line": 178
      }
    },
    {
      "name": "onf_list_library_packs",
      "description": "List shared installable packs. Pack membership controls authoring discovery only; installed graph pins remain usable.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/library-pack-tools.ts",
        "line": 72
      }
    },
    {
      "name": "onf_list_runs",
      "description": "List up to the latest 250 retained runs, filtered by workspace/workflow/status. Summaries omit payloads/logs; get_run retrieves full details.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "workflowId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "paused",
              "waiting",
              "success",
              "failed",
              "cancelled",
              "interrupted"
            ]
          },
          "offset": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "default": 30,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        }
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1108
      }
    },
    {
      "name": "onf_list_secrets",
      "description": "List stored secret names and update timestamps. Secret values are never returned.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1283
      }
    },
    {
      "name": "onf_list_subflows",
      "description": "List latest reusable subflow definitions. They are node-kind immutable assets with normal library folder/tag organization. Use get_definition for a version; publish_definition for a graph edit. Nested execution uses pinned graphs.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/feature-tools.ts",
        "line": 88
      }
    },
    {
      "name": "onf_list_triggers",
      "description": "List shared trigger types and per-node enabled state, health and run counts. Managed WebSocket listener reports connection phase, bounded queue and accepted/rejected/overflow/reconnect counters without URLs or payloads; other health describes ONF activity. Instances are paginated after filters.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "workflowId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "definitionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "health": {
            "type": "string",
            "enum": [
              "paused",
              "running",
              "error",
              "ready",
              "idle"
            ]
          },
          "query": {
            "type": "string",
            "maxLength": 300
          },
          "offset": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "default": 30,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        }
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 996
      }
    },
    {
      "name": "onf_list_variables",
      "description": "List workspace variable metadata and exact type pins without private values. Workspace is required; no global scope exists. query searches names across the complete selected workspace.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "scope": {
            "default": "workspace",
            "type": "string",
            "const": "workspace"
          },
          "workspaceId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.-]{1,120}$"
          },
          "query": {
            "type": "string",
            "maxLength": 120
          },
          "offset": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "workspaceId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/variable-tools.ts",
        "line": 67
      }
    },
    {
      "name": "onf_list_waits",
      "description": "Inspect durable run waits in a workspace. Pending waits release run/worker concurrency and survive restart with encrypted continuations. Does not return resume results.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "status": {
            "default": "pending",
            "type": "string",
            "enum": [
              "pending",
              "completed",
              "cancelled",
              "all"
            ]
          }
        }
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/feature-tools.ts",
        "line": 137
      }
    },
    {
      "name": "onf_list_workflows",
      "description": "Search workflows by workspace, trigger, enabled state or text. Returns summaries; get_workflow provides a complete editable graph.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "query": {
            "type": "string",
            "maxLength": 200
          },
          "enabled": {
            "type": "boolean"
          },
          "triggerKind": {
            "type": "string",
            "enum": [
              "manual",
              "webhook",
              "schedule",
              "poll",
              "websocket"
            ]
          },
          "offset": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "default": 30,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        }
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 756
      }
    },
    {
      "name": "onf_list_workspaces",
      "description": "List/search project workspaces, with workflow counts.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "maxLength": 200
          },
          "offset": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "default": 30,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        }
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 477
      }
    },
    {
      "name": "onf_operate_variable",
      "description": "Atomically increment a number, append array items, compareAndSet an exact JSON value, or updatePath through existing JSON containers. Requires current expectedRevision; validates the complete pinned type and commits once. No automatic retry after an uncertain response. Known redacted content cannot be written back.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "operation": {
            "type": "string",
            "enum": [
              "increment",
              "append",
              "compareAndSet",
              "updatePath"
            ]
          },
          "expectedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "amount": {
            "type": "number"
          },
          "items": {
            "maxItems": 10000,
            "type": "array",
            "items": {}
          },
          "expectedValue": {},
          "value": {},
          "path": {
            "minItems": 1,
            "maxItems": 32,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9999
                }
              ]
            }
          },
          "variableId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.-]{1,120}$"
          }
        },
        "required": [
          "operation",
          "expectedRevision",
          "variableId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/variable-tools.ts",
        "line": 107
      }
    },
    {
      "name": "onf_organize_definition",
      "description": "Replace discovery tags and folder for a shared asset without publishing a definition or changing runtime pins. expectedRevision:0 creates absent metadata. Omitted/null folderId means Unfiled; tags normalize to lowercase unique sorted values.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expectedRevision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "tags": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          "folderId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9_.-]{1,120}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "packId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9_.-]{1,120}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "discovery": {
            "type": "string",
            "enum": [
              "default",
              "hidden"
            ]
          },
          "definitionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "expectedRevision",
          "tags",
          "definitionId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 102
      }
    },
    {
      "name": "onf_overview",
      "description": "Get workspace, library, workflow, and recent-run counts without bulk code or payloads. Workspaces organise projects; library and secrets are shared.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 454
      }
    },
    {
      "name": "onf_pair_codecs",
      "description": "Atomically link encode/decode siblings in both directions, with current organization revisions for both IDs. One picker entry retains the two immutable executable contracts. Existing graph pins are unchanged.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "encodeId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.-]{1,120}$"
          },
          "decodeId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.-]{1,120}$"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "expectedRevisions": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_.-]{1,120}$"
            },
            "additionalProperties": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          }
        },
        "required": [
          "encodeId",
          "decodeId",
          "name",
          "expectedRevisions"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/library-pack-tools.ts",
        "line": 126
      }
    },
    {
      "name": "onf_patch_graph",
      "description": "Apply a batch of graph operations to one cloned draft and commit once with expectedRevision. Supports add/update/remove node, connect/disconnect, upgrade_node. Node removal also removes incident wires. Config/inputs maps replace existing maps. dryRun returns issues and preview without saving. 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"
          },
          "operations": {
            "minItems": 1,
            "maxItems": 1000,
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "set_frames"
                    },
                    "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"
                        ]
                      }
                    }
                  },
                  "required": [
                    "op",
                    "frames"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "add_node"
                    },
                    "node": {
                      "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"
                      ]
                    }
                  },
                  "required": [
                    "op",
                    "node"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "update_node"
                    },
                    "nodeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[A-Za-z0-9_.-]+$"
                    },
                    "patch": {
                      "type": "object",
                      "properties": {
                        "variableBinding": {
                          "anyOf": [
                            {
                              "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
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "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": [
                    "op",
                    "nodeId",
                    "patch"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "remove_node"
                    },
                    "nodeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[A-Za-z0-9_.-]+$"
                    }
                  },
                  "required": [
                    "op",
                    "nodeId"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "connect"
                    },
                    "edge": {
                      "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"
                      ]
                    }
                  },
                  "required": [
                    "op",
                    "edge"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "disconnect"
                    },
                    "edgeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[A-Za-z0-9_.-]+$"
                    }
                  },
                  "required": [
                    "op",
                    "edgeId"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "upgrade_node"
                    },
                    "nodeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[A-Za-z0-9_.-]+$"
                    },
                    "definitionVersion": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "op",
                    "nodeId",
                    "definitionVersion"
                  ]
                }
              ]
            }
          }
        },
        "required": [
          "workflowId",
          "expectedRevision",
          "operations"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 928
      }
    },
    {
      "name": "onf_publish_definition",
      "description": "Publish an immutable next version. Existing graph nodes keep their pinned version. Kind cannot change. expectedVersion prevents publishing over a concurrent editor.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "definitionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "expectedVersion": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "patch": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "kind": {
                "type": "string",
                "enum": [
                  "node",
                  "trigger",
                  "executor",
                  "type"
                ]
              },
              "description": {
                "type": "string",
                "maxLength": 10000
              },
              "documentation": {
                "type": "string",
                "maxLength": 100000
              },
              "category": {
                "type": "string",
                "maxLength": 80
              },
              "color": {
                "type": "string",
                "maxLength": 30
              },
              "icon": {
                "type": "string",
                "maxLength": 120
              },
              "inputs": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[A-Za-z0-9_.-]+$"
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 120
                    },
                    "type": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "description": "Primitive any/string/number/boolean/object/array/control, or a custom type definition ID."
                    },
                    "typeVersion": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "default": {},
                    "description": {
                      "type": "string",
                      "maxLength": 10000
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "type"
                  ]
                }
              },
              "outputs": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[A-Za-z0-9_.-]+$"
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 120
                    },
                    "type": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "description": "Primitive any/string/number/boolean/object/array/control, or a custom type definition ID."
                    },
                    "typeVersion": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "default": {},
                    "description": {
                      "type": "string",
                      "maxLength": 10000
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "type"
                  ]
                }
              },
              "code": {
                "type": "string",
                "maxLength": 250000
              },
              "runtime": {
                "type": "string",
                "enum": [
                  "typescript",
                  "javascript",
                  "python",
                  "powershell"
                ]
              },
              "runtimeOperation": {
                "type": "string",
                "enum": [
                  "wait.timer",
                  "wait.event",
                  "wait.approval",
                  "route.send",
                  "route.receive",
                  "error.report",
                  "join.all",
                  "join.first-completion",
                  "join.first-success",
                  "merge.selected"
                ]
              },
              "collection": {
                "type": "object",
                "properties": {
                  "bodyDefinitionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "bodyDefinitionVersion": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "itemInput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "indexInput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "resultOutput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "concurrency": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 16
                  },
                  "errorMode": {
                    "type": "string",
                    "enum": [
                      "stop",
                      "collect"
                    ]
                  },
                  "maxItems": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000
                  }
                },
                "required": [
                  "bodyDefinitionId",
                  "bodyDefinitionVersion",
                  "itemInput",
                  "resultOutput",
                  "concurrency",
                  "errorMode",
                  "maxItems"
                ]
              },
              "repeat": {
                "type": "object",
                "properties": {
                  "bodyDefinitionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "bodyDefinitionVersion": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "carryInput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "resultOutput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "stopOutput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "indexInput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "maxIterations": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000
                  }
                },
                "required": [
                  "bodyDefinitionId",
                  "bodyDefinitionVersion",
                  "carryInput",
                  "resultOutput",
                  "stopOutput",
                  "maxIterations"
                ],
                "additionalProperties": false
              },
              "subflow": {
                "type": "object",
                "properties": {
                  "nodes": {
                    "minItems": 1,
                    "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": {
                    "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"
                      ]
                    }
                  },
                  "inputs": {
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "portId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        },
                        "nodeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        },
                        "handleId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        }
                      },
                      "required": [
                        "portId",
                        "nodeId",
                        "handleId"
                      ]
                    }
                  },
                  "outputs": {
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "portId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        },
                        "nodeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        },
                        "handleId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        }
                      },
                      "required": [
                        "portId",
                        "nodeId",
                        "handleId"
                      ]
                    }
                  }
                },
                "required": [
                  "nodes",
                  "edges",
                  "inputs",
                  "outputs"
                ]
              },
              "executorId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "executorVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "configSchema": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "schema": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            }
          }
        },
        "required": [
          "definitionId",
          "expectedVersion",
          "patch"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 684
      }
    },
    {
      "name": "onf_refresh_runtimes",
      "description": "Probe installed Python and PowerShell 7 runtimes plus the host JS/TS engine. Does not install software or run user nodes.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/feature-tools.ts",
        "line": 214
      }
    },
    {
      "name": "onf_resume_wait",
      "description": "Explicitly resume one pending durable wait with its current revision and optional value. Resumes the same run without repeating successful upstream nodes. This can allow downstream real effects.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "waitId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 320,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "expectedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "value": {}
        },
        "required": [
          "waitId",
          "expectedRevision"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/feature-tools.ts",
        "line": 151
      }
    },
    {
      "name": "onf_run_workflow",
      "description": "Queue a real manual execution of one trigger branch. Supply triggerNodeId for multiple trigger nodes. The automation master may be disabled, but the selected node must not be paused. Retrying creates a separate run and may repeat external actions. 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_.-]+$"
          },
          "input": {
            "default": {},
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "triggerNodeId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "workflowId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1092
      }
    },
    {
      "name": "onf_search_context_documentation",
      "description": "Search concise context notes across workspaces/workflows/frames using words and scope filters. Returns bounded excerpts and revisions; read the selected target for full Markdown before editing.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "maxLength": 500
          },
          "kind": {
            "type": "string",
            "enum": [
              "workspace",
              "workflow",
              "frame"
            ]
          },
          "workspaceId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.-]{1,120}$"
          },
          "workflowId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.-]{1,120}$"
          },
          "offset": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "default": 30,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        }
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/context-docs.ts",
        "line": 168
      }
    },
    {
      "name": "onf_send_runtime_event",
      "description": "Deliver an exact workspace/eventKey/correlationKey event to currently pending waits. Stable eventId deduplicates retries and conflicts if the body changes. Pre-arrival events are not replayed to future waits; use shared storage when needed. Matching runs can continue real code.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "eventKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "correlationKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "eventId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "payload": {}
        },
        "required": [
          "workspaceId",
          "eventKey",
          "correlationKey",
          "eventId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/feature-tools.ts",
        "line": 164
      }
    },
    {
      "name": "onf_set_secret",
      "description": "Create/replace a shared encrypted secret. Returns metadata only. Prefer entering real credentials directly in ONF Settings to avoid putting them in chat/tool arguments.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "pattern": "^[A-Za-z_][A-Za-z0-9_.-]{0,119}$"
          },
          "value": {
            "type": "string",
            "minLength": 1,
            "maxLength": 65536
          }
        },
        "required": [
          "name",
          "value"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1291
      }
    },
    {
      "name": "onf_set_trigger",
      "description": "Configure manual/webhook/schedule/poll/managed-websocket trigger and enabled state with revision protection. Enabled nonmanual graphs must validate. Activation can immediately connect and execute real code. WebSocket uses saved per-entry transport settings and host-managed lifecycle. 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."
          },
          "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
              }
            },
            "required": [
              "kind"
            ]
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "workflowId",
          "expectedRevision",
          "trigger",
          "enabled"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 988
      }
    },
    {
      "name": "onf_stage_ai_action",
      "description": "Propose a non-graph mutating ONF tool call for separate user approval. Supply its exact existing tool name and arguments plus a clear summary. Does not perform the action. Direct graph edits must use stage_ai_graph_changes; uncertain approved actions are never automatically retried.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "proposalId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "grant": {
            "type": "string",
            "minLength": 32,
            "maxLength": 128
          },
          "toolName": {
            "type": "string",
            "pattern": "^onf_[a-z0-9_]+$"
          },
          "args": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "summary": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          }
        },
        "required": [
          "proposalId",
          "grant",
          "toolName",
          "args",
          "summary"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/ai-proposal-tools.ts",
        "line": 24
      }
    },
    {
      "name": "onf_stage_ai_graph_changes",
      "description": "Stage graph operations for the current Executor request using its private proposal grant and exact workflow revision. Validates a separate draft; never saves the workflow or runs code. The user reviews and applies the complete graph change set in ONF.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "proposalId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "grant": {
            "type": "string",
            "minLength": 32,
            "maxLength": 128
          },
          "workflowId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "expectedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "operations": {
            "minItems": 1,
            "maxItems": 200,
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "set_frames"
                    },
                    "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"
                        ]
                      }
                    }
                  },
                  "required": [
                    "op",
                    "frames"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "add_node"
                    },
                    "node": {
                      "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"
                      ]
                    }
                  },
                  "required": [
                    "op",
                    "node"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "update_node"
                    },
                    "nodeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[A-Za-z0-9_.-]+$"
                    },
                    "patch": {
                      "type": "object",
                      "properties": {
                        "variableBinding": {
                          "anyOf": [
                            {
                              "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
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "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": [
                    "op",
                    "nodeId",
                    "patch"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "remove_node"
                    },
                    "nodeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[A-Za-z0-9_.-]+$"
                    }
                  },
                  "required": [
                    "op",
                    "nodeId"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "connect"
                    },
                    "edge": {
                      "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"
                      ]
                    }
                  },
                  "required": [
                    "op",
                    "edge"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "disconnect"
                    },
                    "edgeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[A-Za-z0-9_.-]+$"
                    }
                  },
                  "required": [
                    "op",
                    "edgeId"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "upgrade_node"
                    },
                    "nodeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[A-Za-z0-9_.-]+$"
                    },
                    "definitionVersion": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "op",
                    "nodeId",
                    "definitionVersion"
                  ]
                }
              ]
            }
          },
          "summary": {
            "type": "string",
            "maxLength": 2000
          }
        },
        "required": [
          "proposalId",
          "grant",
          "workflowId",
          "expectedRevision",
          "operations"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/ai-proposal-tools.ts",
        "line": 23
      }
    },
    {
      "name": "onf_start_debug",
      "description": "Start an isolated debug run of the exact saved workflow/dependencies. Starts paused. mockUnconfigured defaults true and unmocked code does not execute until explicitly allowed. Fixtures bypass node code but validate outputs. This is not a replacement for domain idempotency when real execution is enabled.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "input": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "triggerNodeId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "breakpoints": {
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "^[A-Za-z0-9_.-]+$"
            }
          },
          "fixtures": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "outputs": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                },
                "routes": {
                  "maxItems": 100,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                }
              },
              "required": [
                "outputs"
              ]
            }
          },
          "mockUnconfigured": {
            "description": "Defaults true: pause before unmocked code. False explicitly permits real code and its external effects.",
            "type": "boolean"
          }
        },
        "required": [
          "workflowId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/feature-tools.ts",
        "line": 110
      }
    },
    {
      "name": "onf_storage_conversation_append",
      "description": "Workspace/namespace storage conversation.append. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "expectedVersion": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "message": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
              },
              "role": {
                "type": "string",
                "enum": [
                  "system",
                  "user",
                  "assistant",
                  "tool"
                ]
              },
              "content": {
                "type": "string",
                "maxLength": 200000
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              }
            },
            "required": [
              "id",
              "role",
              "content",
              "createdAt"
            ],
            "additionalProperties": false
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "key",
          "expectedVersion",
          "message",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_conversation_get",
      "description": "Workspace/namespace storage conversation.get. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "key",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_conversation_list",
      "description": "Workspace/namespace storage conversation.list. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          },
          "cursor": {
            "type": "string",
            "maxLength": 100
          },
          "includeData": {
            "type": "boolean"
          },
          "metadataOnly": {
            "type": "boolean"
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_conversation_put",
      "description": "Workspace/namespace storage conversation.put. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "expectedVersion": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "ifAbsent": {
            "type": "boolean"
          },
          "data": {
            "type": "object",
            "properties": {
              "identity": {
                "type": "object",
                "propertyNames": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "additionalProperties": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                }
              },
              "agent": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              },
              "history": {
                "maxItems": 200,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "system",
                        "user",
                        "assistant",
                        "tool"
                      ]
                    },
                    "content": {
                      "type": "string",
                      "maxLength": 200000
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    }
                  },
                  "required": [
                    "id",
                    "role",
                    "content",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              },
              "historyLimit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 200
              }
            },
            "required": [
              "identity",
              "history"
            ],
            "additionalProperties": false
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "key",
          "expectedVersion",
          "data",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_overview",
      "description": "Read scalar workspace/namespace storage counts without private record or queue bodies.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 111
      }
    },
    {
      "name": "onf_storage_question_correlate",
      "description": "Workspace/namespace storage question.correlate. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "identity": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "additionalProperties": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            }
          },
          "threadId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "replyToCommentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "actorId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "actorIsBot": {
            "type": "boolean"
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "identity",
          "actorId",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_question_decide",
      "description": "Re-correlate an exact stored identity/anchor/actor, validate an allowed option and atomically select/enqueue once.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "expectedVersion": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "match": {
            "type": "object",
            "properties": {
              "identity": {
                "type": "object",
                "propertyNames": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "additionalProperties": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                }
              },
              "threadId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              },
              "replyToCommentId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              },
              "actorId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              },
              "actorIsBot": {
                "type": "boolean"
              }
            },
            "required": [
              "identity",
              "actorId"
            ],
            "additionalProperties": false
          },
          "optionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "dedupKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "payload": {},
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "key",
          "expectedVersion",
          "match",
          "optionId",
          "dedupKey",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_question_get",
      "description": "Workspace/namespace storage question.get. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "key",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_question_list",
      "description": "Workspace/namespace storage question.list. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          },
          "cursor": {
            "type": "string",
            "maxLength": 100
          },
          "includeData": {
            "type": "boolean"
          },
          "metadataOnly": {
            "type": "boolean"
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_question_put",
      "description": "Workspace/namespace storage question.put. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "expectedVersion": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "data": {
            "type": "object",
            "properties": {
              "identity": {
                "type": "object",
                "propertyNames": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "additionalProperties": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                }
              },
              "outbound": {
                "type": "object",
                "properties": {
                  "threadId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000
                  },
                  "commentId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000
                  }
                },
                "required": [
                  "threadId"
                ],
                "additionalProperties": false
              },
              "options": {
                "minItems": 1,
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
                    },
                    "label": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 1000
                    }
                  },
                  "required": [
                    "id",
                    "label"
                  ],
                  "additionalProperties": false
                }
              },
              "mode": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "status": {
                "type": "string",
                "enum": [
                  "open",
                  "selected",
                  "closed"
                ]
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "conversationKey": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
              },
              "agent": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              },
              "actorPolicy": {
                "type": "object",
                "properties": {
                  "blockedActorIds": {
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 1000
                    }
                  },
                  "allowedActorIds": {
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 1000
                    }
                  },
                  "allowBots": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              "selectedOptionId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
              },
              "selectedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "selectedBy": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              }
            },
            "required": [
              "identity",
              "outbound",
              "options",
              "mode",
              "status",
              "expiresAt",
              "conversationKey"
            ],
            "additionalProperties": false
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "key",
          "expectedVersion",
          "data",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_queue_ack",
      "description": "Workspace/namespace storage queue.ack. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "expectedVersion": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "leaseToken": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "result": {},
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "key",
          "expectedVersion",
          "leaseToken",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_queue_claim",
      "description": "Lease only the oldest unresolved item in this conversation. Expired leases become uncertain and require explicit recovery.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "conversationKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "leaseMs": {
            "type": "integer",
            "minimum": 1000,
            "maximum": 300000
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "conversationKey",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_queue_enqueue",
      "description": "Workspace/namespace storage queue.enqueue. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "conversationKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "dedupKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "payload": {},
          "maxAttempts": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          },
          "availableAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "conversationKey",
          "dedupKey",
          "payload",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_queue_fail",
      "description": "Workspace/namespace storage queue.fail. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "expectedVersion": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "leaseToken": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "error": {},
          "retryable": {
            "type": "boolean"
          },
          "knownSafe": {
            "type": "boolean"
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "key",
          "expectedVersion",
          "leaseToken",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_queue_get",
      "description": "Workspace/namespace storage queue.get. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "key",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_queue_list",
      "description": "Workspace/namespace storage queue.list. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          },
          "cursor": {
            "type": "string",
            "maxLength": 100
          },
          "includeData": {
            "type": "boolean"
          },
          "metadataOnly": {
            "type": "boolean"
          },
          "conversationKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "leased",
              "running",
              "completed",
              "failed",
              "uncertain",
              "discarded"
            ]
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_queue_recover",
      "description": "Explicitly recover failed/uncertain work with current version and reason. Retrying can repeat remote effects; reconcile first.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "expectedVersion": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "action": {
            "type": "string",
            "enum": [
              "retry",
              "complete",
              "discard"
            ]
          },
          "reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000
          },
          "result": {},
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "key",
          "expectedVersion",
          "action",
          "reason",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_queue_start",
      "description": "Workspace/namespace storage queue.start. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "expectedVersion": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "leaseToken": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "key",
          "expectedVersion",
          "leaseToken",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_record_delete",
      "description": "Workspace/namespace storage record.delete. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "expectedVersion": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "key",
          "expectedVersion",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_record_get",
      "description": "Workspace/namespace storage record.get. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "key",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_record_list",
      "description": "Workspace/namespace storage record.list. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          },
          "cursor": {
            "type": "string",
            "maxLength": 100
          },
          "includeData": {
            "type": "boolean"
          },
          "metadataOnly": {
            "type": "boolean"
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_record_put",
      "description": "Workspace/namespace storage record.put. Conditional updates use expectedVersion; lists omit private bodies unless includeData is explicitly requested. No external service call is performed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*$"
          },
          "expectedVersion": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "ifAbsent": {
            "type": "boolean"
          },
          "data": {},
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "key",
          "expectedVersion",
          "data",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_scope_clear",
      "description": "Delete only the explicitly confirmed workspace+namespace storage, including dedup history. Intended for deliberately scoped tests; cannot undo external effects.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "confirmWorkspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "confirmNamespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "confirmWorkspaceId",
          "confirmNamespace",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_storage_scope_prune",
      "description": "Irreversibly purge eligible expired and terminal private content before the confirmed cutoff, retaining dedup/correlation tombstones and blocked failed/uncertain heads.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "confirmWorkspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "confirmNamespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "before": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "namespace": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          }
        },
        "required": [
          "confirmWorkspaceId",
          "confirmNamespace",
          "before",
          "workspaceId",
          "namespace"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 14
      }
    },
    {
      "name": "onf_test_definition",
      "description": "Execute a published asset or an unpublished draft, bounded to 45 seconds for LAN proxy compatibility. For longer jobs create/run a workflow asynchronously. This is real trusted code with possible external actions. For types, inputs.value is tested; executors use config.testCode.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "definitionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "draft": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "kind": {
                "type": "string",
                "enum": [
                  "node",
                  "trigger",
                  "executor",
                  "type"
                ]
              },
              "description": {
                "default": "",
                "type": "string",
                "maxLength": 10000
              },
              "documentation": {
                "description": "Versioned Markdown documentation. Empty string clears it; omission preserves it when publishing. Reading documentation never upgrades runtime dependency pins.",
                "type": "string",
                "maxLength": 100000
              },
              "category": {
                "default": "Custom",
                "type": "string",
                "maxLength": 80
              },
              "color": {
                "default": "#58afa6",
                "type": "string",
                "maxLength": 30
              },
              "icon": {
                "type": "string",
                "maxLength": 120
              },
              "inputs": {
                "default": [],
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[A-Za-z0-9_.-]+$"
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 120
                    },
                    "type": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "description": "Primitive any/string/number/boolean/object/array/control, or a custom type definition ID."
                    },
                    "typeVersion": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "default": {},
                    "description": {
                      "type": "string",
                      "maxLength": 10000
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "type"
                  ]
                }
              },
              "outputs": {
                "default": [],
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[A-Za-z0-9_.-]+$"
                    },
                    "name": {
                      "type": "string",
                      "maxLength": 120
                    },
                    "type": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "description": "Primitive any/string/number/boolean/object/array/control, or a custom type definition ID."
                    },
                    "typeVersion": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "default": {},
                    "description": {
                      "type": "string",
                      "maxLength": 10000
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "type"
                  ]
                }
              },
              "code": {
                "default": "",
                "description": "Async TypeScript/JavaScript function BODY. Uses inputs, config and context; returns an object keyed by output IDs. Not a module.",
                "type": "string",
                "maxLength": 250000
              },
              "runtime": {
                "type": "string",
                "enum": [
                  "typescript",
                  "javascript",
                  "python",
                  "powershell"
                ]
              },
              "runtimeOperation": {
                "type": "string",
                "enum": [
                  "wait.timer",
                  "wait.event",
                  "wait.approval",
                  "route.send",
                  "route.receive",
                  "error.report",
                  "join.all",
                  "join.first-completion",
                  "join.first-success",
                  "merge.selected"
                ]
              },
              "collection": {
                "type": "object",
                "properties": {
                  "bodyDefinitionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "bodyDefinitionVersion": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "itemInput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "indexInput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "resultOutput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "concurrency": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 16
                  },
                  "errorMode": {
                    "type": "string",
                    "enum": [
                      "stop",
                      "collect"
                    ]
                  },
                  "maxItems": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000
                  }
                },
                "required": [
                  "bodyDefinitionId",
                  "bodyDefinitionVersion",
                  "itemInput",
                  "resultOutput",
                  "concurrency",
                  "errorMode",
                  "maxItems"
                ]
              },
              "repeat": {
                "type": "object",
                "properties": {
                  "bodyDefinitionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "bodyDefinitionVersion": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "carryInput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "resultOutput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "stopOutput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "indexInput": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  },
                  "maxIterations": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000
                  }
                },
                "required": [
                  "bodyDefinitionId",
                  "bodyDefinitionVersion",
                  "carryInput",
                  "resultOutput",
                  "stopOutput",
                  "maxIterations"
                ],
                "additionalProperties": false
              },
              "subflow": {
                "type": "object",
                "properties": {
                  "nodes": {
                    "minItems": 1,
                    "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": {
                    "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"
                      ]
                    }
                  },
                  "inputs": {
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "portId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        },
                        "nodeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        },
                        "handleId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        }
                      },
                      "required": [
                        "portId",
                        "nodeId",
                        "handleId"
                      ]
                    }
                  },
                  "outputs": {
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "portId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        },
                        "nodeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        },
                        "handleId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[A-Za-z0-9_.-]+$"
                        }
                      },
                      "required": [
                        "portId",
                        "nodeId",
                        "handleId"
                      ]
                    }
                  }
                },
                "required": [
                  "nodes",
                  "edges",
                  "inputs",
                  "outputs"
                ]
              },
              "executorId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "executorVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "configSchema": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "schema": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            },
            "required": [
              "name",
              "kind"
            ]
          },
          "inputs": {
            "default": {},
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "config": {
            "default": {},
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "input": {
            "default": {},
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "timeoutMs": {
            "default": 30000,
            "type": "integer",
            "minimum": 100,
            "maximum": 45000
          }
        }
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 715
      }
    },
    {
      "name": "onf_unpair_codecs",
      "description": "Atomically unlink a reciprocal codec pair using both current organization revisions. Definitions and existing graph pins remain intact.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "encodeId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "expectedEncodeRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "expectedDecodeRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "encodeId",
          "expectedEncodeRevision",
          "expectedDecodeRevision"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/library-pack-tools.ts",
        "line": 134
      }
    },
    {
      "name": "onf_update_context_documentation",
      "description": "Maintain concise workspace/workflow/frame documentation when changing its purpose, wiring or operating constraints. Prefer a short accurate update over narration; omit credentials and transient logs. Read current notes first and supply their exact expectedRevision; empty markdown clears while advancing revision. Does not save/run a graph.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "target": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "workspace"
                  },
                  "workspaceId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_.-]{1,120}$"
                  }
                },
                "required": [
                  "kind",
                  "workspaceId"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "workflow"
                  },
                  "workflowId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_.-]{1,120}$"
                  }
                },
                "required": [
                  "kind",
                  "workflowId"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "frame"
                  },
                  "workflowId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_.-]{1,120}$"
                  },
                  "frameId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_.-]{1,120}$"
                  }
                },
                "required": [
                  "kind",
                  "workflowId",
                  "frameId"
                ],
                "additionalProperties": false
              }
            ]
          },
          "expectedRevision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "markdown": {
            "type": "string",
            "maxLength": 12000
          }
        },
        "required": [
          "target",
          "expectedRevision",
          "markdown"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/context-docs.ts",
        "line": 168
      }
    },
    {
      "name": "onf_update_library_folder",
      "description": "Rename or reparent one folder with its current expectedRevision; parentId:null moves it to root. Does not republish assets.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expectedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "parentId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9_.-]{1,120}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "folderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "expectedRevision",
          "folderId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/platform-tools.ts",
        "line": 81
      }
    },
    {
      "name": "onf_update_library_pack",
      "description": "Update a pack with its current expectedRevision. Does not publish definitions or upgrade graphs.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expectedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "description": {
            "type": "string",
            "maxLength": 4000
          },
          "color": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$"
          },
          "icon": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "packId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "expectedRevision",
          "packId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/library-pack-tools.ts",
        "line": 88
      }
    },
    {
      "name": "onf_update_settings",
      "description": "Update shared execution settings. Omitted values stay unchanged; retention applies to execution history.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "maxConcurrentRuns": {
            "type": "integer",
            "minimum": 1,
            "maximum": 16
          },
          "defaultTimeoutMs": {
            "type": "integer",
            "minimum": 100,
            "maximum": 300000
          },
          "logRetentionDays": {
            "type": "integer",
            "minimum": 1,
            "maximum": 7
          }
        }
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1271
      }
    },
    {
      "name": "onf_update_trigger",
      "description": "Pause/resume or configure one trigger NODE with expectedRevision. Other branches, graph data and their schedules are preserved. Workflow.enabled is a separate master switch. Pausing prevents new runs; already accepted work finishes. Enabling schedules can execute real code. 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."
          },
          "nodeId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "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": [
          "workflowId",
          "expectedRevision",
          "nodeId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1029
      }
    },
    {
      "name": "onf_update_variable",
      "description": "Change a variable name and/or complete value using its current expectedRevision. Scope and pinned type cannot change. Rejects stale writes and redacted readback replacement; no node execution is implied.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expectedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "value": {},
          "variableId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_.-]{1,120}$"
          }
        },
        "required": [
          "expectedRevision",
          "variableId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/variable-tools.ts",
        "line": 98
      }
    },
    {
      "name": "onf_update_workflow",
      "description": "Save workflow fields or replace complete graph arrays with revision protection. Array/config replacement is literal. Enabled nonmanual workflows must validate; disabled drafts may be incomplete. 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."
          },
          "patch": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "description": {
                "type": "string",
                "maxLength": 10000
              },
              "workspaceId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "enabled": {
                "type": "boolean"
              },
              "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
                  }
                },
                "required": [
                  "kind"
                ]
              },
              "nodes": {
                "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": {
                "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"
                  ]
                }
              }
            }
          }
        },
        "required": [
          "workflowId",
          "expectedRevision",
          "patch"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 851
      }
    },
    {
      "name": "onf_update_workspace",
      "description": "Update workspace metadata; omitted fields stay unchanged. 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": {
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "description": {
            "type": "string",
            "maxLength": 10000
          },
          "color": {
            "type": "string",
            "maxLength": 30
          }
        },
        "required": [
          "workspaceId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 523
      }
    },
    {
      "name": "onf_update_workspace_library",
      "description": "Replace workspace installed pack IDs with expectedRevision (0 for absent link metadata). Uninstalling affects discovery only and preserves all graph nodes, pins, history and runtime state.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expectedRevision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "packIds": {
            "maxItems": 1000,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_.-]{1,120}$"
            }
          },
          "workspaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          }
        },
        "required": [
          "expectedRevision",
          "packIds",
          "workspaceId"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      },
      "source": {
        "file": "server/library-pack-tools.ts",
        "line": 117
      }
    },
    {
      "name": "onf_upgrade_node",
      "description": "Pin a graph instance to a specific published definition version. Keeps its ID, durable-state scope, inputs/config and wires. Reports incompatible ports rather than silently deleting values. 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"
          },
          "nodeId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "definitionVersion": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "workflowId",
          "expectedRevision",
          "nodeId",
          "definitionVersion"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 974
      }
    },
    {
      "name": "onf_validate_workflow",
      "description": "Validate saved graph or a proposed metadata/graph patch without saving or executing code. Checks types, sockets, required values, configurations and acyclic wiring.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "patch": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "description": {
                "type": "string",
                "maxLength": 10000
              },
              "workspaceId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "enabled": {
                "type": "boolean"
              },
              "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
                  }
                },
                "required": [
                  "kind"
                ]
              },
              "nodes": {
                "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": {
                "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"
                  ]
                }
              }
            }
          }
        },
        "required": [
          "workflowId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 875
      }
    },
    {
      "name": "onf_wait_run",
      "description": "Wait up to 30 seconds for a run to finish, returning its current details and completed flag. If still running, call again; waiting does not execute code or cancel a run.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[A-Za-z0-9_.-]+$"
          },
          "timeoutMs": {
            "default": 10000,
            "type": "integer",
            "minimum": 0,
            "maximum": 30000
          },
          "pollIntervalMs": {
            "default": 500,
            "type": "integer",
            "minimum": 100,
            "maximum": 2000
          }
        },
        "required": [
          "runId"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "source": {
        "file": "server/mcp-tools.ts",
        "line": 1158
      }
    }
  ],
  "resources": [
    {
      "name": "workspace-documentation",
      "uriTemplate": "onf://workspaces/{workspaceId}/documentation",
      "description": "Editable concise context with an independent revision. Read before editing, then keep purpose/wiring/operating notes accurate and short.",
      "mimeType": "application/json"
    },
    {
      "name": "workflow-documentation",
      "uriTemplate": "onf://workflows/{workflowId}/documentation",
      "description": "Editable concise context with an independent revision. Read before editing, then keep purpose/wiring/operating notes accurate and short.",
      "mimeType": "application/json"
    },
    {
      "name": "frame-documentation",
      "uriTemplate": "onf://workflows/{workflowId}/frames/{frameId}/documentation",
      "description": "Editable concise context with an independent revision. Read before editing, then keep purpose/wiring/operating notes accurate and short.",
      "mimeType": "application/json"
    },
    {
      "name": "subflows",
      "uri": "onf://subflows",
      "description": "Reusable typed subflow definitions; normal immutable node assets.",
      "mimeType": "application/json"
    },
    {
      "name": "runtime-waits",
      "uri": "onf://runtime",
      "description": "Pending durable run waits; no resume result bodies.",
      "mimeType": "application/json"
    },
    {
      "name": "human-inbox",
      "uri": "onf://inbox",
      "description": "Pending human decisions; reading does not approve.",
      "mimeType": "application/json"
    },
    {
      "name": "workers",
      "uri": "onf://workers",
      "description": "Local pool capabilities, concurrency and health.",
      "mimeType": "application/json"
    },
    {
      "name": "agent-guide",
      "uri": "onf://guide",
      "description": "Start here: ONF authoring, discovery, safe execution and pinned-version workflow for agents.",
      "mimeType": "text/markdown"
    },
    {
      "name": "data-model",
      "uri": "onf://model",
      "description": "Exact graph, definition, socket, trigger and runtime contracts with compatibility and versioning rules.",
      "mimeType": "application/json"
    },
    {
      "name": "library",
      "uri": "onf://library",
      "description": "Current shared library metadata and socket contracts, including built-ins and custom assets. Code/default payloads omitted; read a selected version for code.",
      "mimeType": "application/json"
    },
    {
      "name": "library-organization",
      "uri": "onf://library/organization",
      "description": "Shared folders and independently versioned per-definition discovery metadata; not runtime definition versions.",
      "mimeType": "application/json"
    },
    {
      "name": "library-packs",
      "uri": "onf://library/packs",
      "description": "Installable pack metadata. Workspace installation is independently revision guarded and affects authoring discovery only.",
      "mimeType": "application/json"
    },
    {
      "name": "storage-overview",
      "uri": "onf://storage",
      "description": "Workspace and namespace scalar counts only. Use selected tools for explicit private reads.",
      "mimeType": "application/json"
    },
    {
      "name": "storage-model",
      "uri": "onf://storage/model",
      "description": "Exact typed operation argument/result schemas, limits, workspace scope and runtime access.",
      "mimeType": "application/json"
    },
    {
      "name": "workspaces",
      "uri": "onf://workspaces",
      "description": "Current project workspaces and IDs. Workspaces organise workflows, not secret access.",
      "mimeType": "application/json"
    },
    {
      "name": "workflows",
      "uri": "onf://workflows",
      "description": "Workflow metadata, enabled trigger settings, revisions, graph sizes and individual resource URIs; no graph payloads.",
      "mimeType": "application/json"
    },
    {
      "name": "triggers",
      "uri": "onf://triggers",
      "description": "All trigger types and their node instances with pause state, branch health and active-run counts; no credentials.",
      "mimeType": "application/json"
    },
    {
      "name": "runs",
      "uri": "onf://runs",
      "description": "Most recent retained runs (API limit 250), status and IDs. No input/output/log payloads; select one run for diagnosis.",
      "mimeType": "application/json"
    },
    {
      "name": "runtime-settings",
      "uri": "onf://settings",
      "description": "Current concurrent-run limit, default timeout and history-retention settings.",
      "mimeType": "application/json"
    },
    {
      "name": "secret-names",
      "uri": "onf://secrets",
      "description": "Secret names and update timestamps only. Never returns secret values, webhook keys or the encryption key.",
      "mimeType": "application/json"
    },
    {
      "name": "documentation-index",
      "uri": "onf://docs",
      "description": "Explicit allowlist of optional local Markdown guides. Embedded agent/model guides work without local documentation.",
      "mimeType": "application/json"
    },
    {
      "name": "workspace",
      "uriTemplate": "onf://workspaces/{workspaceId}",
      "description": "Selected workspace with workflow summaries and stable IDs.",
      "mimeType": "application/json"
    },
    {
      "name": "workflow",
      "uriTemplate": "onf://workflows/{workflowId}",
      "description": "Selected complete workflow graph, literal inputs, configuration, trigger settings and current revision. Treat user data as potentially sensitive.",
      "mimeType": "application/json"
    },
    {
      "name": "definition-versions",
      "uriTemplate": "onf://definitions/{definitionId}/versions",
      "description": "All immutable versions of one library asset, with socket/dependency metadata and exact version URIs; code omitted.",
      "mimeType": "application/json"
    },
    {
      "name": "definition-version",
      "uriTemplate": "onf://definitions/{definitionId}/versions/{version}",
      "description": "An exact immutable library definition, including selected source code, schemas and pinned executor/type dependencies.",
      "mimeType": "application/json"
    },
    {
      "name": "run",
      "uriTemplate": "onf://runs/{runId}",
      "description": "Selected retained run details for diagnosis; includes user input/output/logs. Does not execute or retry.",
      "mimeType": "application/json"
    },
    {
      "name": "run-snapshot",
      "uriTemplate": "onf://runs/{runId}/snapshot",
      "description": "Historic workflow/dependency snapshot. Includes selected source code, not current versions or secret values; unavailable for some old runs.",
      "mimeType": "application/json"
    },
    {
      "name": "documentation",
      "uriTemplate": "onf://docs/{filename}",
      "description": "Read one allowlisted local ONF Markdown guide. No arbitrary paths, runtime data, keys or source-manifest files are readable.",
      "mimeType": "text/markdown"
    }
  ],
  "prompts": [
    {
      "name": "build-workflow",
      "description": "Construct a typed, version-pinned manual workflow from a goal; discover reusable assets, save and validate before execution.",
      "argumentsSchema": {
        "type": "object",
        "properties": {
          "goal": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12000
          },
          "workspace": {
            "type": "string",
            "maxLength": 200
          }
        },
        "required": [
          "goal"
        ]
      }
    },
    {
      "name": "author-node",
      "description": "Author or publish a reusable typed custom node with an async function body and explicit dependency pins.",
      "argumentsSchema": {
        "type": "object",
        "properties": {
          "goal": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12000
          },
          "definitionId": {
            "type": "string",
            "maxLength": 160
          }
        },
        "required": [
          "goal"
        ]
      }
    },
    {
      "name": "author-trigger",
      "description": "Design reusable trigger code together with the correct workflow trigger and durable deduplication behavior.",
      "argumentsSchema": {
        "type": "object",
        "properties": {
          "goal": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12000
          }
        },
        "required": [
          "goal"
        ]
      }
    },
    {
      "name": "author-executor",
      "description": "Create a trusted JavaScript executor wrapper, preserving execute/context contracts and pinned consumers.",
      "argumentsSchema": {
        "type": "object",
        "properties": {
          "goal": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12000
          }
        },
        "required": [
          "goal"
        ]
      }
    },
    {
      "name": "author-type",
      "description": "Create or evolve a reusable JSON Schema socket type with explicit compatibility and migration considerations.",
      "argumentsSchema": {
        "type": "object",
        "properties": {
          "goal": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12000
          }
        },
        "required": [
          "goal"
        ]
      }
    },
    {
      "name": "diagnose-run",
      "description": "Investigate a retained execution using its historical snapshot and per-node evidence, without rerunning it.",
      "argumentsSchema": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "question": {
            "type": "string",
            "maxLength": 12000
          }
        },
        "required": [
          "runId"
        ]
      }
    },
    {
      "name": "review-workflow",
      "description": "Review a saved workflow for graph/type/pin errors, trigger behavior, retries, secrets and external side effects.",
      "argumentsSchema": {
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "focus": {
            "type": "string",
            "maxLength": 12000
          }
        },
        "required": [
          "workflowId"
        ]
      }
    }
  ],
  "sourceFiles": [
    {
      "file": "server/ai-proposal-tools.ts",
      "sha256": "628f1edfd00279ff949e64bfd6a82eda2cff0a9311f0e9beb30cdbe01395505a"
    },
    {
      "file": "server/ai-proposals.ts",
      "sha256": "5e9efccdbf3d4a4a9e3e9a3886a1081bba5cc8ec64ef38dca1d8f286f67c443a"
    },
    {
      "file": "server/context-docs.ts",
      "sha256": "dedb505070d419840218b8b4c532bf3874efd29f094c87578d517c52f5a8e83e"
    },
    {
      "file": "server/control-flow-tools.ts",
      "sha256": "d6719dd8c47f428900837c4d9d5645bdf540c335f82c4fde26d0f33476cf8098"
    },
    {
      "file": "server/feature-tools.ts",
      "sha256": "87c35ff321f4c822631976f0a9f5f48198674de5697caa2289f75228748946e4"
    },
    {
      "file": "server/library-pack-tools.ts",
      "sha256": "59103769e232809363eeee31168192124b9dc77161e98d5696a3560432bb8810"
    },
    {
      "file": "server/library-packs.ts",
      "sha256": "8dc069a9f047e83abe2ee1f627acb09a5559e0f737d39dc5f9cca812244b50a3"
    },
    {
      "file": "server/library.ts",
      "sha256": "e5b3bb6598319f605b08bc37daf4481a8e29377934debba1be20a07553b02cf9"
    },
    {
      "file": "server/mcp-graph.ts",
      "sha256": "b5f3aa489357f97998484eaf15b4de730c5054de0859794232b595411d292b18"
    },
    {
      "file": "server/mcp-resources.ts",
      "sha256": "3fe6f612467e5b5632e9640436bbd4310b8c31d384965468e4dee1ad1dcd3daa"
    },
    {
      "file": "server/mcp-tools.ts",
      "sha256": "a468e7198c799561a1fac23864a8616fc455faecc8d7e0840797e2b39a697c1c"
    },
    {
      "file": "server/platform-tools.ts",
      "sha256": "c15e6d40486a57cec582430d18556682ded310e73c6ef84e200238e7d26931b0"
    },
    {
      "file": "server/variable-tools.ts",
      "sha256": "28a8e55e93042e463a843b43fa688f1203d876e08e8a13e81253658d93d35cc7"
    },
    {
      "file": "server/variables.ts",
      "sha256": "1c1ef3df52ec28aefcbf9d96769aa4875c60860dc44b3abe24281da4d605797a"
    },
    {
      "file": "shared/ai-help.ts",
      "sha256": "d98dce09d531e0e09bbd7b38c76258b29ab1697fa17c69ade45fac85cdee16c9"
    },
    {
      "file": "shared/context-docs.ts",
      "sha256": "41253b39fb28e0203d30949163f1a7e011d582fed3d70501fa93552803fd0261"
    },
    {
      "file": "shared/library-discovery.ts",
      "sha256": "0b9009153cf6423deb19b8608868c2fa982afdff675a45f3a69c77f78f2ae8d7"
    },
    {
      "file": "shared/model.ts",
      "sha256": "0ad8a679f7285a91044bd0e4a5aff595d80742b8fa6295c91c542ec2ddb9c9ed"
    },
    {
      "file": "shared/storage-model.ts",
      "sha256": "392a81462688c3274105ec5ea308ae743aed67c8862a8bd35823aecb639e97ef"
    },
    {
      "file": "shared/variable-contracts.ts",
      "sha256": "59950a25c3356d9112fdd094af7bf9bcb39a04def7ba5e4b77afc6dc8cb152df"
    },
    {
      "file": "shared/variables.ts",
      "sha256": "d3db57d0702886f277e601b3795fae539cda8f78ea015e1f054c6d0dc2c24cf5"
    }
  ],
  "notes": [
    "Source-derived snapshot, not a claim about any running installation or client inventory.",
    "Tool input schemas reproduce registration argument shapes. Server-side refinements, dependency checks and execution semantics remain additional constraints; JSON Schema cannot represent every Zod refinement.",
    "No tool callback, resource reader, provider operation, store module, key file or runtime database was executed or opened."
  ]
}
