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"
+ }
+]