Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as FlowRunner Prompt to Flow. If you published it, claim ownership there.

Apply flow changes

apply_operations
Destructive

Apply a batch of operations to the flow at versionId, in order, then save. One call takes 1-100 operations. Operations: add_block, configure_block, wire_edge, remove_edge, remove_block, set_condition_parts, add_router_case, remove_router_case, add_ai_router_decision, set_data_bucket_fields, add_agent_tool, configure_agent_tool, remove_agent_tool, add_placeholder, update_placeholder, remove_placeholder, set_flow_descriptions; each variant describes its fields. A LIVE version (list_flows' liveVersionId) cannot be edited: the whole batch is rejected. A version becomes editable after stop_flow; pause_flow does not make it editable. start_flow makes it LIVE again. Atomic: if any operation fails, nothing is applied or saved; the error names the failed operation's index. No part of a failed batch is kept. localAlias: add_block (nodeId), add_router_case (caseId), add_ai_router_decision (decisionId) and add_agent_tool (the new toolId) accept a localAlias — any string (e.g. "trigger1"), unique across the batch. Any later operation in the same batch can pass it wherever that id is expected (nodeId, groupId, fromNodeId, toNodeId, branch, caseId, toolId); it is replaced by the generated id once the creating operation has run. It exists only within this call; anything created before the batch is referenced by its real id. Result: { id, version, elementCount, status, errorMessage, results, issues, suggestions } — status/errorMessage: the server's verdict; results: one { index, operationName, operationResult } per operation, in order; issues: validation state of the final flow after all operations (as get_flow_summary shows), not per operation — they never block the save and stay until a later batch changes them. suggestions: optional improvements (descriptions for callers); they never affect running the flow.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspaceId": "<workspaceId>",
      "versionId": "<versionId>",
      "operations": "<operations>"
    },
    "name": "apply_operations"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionIdYes
operationsYes
workspaceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / operations / items / oneOf
      Previous value: -[
      -  {
      -    "description": "Add a block. Result: { nodeId, name, resultAlias, issues } — {{resultAlias->field}} references take resultAlias exactly as returned.",
      -    "properties": {
      -      "config": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "groupId": {
      -        "description": "nodeId or localAlias of a container (repeat, list-iterator, actions-group, triggers-group, sub-flow) to nest this block in; absent for a top-level block. Details: readme \"Groups & loops\".",
      -        "type": "string"
      -      },
      -      "localAlias": {
      -        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations). Also becomes the block's resultAlias unless config.resultAlias is set.",
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "add_block",
      -        "type": "string"
      -      },
      -      "type": {
      -        "description": "Block type id; get_block_schema(type) describes it.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Patch an existing block's fields. Unknown keys are rejected. A block type with a registered schema validates the whole patch (type, shape, enum). Extension and trigger blocks (no registered schema) take method params under `params` (see get_block_schema `params`; types in `inputSchema`): for an action, { text, type? } like top-level fields, or for a `structured: true` param a plain object / array of objects keyed by its sub-field names; for a polling trigger, plain values — { text } is unwrapped to the declared type, a {{reference}} is rejected. `labels`: { [paramName]: displayLabel } for params with a non-null `dictionary` — one label per param, for the value set in `params`. A polling trigger also takes `frequency`: { schedule: \"once\"|\"custom\"|\"daily\"|\"weekly\", ... } — per-schedule shape in get_block_schema `inputSchema`. Other top-level fields can go in the same patch as `params`/`frequency`.",
      -    "properties": {
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "configure_block",
      -        "type": "string"
      -      },
      -      "patch": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "patch"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Connect fromNodeId to toNodeId as the next step. branch: only for source types that have branches (see get_block_schema) — e.g. a caseId or decisionId, or its localAlias within the batch. A {{resultAlias->field}} reference resolves only from a wired, reachable predecessor. An error handler is wired without a branch; one per block. Rejected: self-loops, duplicate edges (same source, target, branch), cycles, and edges from a block that ends the flow (e.g. return-result).",
      -    "properties": {
      -      "branch": {
      -        "type": "string"
      -      },
      -      "fromNodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "wire_edge",
      -        "type": "string"
      -      },
      -      "toNodeId": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "fromNodeId",
      -      "toNodeId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Remove the edge between two blocks without removing the blocks. For a Condition/Router source, also clears the matching branch config.",
      -    "properties": {
      -      "fromNodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "remove_edge",
      -        "type": "string"
      -      },
      -      "toNodeId": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "fromNodeId",
      -      "toNodeId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Remove a block and its edges; a disconnected block stays in the flow. For a container (repeat, list-iterator, actions-group, triggers-group) also removes every nested block, recursively. Result: { removed, removedChildren, nodeCount } — removedChildren lists the cascade-removed blocks.",
      -    "properties": {
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "remove_block",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Set the comparison logic of a Condition, a Repeat (\"keep looping while\") or an External Callback block; configure_block rejects conditionParts/conditionGrouping. operation: an operator value (not a name) from list_condition_operators; unknown values are rejected with the operator list. property/values: { text, type? } like configure_block — on a literal, type \"NUMBER\" for a numeric comparison (propertyType \"INT\"/\"DOUBLE\") or \"JSON\" for an object/array, otherwise the value is text whatever propertyType says; type with a {{reference}} is rejected. Example: { nodeId, parts: [{ operation: \">\", propertyType: \"INT\", property: { text: \"5\", type: \"NUMBER\" }, values: [{ text: \"3\", type: \"NUMBER\" }] }] }. combinator: \"AND\" (default, all parts true) or \"OR\" (any part true) — one combinator for all parts.",
      -    "properties": {
      -      "combinator": {
      -        "enum": [
      -          "AND",
      -          "OR"
      -        ],
      -        "type": "string"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "set_condition_parts",
      -        "type": "string"
      -      },
      -      "parts": {
      -        "items": {
      -          "properties": {
      -            "operation": {
      -              "type": "string"
      -            },
      -            "property": {
      -              "properties": {
      -                "asJson": {
      -                  "description": "Parse the resolved text as JSON (console \"As JSON\"). Omitted = off.",
      -                  "type": "boolean"
      -                },
      -                "text": {
      -                  "type": "string"
      -                },
      -                "type": {
      -                  "enum": [
      -                    "NUMBER",
      -                    "JSON"
      -                  ],
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "text"
      -              ],
      -              "type": "object"
      -            },
      -            "propertyType": {
      -              "type": "string"
      -            },
      -            "values": {
      -              "items": {
      -                "properties": {
      -                  "asJson": {
      -                    "description": "Parse the resolved text as JSON (console \"As JSON\"). Omitted = off.",
      -                    "type": "boolean"
      -                  },
      -                  "text": {
      -                    "type": "string"
      -                  },
      -                  "type": {
      -                    "enum": [
      -                      "NUMBER",
      -                      "JSON"
      -                    ],
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "text"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "operation",
      -            "property"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "parts"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Add a case to a Router (Value Router) block; configure_block cannot add one. values: { text, type? } like configure_block, type \"NUMBER\" for a number; one value = exact match, several = matches any of them. Result: { caseId } — it is wire_edge's branch value, or localAlias within the batch. A new Router has only the default \"Everything Else\" case, which wire_edge uses when branch is omitted; one call adds one case. Numeric ranges are not supported; a Condition compares numbers.",
      -    "properties": {
      -      "label": {
      -        "type": "string"
      -      },
      -      "localAlias": {
      -        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations).",
      -        "type": "string"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "add_router_case",
      -        "type": "string"
      -      },
      -      "values": {
      -        "items": {
      -          "properties": {
      -            "asJson": {
      -              "description": "Parse the resolved text as JSON (console \"As JSON\"). Omitted = off.",
      -              "type": "boolean"
      -            },
      -            "text": {
      -              "type": "string"
      -            },
      -            "type": {
      -              "enum": [
      -                "NUMBER",
      -                "JSON"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "text"
      -          ],
      -          "type": "object"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "values"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Remove a case added with add_router_case, by caseId (or its localAlias); the Router's other cases keep their ids and wiring. Also removes edges wired to that case. The default \"Everything Else\" case cannot be removed. Result: { removed, removedEdges, nodeId, name, resultAlias, issues }.",
      -    "properties": {
      -      "caseId": {
      -        "type": "string"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "remove_router_case",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "caseId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Add a named decision to an AI Router block (expectedDecisions; not a Router's add_router_case; configure_block cannot add one). Result: { decisionId } — it is wire_edge's branch value, or localAlias within the batch. A new AI Router has only the default decision, which wire_edge uses when branch is omitted; one call adds one named outcome.",
      -    "properties": {
      -      "label": {
      -        "type": "string"
      -      },
      -      "localAlias": {
      -        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations).",
      -        "type": "string"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "add_ai_router_decision",
      -        "type": "string"
      -      },
      -      "value": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Set the fields of a Data Bucket (\"Set Variable\") block; configure_block cannot set them. value: { text, type? } like configure_block, type \"NUMBER\"/\"JSON\" for a non-text value. Example: { nodeId, fields: [{ name: \"status\", value: { text: \"{{HTTP Request Result->id}}\" } }, { name: \"count\", value: { text: \"5\", type: \"NUMBER\" } }] }. Result: { nodeId, name, resultAlias, issues, references } — references: { [fieldName]: string }, the exact {{Data Buckets:<bucket> - <field>->}} reference per field, the only form that resolves ({{resultAlias->field}} does not apply: Data Bucket has no result).",
      -    "properties": {
      -      "fields": {
      -        "items": {
      -          "properties": {
      -            "name": {
      -              "type": "string"
      -            },
      -            "value": {
      -              "properties": {
      -                "asJson": {
      -                  "description": "Parse the resolved text as JSON (console \"As JSON\"). Omitted = off.",
      -                  "type": "boolean"
      -                },
      -                "text": {
      -                  "type": "string"
      -                },
      -                "type": {
      -                  "enum": [
      -                    "NUMBER",
      -                    "JSON"
      -                  ],
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "text"
      -              ],
      -              "type": "object"
      -            }
      -          },
      -          "required": [
      -            "name",
      -            "value"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "set_data_bucket_fields",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "fields"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Attach a tool to an AI Agent block; the agent calls it when it decides to (add_block of the same extension makes it a step instead). Result: { toolId, issues } — toolId for configure_agent_tool / remove_agent_tool. Required fields are defaulted where possible (e.g. connectionId of an OAuth-gated action); issues lists only what this tool still misses (the agent's and other tools' issues: get_node_details / get_flow_summary); configure_agent_tool sets those fields. Rejected if this tool is already attached to the node.",
      -    "properties": {
      -      "localAlias": {
      -        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations). Aliases the returned toolId, not toolDefinitionId; they may differ; later operations take the returned toolId.",
      -        "type": "string"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "add_agent_tool",
      -        "type": "string"
      -      },
      -      "toolDefinitionId": {
      -        "description": "Which tool to attach: an id from search_extensions or list_extension_methods, both called with isAgentTool: true (a Knowledge Base is listed only then), or a toolDefinitionId from list_block_types → agentTools.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "toolDefinitionId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Patch a tool attached to an AI Agent, by nodeId + toolId (from add_agent_tool, or its localAlias). Examples: { connectionId } for an OAuth-gated tool; an expression field as { text, type? } like configure_block. For an extension-action or MCP-server-method tool, method params go under `params` ({ text, type? } each, e.g. Slack \"send message\" channel), with `labels` as in configure_block; params as top-level keys are rejected as unknown fields. The agent's own fields (systemPrompt, userPrompt, aiProvider, ...) are set with configure_block. A field set here is fixed: the agent cannot see or override it and every call uses it; a field left unset is filled by the agent on each call — this holds for every field, not only connectionId.",
      -    "properties": {
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "configure_agent_tool",
      -        "type": "string"
      -      },
      -      "patch": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "toolId": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "toolId",
      -      "patch"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Detach a tool from an AI Agent block by toolId (from add_agent_tool, or its localAlias).",
      -    "properties": {
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "remove_agent_tool",
      -        "type": "string"
      -      },
      -      "toolId": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "toolId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Add a Placeholder Data item (a flow setting). value by type: DATETIME unix ms, OBJECT/ARRAY JSON, API_KEY an id from list_ai_api_key_setups; when omitted the value stays empty for the user to fill (the flow cannot start while it is empty). Result: { name, type, value, reference } — reference is the exact expression ({{Placeholder Data: <name>->}}); for a JSON field the path follows: ->a.b.",
      -    "properties": {
      -      "description": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "add_placeholder",
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "STRING",
      -          "INT",
      -          "DOUBLE",
      -          "BOOLEAN",
      -          "DATETIME",
      -          "OBJECT",
      -          "ARRAY",
      -          "API_KEY"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "additionalProperties": {},
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "items": {},
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "name",
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Change a Placeholder Data item; fields as add_placeholder, omitted ones stay. newName renames it and every block reference follows. value \"\" clears it. Result as add_placeholder.",
      -    "properties": {
      -      "description": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "newName": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "update_placeholder",
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "STRING",
      -          "INT",
      -          "DOUBLE",
      -          "BOOLEAN",
      -          "DATETIME",
      -          "OBJECT",
      -          "ARRAY",
      -          "API_KEY"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "additionalProperties": {},
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "items": {},
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Remove a Placeholder Data item. Result: { removed, brokenReferences } — { nodeId, field } of each block field still referencing it.",
      -    "properties": {
      -      "name": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "remove_placeholder",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Set the flow's descriptions. flow: what the flow does (replaces the old text). initialDataFields: description per Initial Data field, keyed by the field path as written after \"Initial Data:\" in a pill — dot-separated keys, array items as [0] or [last] after a dot (a.[0].b); merged key by key, \"\" clears a key. initialData: description of the whole Initial Data object (replaces the old text); kept only while a block reads the whole object. A field description is kept only while a block reads that field; a path nothing reads is dropped and reported in suggestions.",
      -    "properties": {
      -      "flow": {
      -        "type": "string"
      -      },
      -      "initialData": {
      -        "type": "string"
      -      },
      -      "initialDataFields": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "operationName": {
      -        "const": "set_flow_descriptions",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "Add a block. Result: { nodeId, name, resultAlias, issues } — {{resultAlias->field}} references take resultAlias exactly as returned.",
      +    "properties": {
      +      "config": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "groupId": {
      +        "description": "nodeId or localAlias of a container (repeat, list-iterator, actions-group, triggers-group, sub-flow) to nest this block in; absent for a top-level block. Details: readme \"Groups & loops\".",
      +        "type": "string"
      +      },
      +      "localAlias": {
      +        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations). Also becomes the block's resultAlias unless config.resultAlias is set.",
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "add_block",
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Block type id; get_block_schema(type) describes it.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Patch an existing block's fields. Unknown keys are rejected. A block type with a registered schema validates the whole patch (type, shape, enum). Extension and trigger blocks (no registered schema) take method params under `params` (see get_block_schema `params`; shapes in `inputSchema`): for an action, { text, type? } per value — a literal is checked as the block checks it at run time (a closed choice takes an option value, not its label) and opens on its widget, a {{reference}} is not checked; an array of those for a list; for a `structured: true` param a plain object / array of objects keyed by its sub-field names (any subset of them). Any list or structured param also takes one { text } for the whole value (a {{reference}} or JSON). Defaults, empty lists, clearing and nesting: readme \"Param values\". For a polling trigger, plain values or { text }; a {{reference}} is rejected. `labels`: { [paramName]: displayLabel } for params with a non-null `dictionary` — one label per param, for the value set in `params`. A polling trigger also takes `frequency`: { schedule: \"once\"|\"custom\"|\"daily\"|\"weekly\", ... } — per-schedule shape in get_block_schema `inputSchema`. Other top-level fields can go in the same patch as `params`/`frequency`.",
      +    "properties": {
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "configure_block",
      +        "type": "string"
      +      },
      +      "patch": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "patch"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Connect fromNodeId to toNodeId as the next step. branch: only for source types that have branches (see get_block_schema) — e.g. a caseId or decisionId, or its localAlias within the batch. A {{resultAlias->field}} reference resolves only from a wired, reachable predecessor. An error handler is wired without a branch; one per block. Rejected: self-loops, duplicate edges (same source, target, branch), cycles, and edges from a block that ends the flow (e.g. return-result).",
      +    "properties": {
      +      "branch": {
      +        "type": "string"
      +      },
      +      "fromNodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "wire_edge",
      +        "type": "string"
      +      },
      +      "toNodeId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "fromNodeId",
      +      "toNodeId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Remove the edge between two blocks without removing the blocks. For a Condition/Router source, also clears the matching branch config.",
      +    "properties": {
      +      "fromNodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "remove_edge",
      +        "type": "string"
      +      },
      +      "toNodeId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "fromNodeId",
      +      "toNodeId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Remove a block and its edges; a disconnected block stays in the flow. For a container (repeat, list-iterator, actions-group, triggers-group) also removes every nested block, recursively. Result: { removed, removedChildren, nodeCount } — removedChildren lists the cascade-removed blocks.",
      +    "properties": {
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "remove_block",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Set the comparison logic of a Condition, a Repeat (\"keep looping while\") or an External Callback block; configure_block rejects conditionParts/conditionGrouping. operation: an operator value (not a name) from list_condition_operators; unknown values are rejected with the operator list. property/values: { text, type? } like configure_block — on a literal, type \"NUMBER\" for a numeric comparison (propertyType \"INT\"/\"DOUBLE\") or \"JSON\" for an object/array, otherwise the value is text whatever propertyType says; type with a {{reference}} is rejected. Example: { nodeId, parts: [{ operation: \">\", propertyType: \"INT\", property: { text: \"5\", type: \"NUMBER\" }, values: [{ text: \"3\", type: \"NUMBER\" }] }] }. combinator: \"AND\" (default, all parts true) or \"OR\" (any part true) — one combinator for all parts.",
      +    "properties": {
      +      "combinator": {
      +        "enum": [
      +          "AND",
      +          "OR"
      +        ],
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "set_condition_parts",
      +        "type": "string"
      +      },
      +      "parts": {
      +        "items": {
      +          "properties": {
      +            "operation": {
      +              "type": "string"
      +            },
      +            "property": {
      +              "properties": {
      +                "asJson": {
      +                  "description": "Parse the resolved text as JSON (console \"As JSON\"). Omitted = off.",
      +                  "type": "boolean"
      +                },
      +                "text": {
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "enum": [
      +                    "NUMBER",
      +                    "JSON"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "text"
      +              ],
      +              "type": "object"
      +            },
      +            "propertyType": {
      +              "type": "string"
      +            },
      +            "values": {
      +              "items": {
      +                "properties": {
      +                  "asJson": {
      +                    "description": "Parse the resolved text as JSON (console \"As JSON\"). Omitted = off.",
      +                    "type": "boolean"
      +                  },
      +                  "text": {
      +                    "type": "string"
      +                  },
      +                  "type": {
      +                    "enum": [
      +                      "NUMBER",
      +                      "JSON"
      +                    ],
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "text"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "operation",
      +            "property"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "parts"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Add a case to a Router (Value Router) block; configure_block cannot add one. values: { text, type? } like configure_block, type \"NUMBER\" for a number; one value = exact match, several = matches any of them. Result: { caseId } — it is wire_edge's branch value, or localAlias within the batch. A new Router has only the default \"Everything Else\" case, which wire_edge uses when branch is omitted; one call adds one case. Numeric ranges are not supported; a Condition compares numbers.",
      +    "properties": {
      +      "label": {
      +        "type": "string"
      +      },
      +      "localAlias": {
      +        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations).",
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "add_router_case",
      +        "type": "string"
      +      },
      +      "values": {
      +        "items": {
      +          "properties": {
      +            "asJson": {
      +              "description": "Parse the resolved text as JSON (console \"As JSON\"). Omitted = off.",
      +              "type": "boolean"
      +            },
      +            "text": {
      +              "type": "string"
      +            },
      +            "type": {
      +              "enum": [
      +                "NUMBER",
      +                "JSON"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "text"
      +          ],
      +          "type": "object"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "values"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Remove a case added with add_router_case, by caseId (or its localAlias); the Router's other cases keep their ids and wiring. Also removes edges wired to that case. The default \"Everything Else\" case cannot be removed. Result: { removed, removedEdges, nodeId, name, resultAlias, issues }.",
      +    "properties": {
      +      "caseId": {
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "remove_router_case",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "caseId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Add a named decision to an AI Router block (expectedDecisions; not a Router's add_router_case; configure_block cannot add one). Result: { decisionId } — it is wire_edge's branch value, or localAlias within the batch. A new AI Router has only the default decision, which wire_edge uses when branch is omitted; one call adds one named outcome.",
      +    "properties": {
      +      "label": {
      +        "type": "string"
      +      },
      +      "localAlias": {
      +        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations).",
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "add_ai_router_decision",
      +        "type": "string"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Set the fields of a Data Bucket (\"Set Variable\") block; configure_block cannot set them. value: { text, type? } like configure_block, type \"NUMBER\"/\"JSON\" for a non-text value. Example: { nodeId, fields: [{ name: \"status\", value: { text: \"{{HTTP Request Result->id}}\" } }, { name: \"count\", value: { text: \"5\", type: \"NUMBER\" } }] }. Result: { nodeId, name, resultAlias, issues, references } — references: { [fieldName]: string }, the exact {{Data Buckets:<bucket> - <field>->}} reference per field, the only form that resolves ({{resultAlias->field}} does not apply: Data Bucket has no result).",
      +    "properties": {
      +      "fields": {
      +        "items": {
      +          "properties": {
      +            "name": {
      +              "type": "string"
      +            },
      +            "value": {
      +              "properties": {
      +                "asJson": {
      +                  "description": "Parse the resolved text as JSON (console \"As JSON\"). Omitted = off.",
      +                  "type": "boolean"
      +                },
      +                "text": {
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "enum": [
      +                    "NUMBER",
      +                    "JSON"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "text"
      +              ],
      +              "type": "object"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "value"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "set_data_bucket_fields",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "fields"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Attach a tool to an AI Agent block; the agent calls it when it decides to (add_block of the same extension makes it a step instead). Result: { toolId, issues } — toolId for configure_agent_tool / remove_agent_tool. Required fields are defaulted where possible (e.g. connectionId of an OAuth-gated action); issues lists only what this tool still misses (the agent's and other tools' issues: get_node_details / get_flow_summary); configure_agent_tool sets those fields. Rejected if this tool is already attached to the node.",
      +    "properties": {
      +      "localAlias": {
      +        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations). Aliases the returned toolId, not toolDefinitionId; they may differ; later operations take the returned toolId.",
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "add_agent_tool",
      +        "type": "string"
      +      },
      +      "toolDefinitionId": {
      +        "description": "Which tool to attach: an id from search_extensions or list_extension_methods, both called with isAgentTool: true (a Knowledge Base is listed only then), or a toolDefinitionId from list_block_types → agentTools.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "toolDefinitionId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Patch a tool attached to an AI Agent, by nodeId + toolId (from add_agent_tool, or its localAlias). Examples: { connectionId } for an OAuth-gated tool; an expression field as { text, type? } like configure_block. For an extension-action or MCP-server-method tool, method params go under `params` ({ text, type? } each, e.g. Slack \"send message\" channel), with `labels` as in configure_block; params as top-level keys are rejected as unknown fields. The agent's own fields (systemPrompt, userPrompt, aiProvider, ...) are set with configure_block. A field set here is fixed: the agent cannot see or override it and every call uses it; a field left unset is filled by the agent on each call — this holds for every field, not only connectionId.",
      +    "properties": {
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "configure_agent_tool",
      +        "type": "string"
      +      },
      +      "patch": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "toolId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "toolId",
      +      "patch"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Detach a tool from an AI Agent block by toolId (from add_agent_tool, or its localAlias).",
      +    "properties": {
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "remove_agent_tool",
      +        "type": "string"
      +      },
      +      "toolId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "toolId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Add a Placeholder Data item (a flow setting). value by type: DATETIME unix ms, OBJECT/ARRAY JSON, API_KEY an id from list_ai_api_key_setups; when omitted the value stays empty for the user to fill (the flow cannot start while it is empty). Result: { name, type, value, reference } — reference is the exact expression ({{Placeholder Data: <name>->}}); for a JSON field the path follows: ->a.b.",
      +    "properties": {
      +      "description": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "add_placeholder",
      +        "type": "string"
      +      },
      +      "type": {
      +        "enum": [
      +          "STRING",
      +          "INT",
      +          "DOUBLE",
      +          "BOOLEAN",
      +          "DATETIME",
      +          "OBJECT",
      +          "ARRAY",
      +          "API_KEY"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "items": {},
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "name",
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Change a Placeholder Data item; fields as add_placeholder, omitted ones stay. newName renames it and every block reference follows. value \"\" clears it. Result as add_placeholder.",
      +    "properties": {
      +      "description": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "newName": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "update_placeholder",
      +        "type": "string"
      +      },
      +      "type": {
      +        "enum": [
      +          "STRING",
      +          "INT",
      +          "DOUBLE",
      +          "BOOLEAN",
      +          "DATETIME",
      +          "OBJECT",
      +          "ARRAY",
      +          "API_KEY"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "items": {},
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Remove a Placeholder Data item. Result: { removed, brokenReferences } — { nodeId, field } of each block field still referencing it.",
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "remove_placeholder",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Set the flow's descriptions. flow: what the flow does (replaces the old text). initialDataFields: description per Initial Data field, keyed by the field path as written after \"Initial Data:\" in a pill — dot-separated keys, array items as [0] or [last] after a dot (a.[0].b); merged key by key, \"\" clears a key. initialData: description of the whole Initial Data object (replaces the old text); kept only while a block reads the whole object. A field description is kept only while a block reads that field; a path nothing reads is dropped and reported in suggestions.",
      +    "properties": {
      +      "flow": {
      +        "type": "string"
      +      },
      +      "initialData": {
      +        "type": "string"
      +      },
      +      "initialDataFields": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "operationName": {
      +        "const": "set_flow_descriptions",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / operations / items / oneOf
      Previous value: -[
      -  {
      -    "description": "Add a block. Result: { nodeId, name, resultAlias, issues } — {{resultAlias->field}} references take resultAlias exactly as returned.",
      -    "properties": {
      -      "config": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "groupId": {
      -        "description": "nodeId or localAlias of a container (repeat, list-iterator, actions-group, triggers-group, sub-flow) to nest this block in; absent for a top-level block. Details: readme \"Groups & loops\".",
      -        "type": "string"
      -      },
      -      "localAlias": {
      -        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations). Also becomes the block's resultAlias unless config.resultAlias is set.",
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "add_block",
      -        "type": "string"
      -      },
      -      "type": {
      -        "description": "Block type id; get_block_schema(type) describes it.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Patch an existing block's fields. Unknown keys are rejected. A block type with a registered schema validates the whole patch (type, shape, enum). Extension and trigger blocks (no registered schema) take method params under `params` (see get_block_schema `params`; types in `inputSchema`): for an action, { text, type? } like top-level fields, or for a `structured: true` param a plain object / array of objects keyed by its sub-field names; for a polling trigger, plain values — { text } is unwrapped to the declared type, a {{reference}} is rejected. `labels`: { [paramName]: displayLabel } for params with a non-null `dictionary` — one label per param, for the value set in `params`. A polling trigger also takes `frequency`: { schedule: \"once\"|\"custom\"|\"daily\"|\"weekly\", ... } — per-schedule shape in get_block_schema `inputSchema`. Other top-level fields can go in the same patch as `params`/`frequency`.",
      -    "properties": {
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "configure_block",
      -        "type": "string"
      -      },
      -      "patch": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "patch"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Connect fromNodeId to toNodeId as the next step. branch: only for source types that have branches (see get_block_schema) — e.g. a caseId or decisionId, or its localAlias within the batch. A {{resultAlias->field}} reference resolves only from a wired, reachable predecessor. An error handler is wired without a branch; one per block. Rejected: self-loops, duplicate edges (same source, target, branch), cycles, and edges from a block that ends the flow (e.g. return-result).",
      -    "properties": {
      -      "branch": {
      -        "type": "string"
      -      },
      -      "fromNodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "wire_edge",
      -        "type": "string"
      -      },
      -      "toNodeId": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "fromNodeId",
      -      "toNodeId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Remove the edge between two blocks without removing the blocks. For a Condition/Router source, also clears the matching branch config.",
      -    "properties": {
      -      "fromNodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "remove_edge",
      -        "type": "string"
      -      },
      -      "toNodeId": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "fromNodeId",
      -      "toNodeId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Remove a block and its edges; a disconnected block stays in the flow. For a container (repeat, list-iterator, actions-group, triggers-group) also removes every nested block, recursively. Result: { removed, removedChildren, nodeCount } — removedChildren lists the cascade-removed blocks.",
      -    "properties": {
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "remove_block",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Set the comparison logic of a Condition, a Repeat (\"keep looping while\") or an External Callback block; configure_block rejects conditionParts/conditionGrouping. operation: an operator value (not a name) from list_condition_operators; unknown values are rejected with the operator list. property/values: { text, type? } like configure_block — on a literal, type \"NUMBER\" for a numeric comparison (propertyType \"INT\"/\"DOUBLE\") or \"JSON\" for an object/array, otherwise the value is text whatever propertyType says; type with a {{reference}} is rejected. Example: { nodeId, parts: [{ operation: \">\", propertyType: \"INT\", property: { text: \"5\", type: \"NUMBER\" }, values: [{ text: \"3\", type: \"NUMBER\" }] }] }. combinator: \"AND\" (default, all parts true) or \"OR\" (any part true) — one combinator for all parts.",
      -    "properties": {
      -      "combinator": {
      -        "enum": [
      -          "AND",
      -          "OR"
      -        ],
      -        "type": "string"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "set_condition_parts",
      -        "type": "string"
      -      },
      -      "parts": {
      -        "items": {
      -          "properties": {
      -            "operation": {
      -              "type": "string"
      -            },
      -            "property": {
      -              "properties": {
      -                "text": {
      -                  "type": "string"
      -                },
      -                "type": {
      -                  "enum": [
      -                    "NUMBER",
      -                    "JSON"
      -                  ],
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "text"
      -              ],
      -              "type": "object"
      -            },
      -            "propertyType": {
      -              "type": "string"
      -            },
      -            "values": {
      -              "items": {
      -                "properties": {
      -                  "text": {
      -                    "type": "string"
      -                  },
      -                  "type": {
      -                    "enum": [
      -                      "NUMBER",
      -                      "JSON"
      -                    ],
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "text"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "operation",
      -            "property"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "parts"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Add a case to a Router (Value Router) block; configure_block cannot add one. values: { text, type? } like configure_block, type \"NUMBER\" for a number; one value = exact match, several = matches any of them. Result: { caseId } — it is wire_edge's branch value, or localAlias within the batch. A new Router has only the default \"Everything Else\" case, which wire_edge uses when branch is omitted; one call adds one case. Numeric ranges are not supported; a Condition compares numbers.",
      -    "properties": {
      -      "label": {
      -        "type": "string"
      -      },
      -      "localAlias": {
      -        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations).",
      -        "type": "string"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "add_router_case",
      -        "type": "string"
      -      },
      -      "values": {
      -        "items": {
      -          "properties": {
      -            "text": {
      -              "type": "string"
      -            },
      -            "type": {
      -              "enum": [
      -                "NUMBER",
      -                "JSON"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "text"
      -          ],
      -          "type": "object"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "values"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Remove a case added with add_router_case, by caseId (or its localAlias); the Router's other cases keep their ids and wiring. Also removes edges wired to that case. The default \"Everything Else\" case cannot be removed. Result: { removed, removedEdges, nodeId, name, resultAlias, issues }.",
      -    "properties": {
      -      "caseId": {
      -        "type": "string"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "remove_router_case",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "caseId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Add a named decision to an AI Router block (expectedDecisions; not a Router's add_router_case; configure_block cannot add one). Result: { decisionId } — it is wire_edge's branch value, or localAlias within the batch. A new AI Router has only the default decision, which wire_edge uses when branch is omitted; one call adds one named outcome.",
      -    "properties": {
      -      "label": {
      -        "type": "string"
      -      },
      -      "localAlias": {
      -        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations).",
      -        "type": "string"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "add_ai_router_decision",
      -        "type": "string"
      -      },
      -      "value": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Set the fields of a Data Bucket (\"Set Variable\") block; configure_block cannot set them. value: { text, type? } like configure_block, type \"NUMBER\"/\"JSON\" for a non-text value. Example: { nodeId, fields: [{ name: \"status\", value: { text: \"{{HTTP Request Result->id}}\" } }, { name: \"count\", value: { text: \"5\", type: \"NUMBER\" } }] }. Result: { nodeId, name, resultAlias, issues, references } — references: { [fieldName]: string }, the exact {{Data Buckets:<bucket> - <field>->}} reference per field, the only form that resolves ({{resultAlias->field}} does not apply: Data Bucket has no result).",
      -    "properties": {
      -      "fields": {
      -        "items": {
      -          "properties": {
      -            "name": {
      -              "type": "string"
      -            },
      -            "value": {
      -              "properties": {
      -                "text": {
      -                  "type": "string"
      -                },
      -                "type": {
      -                  "enum": [
      -                    "NUMBER",
      -                    "JSON"
      -                  ],
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "text"
      -              ],
      -              "type": "object"
      -            }
      -          },
      -          "required": [
      -            "name",
      -            "value"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "set_data_bucket_fields",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "fields"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Attach a tool to an AI Agent block; the agent calls it when it decides to (add_block of the same extension makes it a step instead). Result: { toolId, issues } — toolId for configure_agent_tool / remove_agent_tool. Required fields are defaulted where possible (e.g. connectionId of an OAuth-gated action); issues lists only what this tool still misses (the agent's and other tools' issues: get_node_details / get_flow_summary); configure_agent_tool sets those fields. Rejected if this tool is already attached to the node.",
      -    "properties": {
      -      "localAlias": {
      -        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations). Aliases the returned toolId, not toolDefinitionId; they may differ; later operations take the returned toolId.",
      -        "type": "string"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "add_agent_tool",
      -        "type": "string"
      -      },
      -      "toolDefinitionId": {
      -        "description": "Which tool to attach: an id from search_extensions or list_extension_methods, both called with isAgentTool: true (a Knowledge Base is listed only then), or a toolDefinitionId from list_block_types → agentTools.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "toolDefinitionId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Patch a tool attached to an AI Agent, by nodeId + toolId (from add_agent_tool, or its localAlias). Examples: { connectionId } for an OAuth-gated tool; an expression field as { text, type? } like configure_block. For an extension-action or MCP-server-method tool, method params go under `params` ({ text, type? } each, e.g. Slack \"send message\" channel), with `labels` as in configure_block; params as top-level keys are rejected as unknown fields. The agent's own fields (systemPrompt, userPrompt, aiProvider, ...) are set with configure_block. A field set here is fixed: the agent cannot see or override it and every call uses it; a field left unset is filled by the agent on each call — this holds for every field, not only connectionId.",
      -    "properties": {
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "configure_agent_tool",
      -        "type": "string"
      -      },
      -      "patch": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "toolId": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "toolId",
      -      "patch"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Detach a tool from an AI Agent block by toolId (from add_agent_tool, or its localAlias).",
      -    "properties": {
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "remove_agent_tool",
      -        "type": "string"
      -      },
      -      "toolId": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "toolId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Add a Placeholder Data item (a flow setting). value by type: DATETIME unix ms, OBJECT/ARRAY JSON, API_KEY an id from list_ai_api_key_setups; when omitted the value stays empty for the user to fill (the flow cannot start while it is empty). Result: { name, type, value, reference } — reference is the exact expression ({{Placeholder Data: <name>->}}); for a JSON field the path follows: ->a.b.",
      -    "properties": {
      -      "description": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "add_placeholder",
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "STRING",
      -          "INT",
      -          "DOUBLE",
      -          "BOOLEAN",
      -          "DATETIME",
      -          "OBJECT",
      -          "ARRAY",
      -          "API_KEY"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "additionalProperties": {},
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "items": {},
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "name",
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Change a Placeholder Data item; fields as add_placeholder, omitted ones stay. newName renames it and every block reference follows. value \"\" clears it. Result as add_placeholder.",
      -    "properties": {
      -      "description": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "newName": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "update_placeholder",
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "STRING",
      -          "INT",
      -          "DOUBLE",
      -          "BOOLEAN",
      -          "DATETIME",
      -          "OBJECT",
      -          "ARRAY",
      -          "API_KEY"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "additionalProperties": {},
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "items": {},
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Remove a Placeholder Data item. Result: { removed, brokenReferences } — { nodeId, field } of each block field still referencing it.",
      -    "properties": {
      -      "name": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "remove_placeholder",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Set the flow's descriptions. flow: what the flow does (replaces the old text). initialDataFields: description per Initial Data field, keyed by the field path as written after \"Initial Data:\" in a pill — dot-separated keys, array items as [0] or [last] after a dot (a.[0].b); merged key by key, \"\" clears a key. initialData: description of the whole Initial Data object (replaces the old text); kept only while a block reads the whole object. A field description is kept only while a block reads that field; a path nothing reads is dropped and reported in suggestions.",
      -    "properties": {
      -      "flow": {
      -        "type": "string"
      -      },
      -      "initialData": {
      -        "type": "string"
      -      },
      -      "initialDataFields": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "operationName": {
      -        "const": "set_flow_descriptions",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "Add a block. Result: { nodeId, name, resultAlias, issues } — {{resultAlias->field}} references take resultAlias exactly as returned.",
      +    "properties": {
      +      "config": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "groupId": {
      +        "description": "nodeId or localAlias of a container (repeat, list-iterator, actions-group, triggers-group, sub-flow) to nest this block in; absent for a top-level block. Details: readme \"Groups & loops\".",
      +        "type": "string"
      +      },
      +      "localAlias": {
      +        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations). Also becomes the block's resultAlias unless config.resultAlias is set.",
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "add_block",
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Block type id; get_block_schema(type) describes it.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Patch an existing block's fields. Unknown keys are rejected. A block type with a registered schema validates the whole patch (type, shape, enum). Extension and trigger blocks (no registered schema) take method params under `params` (see get_block_schema `params`; types in `inputSchema`): for an action, { text, type? } like top-level fields, or for a `structured: true` param a plain object / array of objects keyed by its sub-field names; for a polling trigger, plain values — { text } is unwrapped to the declared type, a {{reference}} is rejected. `labels`: { [paramName]: displayLabel } for params with a non-null `dictionary` — one label per param, for the value set in `params`. A polling trigger also takes `frequency`: { schedule: \"once\"|\"custom\"|\"daily\"|\"weekly\", ... } — per-schedule shape in get_block_schema `inputSchema`. Other top-level fields can go in the same patch as `params`/`frequency`.",
      +    "properties": {
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "configure_block",
      +        "type": "string"
      +      },
      +      "patch": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "patch"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Connect fromNodeId to toNodeId as the next step. branch: only for source types that have branches (see get_block_schema) — e.g. a caseId or decisionId, or its localAlias within the batch. A {{resultAlias->field}} reference resolves only from a wired, reachable predecessor. An error handler is wired without a branch; one per block. Rejected: self-loops, duplicate edges (same source, target, branch), cycles, and edges from a block that ends the flow (e.g. return-result).",
      +    "properties": {
      +      "branch": {
      +        "type": "string"
      +      },
      +      "fromNodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "wire_edge",
      +        "type": "string"
      +      },
      +      "toNodeId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "fromNodeId",
      +      "toNodeId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Remove the edge between two blocks without removing the blocks. For a Condition/Router source, also clears the matching branch config.",
      +    "properties": {
      +      "fromNodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "remove_edge",
      +        "type": "string"
      +      },
      +      "toNodeId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "fromNodeId",
      +      "toNodeId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Remove a block and its edges; a disconnected block stays in the flow. For a container (repeat, list-iterator, actions-group, triggers-group) also removes every nested block, recursively. Result: { removed, removedChildren, nodeCount } — removedChildren lists the cascade-removed blocks.",
      +    "properties": {
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "remove_block",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Set the comparison logic of a Condition, a Repeat (\"keep looping while\") or an External Callback block; configure_block rejects conditionParts/conditionGrouping. operation: an operator value (not a name) from list_condition_operators; unknown values are rejected with the operator list. property/values: { text, type? } like configure_block — on a literal, type \"NUMBER\" for a numeric comparison (propertyType \"INT\"/\"DOUBLE\") or \"JSON\" for an object/array, otherwise the value is text whatever propertyType says; type with a {{reference}} is rejected. Example: { nodeId, parts: [{ operation: \">\", propertyType: \"INT\", property: { text: \"5\", type: \"NUMBER\" }, values: [{ text: \"3\", type: \"NUMBER\" }] }] }. combinator: \"AND\" (default, all parts true) or \"OR\" (any part true) — one combinator for all parts.",
      +    "properties": {
      +      "combinator": {
      +        "enum": [
      +          "AND",
      +          "OR"
      +        ],
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "set_condition_parts",
      +        "type": "string"
      +      },
      +      "parts": {
      +        "items": {
      +          "properties": {
      +            "operation": {
      +              "type": "string"
      +            },
      +            "property": {
      +              "properties": {
      +                "asJson": {
      +                  "description": "Parse the resolved text as JSON (console \"As JSON\"). Omitted = off.",
      +                  "type": "boolean"
      +                },
      +                "text": {
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "enum": [
      +                    "NUMBER",
      +                    "JSON"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "text"
      +              ],
      +              "type": "object"
      +            },
      +            "propertyType": {
      +              "type": "string"
      +            },
      +            "values": {
      +              "items": {
      +                "properties": {
      +                  "asJson": {
      +                    "description": "Parse the resolved text as JSON (console \"As JSON\"). Omitted = off.",
      +                    "type": "boolean"
      +                  },
      +                  "text": {
      +                    "type": "string"
      +                  },
      +                  "type": {
      +                    "enum": [
      +                      "NUMBER",
      +                      "JSON"
      +                    ],
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "text"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "operation",
      +            "property"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "parts"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Add a case to a Router (Value Router) block; configure_block cannot add one. values: { text, type? } like configure_block, type \"NUMBER\" for a number; one value = exact match, several = matches any of them. Result: { caseId } — it is wire_edge's branch value, or localAlias within the batch. A new Router has only the default \"Everything Else\" case, which wire_edge uses when branch is omitted; one call adds one case. Numeric ranges are not supported; a Condition compares numbers.",
      +    "properties": {
      +      "label": {
      +        "type": "string"
      +      },
      +      "localAlias": {
      +        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations).",
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "add_router_case",
      +        "type": "string"
      +      },
      +      "values": {
      +        "items": {
      +          "properties": {
      +            "asJson": {
      +              "description": "Parse the resolved text as JSON (console \"As JSON\"). Omitted = off.",
      +              "type": "boolean"
      +            },
      +            "text": {
      +              "type": "string"
      +            },
      +            "type": {
      +              "enum": [
      +                "NUMBER",
      +                "JSON"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "text"
      +          ],
      +          "type": "object"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "values"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Remove a case added with add_router_case, by caseId (or its localAlias); the Router's other cases keep their ids and wiring. Also removes edges wired to that case. The default \"Everything Else\" case cannot be removed. Result: { removed, removedEdges, nodeId, name, resultAlias, issues }.",
      +    "properties": {
      +      "caseId": {
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "remove_router_case",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "caseId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Add a named decision to an AI Router block (expectedDecisions; not a Router's add_router_case; configure_block cannot add one). Result: { decisionId } — it is wire_edge's branch value, or localAlias within the batch. A new AI Router has only the default decision, which wire_edge uses when branch is omitted; one call adds one named outcome.",
      +    "properties": {
      +      "label": {
      +        "type": "string"
      +      },
      +      "localAlias": {
      +        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations).",
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "add_ai_router_decision",
      +        "type": "string"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Set the fields of a Data Bucket (\"Set Variable\") block; configure_block cannot set them. value: { text, type? } like configure_block, type \"NUMBER\"/\"JSON\" for a non-text value. Example: { nodeId, fields: [{ name: \"status\", value: { text: \"{{HTTP Request Result->id}}\" } }, { name: \"count\", value: { text: \"5\", type: \"NUMBER\" } }] }. Result: { nodeId, name, resultAlias, issues, references } — references: { [fieldName]: string }, the exact {{Data Buckets:<bucket> - <field>->}} reference per field, the only form that resolves ({{resultAlias->field}} does not apply: Data Bucket has no result).",
      +    "properties": {
      +      "fields": {
      +        "items": {
      +          "properties": {
      +            "name": {
      +              "type": "string"
      +            },
      +            "value": {
      +              "properties": {
      +                "asJson": {
      +                  "description": "Parse the resolved text as JSON (console \"As JSON\"). Omitted = off.",
      +                  "type": "boolean"
      +                },
      +                "text": {
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "enum": [
      +                    "NUMBER",
      +                    "JSON"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "text"
      +              ],
      +              "type": "object"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "value"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "set_data_bucket_fields",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "fields"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Attach a tool to an AI Agent block; the agent calls it when it decides to (add_block of the same extension makes it a step instead). Result: { toolId, issues } — toolId for configure_agent_tool / remove_agent_tool. Required fields are defaulted where possible (e.g. connectionId of an OAuth-gated action); issues lists only what this tool still misses (the agent's and other tools' issues: get_node_details / get_flow_summary); configure_agent_tool sets those fields. Rejected if this tool is already attached to the node.",
      +    "properties": {
      +      "localAlias": {
      +        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations). Aliases the returned toolId, not toolDefinitionId; they may differ; later operations take the returned toolId.",
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "add_agent_tool",
      +        "type": "string"
      +      },
      +      "toolDefinitionId": {
      +        "description": "Which tool to attach: an id from search_extensions or list_extension_methods, both called with isAgentTool: true (a Knowledge Base is listed only then), or a toolDefinitionId from list_block_types → agentTools.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "toolDefinitionId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Patch a tool attached to an AI Agent, by nodeId + toolId (from add_agent_tool, or its localAlias). Examples: { connectionId } for an OAuth-gated tool; an expression field as { text, type? } like configure_block. For an extension-action or MCP-server-method tool, method params go under `params` ({ text, type? } each, e.g. Slack \"send message\" channel), with `labels` as in configure_block; params as top-level keys are rejected as unknown fields. The agent's own fields (systemPrompt, userPrompt, aiProvider, ...) are set with configure_block. A field set here is fixed: the agent cannot see or override it and every call uses it; a field left unset is filled by the agent on each call — this holds for every field, not only connectionId.",
      +    "properties": {
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "configure_agent_tool",
      +        "type": "string"
      +      },
      +      "patch": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "toolId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "toolId",
      +      "patch"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Detach a tool from an AI Agent block by toolId (from add_agent_tool, or its localAlias).",
      +    "properties": {
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "remove_agent_tool",
      +        "type": "string"
      +      },
      +      "toolId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "toolId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Add a Placeholder Data item (a flow setting). value by type: DATETIME unix ms, OBJECT/ARRAY JSON, API_KEY an id from list_ai_api_key_setups; when omitted the value stays empty for the user to fill (the flow cannot start while it is empty). Result: { name, type, value, reference } — reference is the exact expression ({{Placeholder Data: <name>->}}); for a JSON field the path follows: ->a.b.",
      +    "properties": {
      +      "description": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "add_placeholder",
      +        "type": "string"
      +      },
      +      "type": {
      +        "enum": [
      +          "STRING",
      +          "INT",
      +          "DOUBLE",
      +          "BOOLEAN",
      +          "DATETIME",
      +          "OBJECT",
      +          "ARRAY",
      +          "API_KEY"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "items": {},
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "name",
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Change a Placeholder Data item; fields as add_placeholder, omitted ones stay. newName renames it and every block reference follows. value \"\" clears it. Result as add_placeholder.",
      +    "properties": {
      +      "description": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "newName": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "update_placeholder",
      +        "type": "string"
      +      },
      +      "type": {
      +        "enum": [
      +          "STRING",
      +          "INT",
      +          "DOUBLE",
      +          "BOOLEAN",
      +          "DATETIME",
      +          "OBJECT",
      +          "ARRAY",
      +          "API_KEY"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "items": {},
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Remove a Placeholder Data item. Result: { removed, brokenReferences } — { nodeId, field } of each block field still referencing it.",
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "remove_placeholder",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Set the flow's descriptions. flow: what the flow does (replaces the old text). initialDataFields: description per Initial Data field, keyed by the field path as written after \"Initial Data:\" in a pill — dot-separated keys, array items as [0] or [last] after a dot (a.[0].b); merged key by key, \"\" clears a key. initialData: description of the whole Initial Data object (replaces the old text); kept only while a block reads the whole object. A field description is kept only while a block reads that field; a path nothing reads is dropped and reported in suggestions.",
      +    "properties": {
      +      "flow": {
      +        "type": "string"
      +      },
      +      "initialData": {
      +        "type": "string"
      +      },
      +      "initialDataFields": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "operationName": {
      +        "const": "set_flow_descriptions",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / operations / items / oneOf
      Previous value: -[
      -  {
      -    "description": "Add a block. Result: { nodeId, name, resultAlias, issues } — use resultAlias exactly as returned in {{resultAlias->field}} references.",
      -    "properties": {
      -      "config": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "groupId": {
      -        "description": "nodeId or localAlias of a container (repeat, list-iterator, actions-group, triggers-group, sub-flow) to nest this block in; omit for a top-level block. See readme \"Groups & loops\".",
      -        "type": "string"
      -      },
      -      "localAlias": {
      -        "description": "Alias for the id this operation generates, usable by later operations in the same batch — see apply_operations. Also becomes the block's resultAlias unless config.resultAlias is set.",
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "add_block",
      -        "type": "string"
      -      },
      -      "type": {
      -        "description": "Block type id; call get_block_schema first if unsure.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Patch an existing block's fields. Unknown keys are rejected. A block type with a registered schema validates the whole patch (type, shape, enum). Extension and trigger blocks (no registered schema) take method params under `params` (see get_block_schema `params`; types in `inputSchema`): for an action, { text, type? } like top-level fields, or for a `structured: true` param a plain object / array of objects keyed by its sub-field names; for a polling trigger, plain values — { text } is unwrapped to the declared type, a {{reference}} is rejected. `labels`: { [paramName]: displayLabel } for params with a non-null `dictionary` — one label per param, for the value set in `params`. A polling trigger also takes `frequency`: { schedule: \"once\"|\"custom\"|\"daily\"|\"weekly\", ... } — per-schedule shape in get_block_schema `inputSchema`. Other top-level fields can go in the same patch as `params`/`frequency`.",
      -    "properties": {
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "configure_block",
      -        "type": "string"
      -      },
      -      "patch": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "patch"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Connect fromNodeId to toNodeId as the next step. branch: only for source types that have branches (see get_block_schema) — e.g. a caseId or decisionId, or its localAlias within the batch. Wire a source before referencing its result as {{resultAlias->field}}; the reference resolves only from a reachable predecessor. Error handler: wire without branch; one per block. Rejected: self-loops, duplicate edges (same source, target, branch), cycles, and edges from a block that ends the flow (e.g. return-result).",
      -    "properties": {
      -      "branch": {
      -        "type": "string"
      -      },
      -      "fromNodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "wire_edge",
      -        "type": "string"
      -      },
      -      "toNodeId": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "fromNodeId",
      -      "toNodeId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Remove the edge between two blocks without removing the blocks. For a Condition/Router source, also clears the matching branch config.",
      -    "properties": {
      -      "fromNodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "remove_edge",
      -        "type": "string"
      -      },
      -      "toNodeId": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "fromNodeId",
      -      "toNodeId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Remove a block and its edges; use it for unneeded blocks rather than leaving them disconnected. For a container (repeat, list-iterator, actions-group, triggers-group) also removes every nested block, recursively. Result: { removed, removedChildren, nodeCount } — removedChildren lists the cascade-removed blocks.",
      -    "properties": {
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "remove_block",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Set the comparison logic of a Condition, a Repeat (\"keep looping while\") or an External Callback block; configure_block rejects conditionParts/conditionGrouping. operation: an operator value (not a name) from list_condition_operators; unknown values are rejected with the operator list. property/values: { text, type? } like configure_block — on a literal, type \"NUMBER\" for a numeric comparison (propertyType \"INT\"/\"DOUBLE\") or \"JSON\" for an object/array, otherwise the value is text whatever propertyType says; type with a {{reference}} is rejected. Example: { nodeId, parts: [{ operation: \">\", propertyType: \"INT\", property: { text: \"5\", type: \"NUMBER\" }, values: [{ text: \"3\", type: \"NUMBER\" }] }] }. combinator: \"AND\" (default, all parts true) or \"OR\" (any part true) — one combinator for all parts.",
      -    "properties": {
      -      "combinator": {
      -        "enum": [
      -          "AND",
      -          "OR"
      -        ],
      -        "type": "string"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "set_condition_parts",
      -        "type": "string"
      -      },
      -      "parts": {
      -        "items": {
      -          "properties": {
      -            "operation": {
      -              "type": "string"
      -            },
      -            "property": {
      -              "properties": {
      -                "text": {
      -                  "type": "string"
      -                },
      -                "type": {
      -                  "enum": [
      -                    "NUMBER",
      -                    "JSON"
      -                  ],
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "text"
      -              ],
      -              "type": "object"
      -            },
      -            "propertyType": {
      -              "type": "string"
      -            },
      -            "values": {
      -              "items": {
      -                "properties": {
      -                  "text": {
      -                    "type": "string"
      -                  },
      -                  "type": {
      -                    "enum": [
      -                      "NUMBER",
      -                      "JSON"
      -                    ],
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "text"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "operation",
      -            "property"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "parts"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Add a case to a Router (Value Router) block; configure_block cannot add one. values: { text, type? } like configure_block, type \"NUMBER\" for a number; one value = exact match, several = matches any of them. Result: { caseId } — pass it as wire_edge's branch, or localAlias within the batch. A new Router has only the default \"Everything Else\" case, which wire_edge uses when branch is omitted; call once per case. Numeric ranges are not supported — use a Condition.",
      -    "properties": {
      -      "label": {
      -        "type": "string"
      -      },
      -      "localAlias": {
      -        "description": "Alias for the id this operation generates, usable by later operations in the same batch — see apply_operations.",
      -        "type": "string"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "add_router_case",
      -        "type": "string"
      -      },
      -      "values": {
      -        "items": {
      -          "properties": {
      -            "text": {
      -              "type": "string"
      -            },
      -            "type": {
      -              "enum": [
      -                "NUMBER",
      -                "JSON"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "text"
      -          ],
      -          "type": "object"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "values"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Remove a case added with add_router_case, by caseId (or its localAlias); the Router's other cases keep their ids and wiring. Also removes edges wired to that case. The default \"Everything Else\" case cannot be removed. Result: { removed, removedEdges, nodeId, name, resultAlias, issues }.",
      -    "properties": {
      -      "caseId": {
      -        "type": "string"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "remove_router_case",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "caseId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Add a named decision to an AI Router block (expectedDecisions; not a Router's add_router_case; configure_block cannot add one). Result: { decisionId } — pass it as wire_edge's branch, or localAlias within the batch. A new AI Router has only the default decision, which wire_edge uses when branch is omitted; call once per named outcome.",
      -    "properties": {
      -      "label": {
      -        "type": "string"
      -      },
      -      "localAlias": {
      -        "description": "Alias for the id this operation generates, usable by later operations in the same batch — see apply_operations.",
      -        "type": "string"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "add_ai_router_decision",
      -        "type": "string"
      -      },
      -      "value": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "value"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Set the fields of a Data Bucket (\"Set Variable\") block; configure_block cannot set them. value: { text, type? } like configure_block, type \"NUMBER\"/\"JSON\" for a non-text value. Example: { nodeId, fields: [{ name: \"status\", value: { text: \"{{HTTP Request Result->id}}\" } }, { name: \"count\", value: { text: \"5\", type: \"NUMBER\" } }] }. Result: { nodeId, name, resultAlias, issues, references } — references: { [fieldName]: string }, the exact {{Data Buckets:<bucket> - <field>->}} reference per field; copy it, never build it ({{resultAlias->field}} does not apply: Data Bucket has no result).",
      -    "properties": {
      -      "fields": {
      -        "items": {
      -          "properties": {
      -            "name": {
      -              "type": "string"
      -            },
      -            "value": {
      -              "properties": {
      -                "text": {
      -                  "type": "string"
      -                },
      -                "type": {
      -                  "enum": [
      -                    "NUMBER",
      -                    "JSON"
      -                  ],
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "text"
      -              ],
      -              "type": "object"
      -            }
      -          },
      -          "required": [
      -            "name",
      -            "value"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "set_data_bucket_fields",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "fields"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Attach a tool to an AI Agent block; the agent calls it when it decides to (add_block of the same extension makes it a step instead). Result: { toolId, issues } — toolId for configure_agent_tool / remove_agent_tool. Required fields are defaulted where possible (e.g. connectionId of an OAuth-gated action); issues lists only what this tool still misses (the agent's and other tools' issues: get_node_details / get_flow_summary) — set it with configure_agent_tool. Rejected if this tool is already attached to the node; remove it first to reattach.",
      -    "properties": {
      -      "localAlias": {
      -        "description": "Alias for the id this operation generates, usable by later operations in the same batch — see apply_operations. Aliases the returned toolId, not toolDefinitionId; they may differ — use the returned toolId.",
      -        "type": "string"
      -      },
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "add_agent_tool",
      -        "type": "string"
      -      },
      -      "toolDefinitionId": {
      -        "description": "Which tool to attach: an id from search_extensions or list_extension_methods, both called with isAgentTool: true (a Knowledge Base is listed only then), or a toolDefinitionId from list_block_types → agentTools.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "toolDefinitionId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Patch a tool attached to an AI Agent, by nodeId + toolId (from add_agent_tool, or its localAlias). Examples: { connectionId } for an OAuth-gated tool; an expression field as { text, type? } like configure_block. For an extension-action or MCP-server-method tool, method params go under `params` ({ text, type? } each, e.g. Slack \"send message\" channel), with `labels` as in configure_block; params as top-level keys are rejected as unknown fields. The agent's own fields (systemPrompt, userPrompt, aiProvider, ...) are set with configure_block. A field set here is fixed: the agent cannot see or override it and every call uses it; a field left unset is filled by the agent on each call — this holds for every field, not only connectionId.",
      -    "properties": {
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "configure_agent_tool",
      -        "type": "string"
      -      },
      -      "patch": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "toolId": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "toolId",
      -      "patch"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Detach a tool from an AI Agent block by toolId (from add_agent_tool, or its localAlias).",
      -    "properties": {
      -      "nodeId": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "remove_agent_tool",
      -        "type": "string"
      -      },
      -      "toolId": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "nodeId",
      -      "toolId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Add a Placeholder Data item (a flow setting). value by type: DATETIME unix ms, OBJECT/ARRAY JSON, API_KEY an id from list_ai_api_key_setups; omit to leave it to the user (the flow cannot start while it is empty). Result: { name, type, value, reference } — copy reference ({{Placeholder Data: <name>->}}); for a JSON field append the path: ->a.b.",
      -    "properties": {
      -      "description": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "add_placeholder",
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "STRING",
      -          "INT",
      -          "DOUBLE",
      -          "BOOLEAN",
      -          "DATETIME",
      -          "OBJECT",
      -          "ARRAY",
      -          "API_KEY"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "additionalProperties": {},
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "items": {},
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "name",
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Change a Placeholder Data item; fields as add_placeholder, omitted ones stay. newName renames it and every block reference follows. value \"\" clears it. Result as add_placeholder.",
      -    "properties": {
      -      "description": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "newName": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "update_placeholder",
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "STRING",
      -          "INT",
      -          "DOUBLE",
      -          "BOOLEAN",
      -          "DATETIME",
      -          "OBJECT",
      -          "ARRAY",
      -          "API_KEY"
      -        ],
      -        "type": "string"
      -      },
      -      "value": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "additionalProperties": {},
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "items": {},
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Remove a Placeholder Data item. Result: { removed, brokenReferences } — { nodeId, field } of each block field still referencing it; fix them.",
      -    "properties": {
      -      "name": {
      -        "type": "string"
      -      },
      -      "operationName": {
      -        "const": "remove_placeholder",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Set the flow's descriptions. flow: what the flow does (replaces the old text). initialDataFields: description per Initial Data field, keyed by the field path as written after \"Initial Data:\" in a pill — dot-separated keys, array items as [0] or [last] after a dot (a.[0].b); merged key by key, \"\" clears a key. initialData: description of the whole Initial Data object (replaces the old text); kept only while a block reads the whole object. A field description is kept only while a block reads that field; a path nothing reads is dropped and reported in suggestions.",
      -    "properties": {
      -      "flow": {
      -        "type": "string"
      -      },
      -      "initialData": {
      -        "type": "string"
      -      },
      -      "initialDataFields": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "operationName": {
      -        "const": "set_flow_descriptions",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operationName"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "Add a block. Result: { nodeId, name, resultAlias, issues } — {{resultAlias->field}} references take resultAlias exactly as returned.",
      +    "properties": {
      +      "config": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "groupId": {
      +        "description": "nodeId or localAlias of a container (repeat, list-iterator, actions-group, triggers-group, sub-flow) to nest this block in; absent for a top-level block. Details: readme \"Groups & loops\".",
      +        "type": "string"
      +      },
      +      "localAlias": {
      +        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations). Also becomes the block's resultAlias unless config.resultAlias is set.",
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "add_block",
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Block type id; get_block_schema(type) describes it.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Patch an existing block's fields. Unknown keys are rejected. A block type with a registered schema validates the whole patch (type, shape, enum). Extension and trigger blocks (no registered schema) take method params under `params` (see get_block_schema `params`; types in `inputSchema`): for an action, { text, type? } like top-level fields, or for a `structured: true` param a plain object / array of objects keyed by its sub-field names; for a polling trigger, plain values — { text } is unwrapped to the declared type, a {{reference}} is rejected. `labels`: { [paramName]: displayLabel } for params with a non-null `dictionary` — one label per param, for the value set in `params`. A polling trigger also takes `frequency`: { schedule: \"once\"|\"custom\"|\"daily\"|\"weekly\", ... } — per-schedule shape in get_block_schema `inputSchema`. Other top-level fields can go in the same patch as `params`/`frequency`.",
      +    "properties": {
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "configure_block",
      +        "type": "string"
      +      },
      +      "patch": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "patch"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Connect fromNodeId to toNodeId as the next step. branch: only for source types that have branches (see get_block_schema) — e.g. a caseId or decisionId, or its localAlias within the batch. A {{resultAlias->field}} reference resolves only from a wired, reachable predecessor. An error handler is wired without a branch; one per block. Rejected: self-loops, duplicate edges (same source, target, branch), cycles, and edges from a block that ends the flow (e.g. return-result).",
      +    "properties": {
      +      "branch": {
      +        "type": "string"
      +      },
      +      "fromNodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "wire_edge",
      +        "type": "string"
      +      },
      +      "toNodeId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "fromNodeId",
      +      "toNodeId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Remove the edge between two blocks without removing the blocks. For a Condition/Router source, also clears the matching branch config.",
      +    "properties": {
      +      "fromNodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "remove_edge",
      +        "type": "string"
      +      },
      +      "toNodeId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "fromNodeId",
      +      "toNodeId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Remove a block and its edges; a disconnected block stays in the flow. For a container (repeat, list-iterator, actions-group, triggers-group) also removes every nested block, recursively. Result: { removed, removedChildren, nodeCount } — removedChildren lists the cascade-removed blocks.",
      +    "properties": {
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "remove_block",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Set the comparison logic of a Condition, a Repeat (\"keep looping while\") or an External Callback block; configure_block rejects conditionParts/conditionGrouping. operation: an operator value (not a name) from list_condition_operators; unknown values are rejected with the operator list. property/values: { text, type? } like configure_block — on a literal, type \"NUMBER\" for a numeric comparison (propertyType \"INT\"/\"DOUBLE\") or \"JSON\" for an object/array, otherwise the value is text whatever propertyType says; type with a {{reference}} is rejected. Example: { nodeId, parts: [{ operation: \">\", propertyType: \"INT\", property: { text: \"5\", type: \"NUMBER\" }, values: [{ text: \"3\", type: \"NUMBER\" }] }] }. combinator: \"AND\" (default, all parts true) or \"OR\" (any part true) — one combinator for all parts.",
      +    "properties": {
      +      "combinator": {
      +        "enum": [
      +          "AND",
      +          "OR"
      +        ],
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "set_condition_parts",
      +        "type": "string"
      +      },
      +      "parts": {
      +        "items": {
      +          "properties": {
      +            "operation": {
      +              "type": "string"
      +            },
      +            "property": {
      +              "properties": {
      +                "text": {
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "enum": [
      +                    "NUMBER",
      +                    "JSON"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "text"
      +              ],
      +              "type": "object"
      +            },
      +            "propertyType": {
      +              "type": "string"
      +            },
      +            "values": {
      +              "items": {
      +                "properties": {
      +                  "text": {
      +                    "type": "string"
      +                  },
      +                  "type": {
      +                    "enum": [
      +                      "NUMBER",
      +                      "JSON"
      +                    ],
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "text"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "operation",
      +            "property"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "parts"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Add a case to a Router (Value Router) block; configure_block cannot add one. values: { text, type? } like configure_block, type \"NUMBER\" for a number; one value = exact match, several = matches any of them. Result: { caseId } — it is wire_edge's branch value, or localAlias within the batch. A new Router has only the default \"Everything Else\" case, which wire_edge uses when branch is omitted; one call adds one case. Numeric ranges are not supported; a Condition compares numbers.",
      +    "properties": {
      +      "label": {
      +        "type": "string"
      +      },
      +      "localAlias": {
      +        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations).",
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "add_router_case",
      +        "type": "string"
      +      },
      +      "values": {
      +        "items": {
      +          "properties": {
      +            "text": {
      +              "type": "string"
      +            },
      +            "type": {
      +              "enum": [
      +                "NUMBER",
      +                "JSON"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "text"
      +          ],
      +          "type": "object"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "values"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Remove a case added with add_router_case, by caseId (or its localAlias); the Router's other cases keep their ids and wiring. Also removes edges wired to that case. The default \"Everything Else\" case cannot be removed. Result: { removed, removedEdges, nodeId, name, resultAlias, issues }.",
      +    "properties": {
      +      "caseId": {
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "remove_router_case",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "caseId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Add a named decision to an AI Router block (expectedDecisions; not a Router's add_router_case; configure_block cannot add one). Result: { decisionId } — it is wire_edge's branch value, or localAlias within the batch. A new AI Router has only the default decision, which wire_edge uses when branch is omitted; one call adds one named outcome.",
      +    "properties": {
      +      "label": {
      +        "type": "string"
      +      },
      +      "localAlias": {
      +        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations).",
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "add_ai_router_decision",
      +        "type": "string"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Set the fields of a Data Bucket (\"Set Variable\") block; configure_block cannot set them. value: { text, type? } like configure_block, type \"NUMBER\"/\"JSON\" for a non-text value. Example: { nodeId, fields: [{ name: \"status\", value: { text: \"{{HTTP Request Result->id}}\" } }, { name: \"count\", value: { text: \"5\", type: \"NUMBER\" } }] }. Result: { nodeId, name, resultAlias, issues, references } — references: { [fieldName]: string }, the exact {{Data Buckets:<bucket> - <field>->}} reference per field, the only form that resolves ({{resultAlias->field}} does not apply: Data Bucket has no result).",
      +    "properties": {
      +      "fields": {
      +        "items": {
      +          "properties": {
      +            "name": {
      +              "type": "string"
      +            },
      +            "value": {
      +              "properties": {
      +                "text": {
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "enum": [
      +                    "NUMBER",
      +                    "JSON"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "text"
      +              ],
      +              "type": "object"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "value"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "set_data_bucket_fields",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "fields"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Attach a tool to an AI Agent block; the agent calls it when it decides to (add_block of the same extension makes it a step instead). Result: { toolId, issues } — toolId for configure_agent_tool / remove_agent_tool. Required fields are defaulted where possible (e.g. connectionId of an OAuth-gated action); issues lists only what this tool still misses (the agent's and other tools' issues: get_node_details / get_flow_summary); configure_agent_tool sets those fields. Rejected if this tool is already attached to the node.",
      +    "properties": {
      +      "localAlias": {
      +        "description": "Alias for the id this operation generates, usable by later operations in the same batch (details in apply_operations). Aliases the returned toolId, not toolDefinitionId; they may differ; later operations take the returned toolId.",
      +        "type": "string"
      +      },
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "add_agent_tool",
      +        "type": "string"
      +      },
      +      "toolDefinitionId": {
      +        "description": "Which tool to attach: an id from search_extensions or list_extension_methods, both called with isAgentTool: true (a Knowledge Base is listed only then), or a toolDefinitionId from list_block_types → agentTools.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "toolDefinitionId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Patch a tool attached to an AI Agent, by nodeId + toolId (from add_agent_tool, or its localAlias). Examples: { connectionId } for an OAuth-gated tool; an expression field as { text, type? } like configure_block. For an extension-action or MCP-server-method tool, method params go under `params` ({ text, type? } each, e.g. Slack \"send message\" channel), with `labels` as in configure_block; params as top-level keys are rejected as unknown fields. The agent's own fields (systemPrompt, userPrompt, aiProvider, ...) are set with configure_block. A field set here is fixed: the agent cannot see or override it and every call uses it; a field left unset is filled by the agent on each call — this holds for every field, not only connectionId.",
      +    "properties": {
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "configure_agent_tool",
      +        "type": "string"
      +      },
      +      "patch": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "toolId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "toolId",
      +      "patch"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Detach a tool from an AI Agent block by toolId (from add_agent_tool, or its localAlias).",
      +    "properties": {
      +      "nodeId": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "remove_agent_tool",
      +        "type": "string"
      +      },
      +      "toolId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "nodeId",
      +      "toolId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Add a Placeholder Data item (a flow setting). value by type: DATETIME unix ms, OBJECT/ARRAY JSON, API_KEY an id from list_ai_api_key_setups; when omitted the value stays empty for the user to fill (the flow cannot start while it is empty). Result: { name, type, value, reference } — reference is the exact expression ({{Placeholder Data: <name>->}}); for a JSON field the path follows: ->a.b.",
      +    "properties": {
      +      "description": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "add_placeholder",
      +        "type": "string"
      +      },
      +      "type": {
      +        "enum": [
      +          "STRING",
      +          "INT",
      +          "DOUBLE",
      +          "BOOLEAN",
      +          "DATETIME",
      +          "OBJECT",
      +          "ARRAY",
      +          "API_KEY"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "items": {},
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "name",
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Change a Placeholder Data item; fields as add_placeholder, omitted ones stay. newName renames it and every block reference follows. value \"\" clears it. Result as add_placeholder.",
      +    "properties": {
      +      "description": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "newName": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "update_placeholder",
      +        "type": "string"
      +      },
      +      "type": {
      +        "enum": [
      +          "STRING",
      +          "INT",
      +          "DOUBLE",
      +          "BOOLEAN",
      +          "DATETIME",
      +          "OBJECT",
      +          "ARRAY",
      +          "API_KEY"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "items": {},
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Remove a Placeholder Data item. Result: { removed, brokenReferences } — { nodeId, field } of each block field still referencing it.",
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "operationName": {
      +        "const": "remove_placeholder",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Set the flow's descriptions. flow: what the flow does (replaces the old text). initialDataFields: description per Initial Data field, keyed by the field path as written after \"Initial Data:\" in a pill — dot-separated keys, array items as [0] or [last] after a dot (a.[0].b); merged key by key, \"\" clears a key. initialData: description of the whole Initial Data object (replaces the old text); kept only while a block reads the whole object. A field description is kept only while a block reads that field; a path nothing reads is dropped and reported in suggestions.",
      +    "properties": {
      +      "flow": {
      +        "type": "string"
      +      },
      +      "initialData": {
      +        "type": "string"
      +      },
      +      "initialDataFields": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "operationName": {
      +        "const": "set_flow_descriptions",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operationName"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true and idempotentHint=false, and the description goes well beyond them: the batch is atomic, nothing is applied or saved on failure, the error names the failing operation's index, no part of a failed batch is kept. It further clarifies that issues never block the save and suggestions never affect runtime, plus the localAlias lifetime rule ('exists only within this call').

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action and the LIVE/atomic constraints are front-loaded before the long localAlias and result-shape paragraphs. It is dense and long, and the operations enumeration plus result-object sentence run together, but nearly every clause carries information an agent would otherwise have to discover by failing a call.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, yet the description fully specifies the return object (id, version, elementCount, status, errorMessage, results per index, issues, suggestions) and explains the semantics of each field. Combined with the atomicity and editability rules, an agent has everything needed to call this correctly on the first attempt.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Top-level schema coverage is 0%, so the description carries the load, and it does for versionId (must be an editable version) and operations (1-100, applied in order). The nested operation variants are documented in exhaustive per-variant schema text, so the description's added meaning is mostly the localAlias substitution rule across fields (nodeId, groupId, fromNodeId, toNodeId, branch, caseId, toolId), which the schema only gestures at; workspaceId is never explained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource+scope: 'Apply a batch of operations to the flow at versionId, in order, then save.' It also enumerates the full operation vocabulary (add_block ... set_flow_descriptions) so an agent knows exactly what class of edit this covers, and no sibling tool in the list performs flow mutation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-not guidance: a LIVE version is rejected as a whole batch, a version becomes editable only after stop_flow, pause_flow does not help, and start_flow makes it LIVE again — this directly tells the agent to sequence stop_flow before calling. It does not name an alternative editing path (none exists among the siblings), so usage context is clear but not routed against alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources