{
  "version": 1,
  "actions": [
    {
      "id": "add_node",
      "section": "scenario",
      "description": "Добавить ноду в project.json",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_json": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "additionalProperties": {}
              }
            ]
          },
          "node": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "enum": [
                  "start",
                  "message",
                  "command",
                  "command_trigger",
                  "text_trigger",
                  "incoming_message_trigger",
                  "incoming_callback_trigger",
                  "outgoing_message_trigger",
                  "group_message_trigger",
                  "member_trigger",
                  "callback_trigger",
                  "managed_bot_updated_trigger",
                  "schedule_trigger",
                  "api_trigger",
                  "sticker",
                  "voice",
                  "animation",
                  "location",
                  "contact",
                  "pin_message",
                  "unpin_message",
                  "delete_message",
                  "forward_message",
                  "ban_user",
                  "unban_user",
                  "mute_user",
                  "unmute_user",
                  "kick_user",
                  "promote_user",
                  "demote_user",
                  "admin_rights",
                  "photo",
                  "video",
                  "audio",
                  "document",
                  "keyboard",
                  "input",
                  "condition",
                  "broadcast",
                  "client_auth",
                  "media",
                  "create_forum_topic",
                  "http_request",
                  "get_managed_bot_token",
                  "answer_callback_query",
                  "edit_message",
                  "set_variable",
                  "psql_query",
                  "convert_file",
                  "loop",
                  "bot_table",
                  "delay",
                  "api_response",
                  "userbot_message",
                  "userbot_click_button",
                  "userbot_inline_query",
                  "userbot_edit_trigger",
                  "parallel_split",
                  "stop_processing",
                  "rate_counter",
                  "code",
                  "comment",
                  "send_invoice",
                  "create_invoice_link",
                  "refund_stars",
                  "edit_star_subscription",
                  "get_star_balance",
                  "successful_payment_trigger"
                ]
              },
              "position": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "data": {
                "type": "object",
                "properties": {
                  "userbotEntity": {
                    "type": "string"
                  },
                  "userbotEntitySource": {
                    "type": "string"
                  },
                  "userbotEntityVariable": {
                    "type": "string"
                  },
                  "userbotRecipients": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "messageId": {
                    "type": "string"
                  },
                  "clickMode": {
                    "type": "string",
                    "enum": [
                      "text",
                      "data",
                      "index"
                    ]
                  },
                  "clickDelivery": {
                    "type": "string",
                    "enum": [
                      "fire_and_forget",
                      "await"
                    ]
                  },
                  "clickValue": {
                    "type": "string"
                  },
                  "responseStrategy": {
                    "type": "string",
                    "enum": [
                      "first",
                      "longest",
                      "regex_match",
                      "last",
                      "edit",
                      "new_message"
                    ]
                  },
                  "responseWaitSeconds": {
                    "type": "number"
                  },
                  "responseFilterRegex": {
                    "type": "string"
                  },
                  "responseFloorMessageIdVar": {
                    "type": "string"
                  },
                  "saveAlertTo": {
                    "type": "string"
                  },
                  "saveButtonsTo": {
                    "type": "string"
                  },
                  "saveHasMediaTo": {
                    "type": "string"
                  },
                  "saveMediaTo": {
                    "type": "string"
                  },
                  "saveResponseIdTo": {
                    "type": "string"
                  },
                  "saveResponseTextTo": {
                    "type": "string"
                  },
                  "botUsername": {
                    "type": "string"
                  },
                  "targetChat": {
                    "type": "string"
                  },
                  "sendToSameChat": {
                    "type": "boolean"
                  },
                  "resultIndex": {
                    "type": "string"
                  },
                  "saveResultTitleTo": {
                    "type": "string"
                  },
                  "saveResultDescTo": {
                    "type": "string"
                  },
                  "filterType": {
                    "type": "string",
                    "enum": [
                      "any",
                      "contains",
                      "regex"
                    ]
                  },
                  "filterValue": {
                    "type": "string"
                  },
                  "saveTextTo": {
                    "type": "string"
                  },
                  "saveChatIdTo": {
                    "type": "string"
                  },
                  "saveSenderIdTo": {
                    "type": "string"
                  },
                  "command": {
                    "type": "string"
                  },
                  "deepLinkParam": {
                    "type": "string"
                  },
                  "deepLinkMatchMode": {
                    "type": "string",
                    "enum": [
                      "exact",
                      "startsWith"
                    ]
                  },
                  "deepLinkSaveToVar": {
                    "type": "boolean"
                  },
                  "deepLinkVarName": {
                    "type": "string"
                  },
                  "commentColor": {
                    "type": "string",
                    "enum": [
                      "yellow",
                      "blue",
                      "green",
                      "pink",
                      "gray"
                    ]
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "interval",
                            "weekday",
                            "monthday",
                            "cron"
                          ]
                        },
                        "intervalMinutes": {
                          "type": "number"
                        },
                        "days": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "hour": {
                          "type": "number"
                        },
                        "minute": {
                          "type": "number"
                        },
                        "monthDays": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        },
                        "cronExpression": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "mode"
                      ],
                      "additionalProperties": true
                    }
                  },
                  "timezone": {
                    "type": "string"
                  },
                  "runOnStart": {
                    "type": "boolean"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "description": {
                    "type": "string"
                  },
                  "messageText": {
                    "type": "string"
                  },
                  "imageUrl": {
                    "type": "string"
                  },
                  "videoUrl": {
                    "type": "string"
                  },
                  "audioUrl": {
                    "type": "string"
                  },
                  "documentUrl": {
                    "type": "string"
                  },
                  "documentName": {
                    "type": "string"
                  },
                  "mediaCaption": {
                    "type": "string"
                  },
                  "keyboardType": {
                    "type": "string",
                    "enum": [
                      "reply",
                      "inline",
                      "none"
                    ],
                    "default": "none"
                  },
                  "keyboardNodeId": {
                    "type": "string"
                  },
                  "seconds": {
                    "type": "string"
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "seconds",
                      "minutes",
                      "hours",
                      "days",
                      "weeks"
                    ]
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "blocking",
                      "background"
                    ]
                  },
                  "buttons": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "action": {
                          "type": "string",
                          "enum": [
                            "goto",
                            "command",
                            "url",
                            "contact",
                            "location",
                            "selection",
                            "complete",
                            "default",
                            "copy_text",
                            "web_app",
                            "request_managed_bot",
                            "pay"
                          ],
                          "default": "goto"
                        },
                        "copyText": {
                          "type": "string"
                        },
                        "webAppUrl": {
                          "type": "string"
                        },
                        "target": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "requestContact": {
                          "type": "boolean"
                        },
                        "requestLocation": {
                          "type": "boolean"
                        },
                        "buttonType": {
                          "type": "string",
                          "enum": [
                            "normal",
                            "option",
                            "complete"
                          ],
                          "default": "normal"
                        },
                        "skipDataCollection": {
                          "type": "boolean",
                          "default": false
                        },
                        "hideAfterClick": {
                          "type": "boolean",
                          "default": false
                        },
                        "customCallbackData": {
                          "type": "string"
                        },
                        "style": {
                          "type": "string",
                          "enum": [
                            "primary",
                            "success",
                            "danger"
                          ]
                        },
                        "suggestedBotName": {
                          "type": "string"
                        },
                        "suggestedBotUsername": {
                          "type": "string"
                        },
                        "selectionGroup": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "shuffleButtons": {
                    "type": "boolean",
                    "default": false
                  },
                  "enableDynamicButtons": {
                    "type": "boolean",
                    "default": false
                  },
                  "dynamicButtons": {
                    "type": "object",
                    "properties": {
                      "sourceVariable": {
                        "type": "string",
                        "default": ""
                      },
                      "arrayPath": {
                        "type": "string",
                        "default": ""
                      },
                      "textTemplate": {
                        "type": "string",
                        "default": ""
                      },
                      "callbackTemplate": {
                        "type": "string",
                        "default": ""
                      },
                      "styleMode": {
                        "type": "string",
                        "enum": [
                          "field",
                          "template",
                          "none"
                        ],
                        "default": "none"
                      },
                      "styleField": {
                        "type": "string",
                        "default": ""
                      },
                      "styleTemplate": {
                        "type": "string",
                        "default": ""
                      },
                      "columns": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 6,
                        "default": 2
                      }
                    },
                    "additionalProperties": true
                  },
                  "keyboardLayout": {
                    "type": "object",
                    "properties": {
                      "rows": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "buttonIds": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "buttonIds"
                          ],
                          "additionalProperties": false
                        },
                        "default": []
                      },
                      "columns": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 6,
                        "default": 2
                      },
                      "autoLayout": {
                        "type": "boolean",
                        "default": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "oneTimeKeyboard": {
                    "type": "boolean",
                    "default": false
                  },
                  "resizeKeyboard": {
                    "type": "boolean",
                    "default": true
                  },
                  "markdown": {
                    "type": "boolean",
                    "default": false
                  },
                  "formatMode": {
                    "type": "string",
                    "enum": [
                      "html",
                      "markdown",
                      "none"
                    ],
                    "default": "none"
                  },
                  "disableLinkPreview": {
                    "type": "boolean",
                    "default": false
                  },
                  "synonyms": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "matchMode": {
                    "type": "string",
                    "enum": [
                      "exact",
                      "contains",
                      "fuzzy"
                    ],
                    "default": "exact"
                  },
                  "adminOnly": {
                    "type": "boolean",
                    "default": false
                  },
                  "requiresAuth": {
                    "type": "boolean",
                    "default": false
                  },
                  "showInMenu": {
                    "type": "boolean",
                    "default": true
                  },
                  "saveCommandArgsTo": {
                    "type": "string",
                    "default": ""
                  },
                  "commandTimeout": {
                    "type": "number"
                  },
                  "cooldownTime": {
                    "type": "number"
                  },
                  "maxUsagesPerDay": {
                    "type": "number"
                  },
                  "customParameters": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "targetMessageId": {
                    "type": "string"
                  },
                  "sourceMessageId": {
                    "type": "string"
                  },
                  "messageIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "last_message",
                      "current_message",
                      "last_bot_message",
                      "reply_message",
                      "range_from_reply",
                      "last_n",
                      "custom",
                      "last"
                    ],
                    "default": "last_message"
                  },
                  "messageIdManual": {
                    "type": "string"
                  },
                  "lastNCount": {
                    "type": "string"
                  },
                  "chatIdSource": {
                    "type": "string",
                    "enum": [
                      "current_chat",
                      "custom"
                    ],
                    "default": "current_chat"
                  },
                  "chatIdManual": {
                    "type": "string"
                  },
                  "ignoreErrors": {
                    "type": "boolean"
                  },
                  "bulkDelete": {
                    "type": "boolean",
                    "default": false
                  },
                  "bulkMessageIdsVariable": {
                    "type": "string"
                  },
                  "sourceMessageIdSource": {
                    "type": "string",
                    "enum": [
                      "current_message",
                      "last_message",
                      "manual",
                      "variable"
                    ],
                    "default": "current_message"
                  },
                  "sourceMessageNodeId": {
                    "type": "string"
                  },
                  "sourceMessageVariableName": {
                    "type": "string"
                  },
                  "variableName": {
                    "type": "string"
                  },
                  "disableNotification": {
                    "type": "boolean",
                    "default": false
                  },
                  "hideAuthor": {
                    "type": "boolean",
                    "default": false
                  },
                  "targetChatId": {
                    "type": "string"
                  },
                  "targetChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "admin_ids"
                    ],
                    "default": "manual"
                  },
                  "targetChatVariableName": {
                    "type": "string"
                  },
                  "targetChatTargets": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "targetChatIdSource": {
                          "type": "string",
                          "enum": [
                            "manual",
                            "variable",
                            "admin_ids"
                          ],
                          "default": "manual"
                        },
                        "targetChatId": {
                          "type": "string"
                        },
                        "targetChatVariableName": {
                          "type": "string"
                        },
                        "targetChatType": {
                          "type": "string",
                          "enum": [
                            "user",
                            "group"
                          ]
                        },
                        "targetThreadId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "targetThreadId": {
                    "type": "string"
                  },
                  "targetThreadIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ]
                  },
                  "targetThreadIdVariable": {
                    "type": "string"
                  },
                  "targetUserId": {
                    "type": "string"
                  },
                  "userIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "last_message",
                      "current_user",
                      "reply_user",
                      "custom"
                    ],
                    "default": "last_message"
                  },
                  "userIdManual": {
                    "type": "string"
                  },
                  "userVariableName": {
                    "type": "string"
                  },
                  "targetGroupId": {
                    "type": "string"
                  },
                  "stickerUrl": {
                    "type": "string"
                  },
                  "stickerFileId": {
                    "type": "string"
                  },
                  "voiceUrl": {
                    "type": "string"
                  },
                  "animationUrl": {
                    "type": "string"
                  },
                  "latitude": {
                    "type": "number"
                  },
                  "longitude": {
                    "type": "number"
                  },
                  "title": {
                    "type": "string"
                  },
                  "address": {
                    "type": "string"
                  },
                  "foursquareId": {
                    "type": "string"
                  },
                  "foursquareType": {
                    "type": "string"
                  },
                  "mapService": {
                    "type": "string",
                    "enum": [
                      "yandex",
                      "google",
                      "2gis",
                      "custom"
                    ],
                    "default": "custom"
                  },
                  "yandexMapUrl": {
                    "type": "string"
                  },
                  "googleMapUrl": {
                    "type": "string"
                  },
                  "gisMapUrl": {
                    "type": "string"
                  },
                  "mapZoom": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 20,
                    "default": 15
                  },
                  "showDirections": {
                    "type": "boolean",
                    "default": false
                  },
                  "generateMapPreview": {
                    "type": "boolean",
                    "default": true
                  },
                  "phoneNumber": {
                    "type": "string"
                  },
                  "firstName": {
                    "type": "string"
                  },
                  "lastName": {
                    "type": "string"
                  },
                  "userId": {
                    "type": "number"
                  },
                  "vcard": {
                    "type": "string"
                  },
                  "question": {
                    "type": "string"
                  },
                  "options": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "allowsMultipleAnswers": {
                    "type": "boolean",
                    "default": false
                  },
                  "anonymousVoting": {
                    "type": "boolean",
                    "default": true
                  },
                  "emoji": {
                    "type": "string"
                  },
                  "mediaDuration": {
                    "type": "number"
                  },
                  "width": {
                    "type": "number"
                  },
                  "height": {
                    "type": "number"
                  },
                  "performer": {
                    "type": "string"
                  },
                  "fileSize": {
                    "type": "number"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "inputType": {
                    "type": "string",
                    "enum": [
                      "text",
                      "number",
                      "email",
                      "phone",
                      "photo",
                      "video",
                      "audio",
                      "document",
                      "location",
                      "contact",
                      "any"
                    ],
                    "default": "text"
                  },
                  "responseType": {
                    "type": "string",
                    "enum": [
                      "text",
                      "buttons"
                    ],
                    "default": "text"
                  },
                  "responseOptions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        },
                        "action": {
                          "type": "string",
                          "enum": [
                            "goto",
                            "command",
                            "url"
                          ],
                          "default": "goto"
                        },
                        "target": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "allowMultipleSelection": {
                    "type": "boolean",
                    "default": false
                  },
                  "multiSelectVariable": {
                    "type": "string"
                  },
                  "continueButtonText": {
                    "type": "string"
                  },
                  "continueButtonTarget": {
                    "type": "string"
                  },
                  "inputVariable": {
                    "type": "string"
                  },
                  "inputPrompt": {
                    "type": "string"
                  },
                  "inputValidation": {
                    "type": "string"
                  },
                  "inputRequired": {
                    "type": "boolean",
                    "default": true
                  },
                  "inputTimeout": {
                    "type": "number"
                  },
                  "inputTimeoutMessage": {
                    "type": "string"
                  },
                  "inputRetryMessage": {
                    "type": "string"
                  },
                  "inputSuccessMessage": {
                    "type": "string"
                  },
                  "enableConditionalMessages": {
                    "type": "boolean",
                    "default": false
                  },
                  "conditionalMessages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "condition": {
                          "type": "string",
                          "enum": [
                            "user_data_exists",
                            "user_data_equals",
                            "user_data_not_exists",
                            "user_data_contains",
                            "first_time",
                            "returning_user"
                          ],
                          "default": "user_data_exists"
                        },
                        "variableName": {
                          "type": "string"
                        },
                        "variableNames": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "default": []
                        },
                        "logicOperator": {
                          "type": "string",
                          "enum": [
                            "AND",
                            "OR"
                          ],
                          "default": "AND"
                        },
                        "expectedValue": {
                          "type": "string"
                        },
                        "messageText": {
                          "type": "string"
                        },
                        "formatMode": {
                          "type": "string",
                          "enum": [
                            "text",
                            "markdown",
                            "html"
                          ],
                          "default": "text"
                        },
                        "keyboardType": {
                          "type": "string",
                          "enum": [
                            "reply",
                            "inline",
                            "none"
                          ],
                          "default": "none"
                        },
                        "buttons": {
                          "type": "array",
                          "items": {
                            "$ref": "#/properties/node/properties/data/properties/buttons/items"
                          },
                          "default": []
                        },
                        "resizeKeyboard": {
                          "type": "boolean",
                          "default": true
                        },
                        "oneTimeKeyboard": {
                          "type": "boolean",
                          "default": false
                        },
                        "collectUserInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableTextInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enablePhotoInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableVideoInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableAudioInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableDocumentInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "inputVariable": {
                          "type": "string"
                        },
                        "photoInputVariable": {
                          "type": "string"
                        },
                        "videoInputVariable": {
                          "type": "string"
                        },
                        "audioInputVariable": {
                          "type": "string"
                        },
                        "documentInputVariable": {
                          "type": "string"
                        },
                        "waitForTextInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "textInputVariable": {
                          "type": "string"
                        },
                        "nextNodeAfterInput": {
                          "type": "string"
                        },
                        "priority": {
                          "type": "number",
                          "default": 0
                        }
                      },
                      "required": [
                        "id",
                        "messageText"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "fallbackMessage": {
                    "type": "string"
                  },
                  "saveToDatabase": {
                    "type": "boolean",
                    "default": false
                  },
                  "allowSkip": {
                    "type": "boolean",
                    "default": false
                  },
                  "collectUserInput": {
                    "type": "boolean",
                    "default": false
                  },
                  "inputTargetNodeId": {
                    "type": "string"
                  },
                  "inputButtonType": {
                    "type": "string",
                    "enum": [
                      "inline",
                      "reply"
                    ],
                    "default": "inline"
                  },
                  "enableAutoTransition": {
                    "type": "boolean",
                    "default": false
                  },
                  "autoTransitionTo": {
                    "type": "string"
                  },
                  "sourceNodeId": {
                    "type": "string"
                  },
                  "minLength": {
                    "type": "number"
                  },
                  "maxLength": {
                    "type": "number"
                  },
                  "placeholder": {
                    "type": "string"
                  },
                  "defaultValue": {
                    "type": "string"
                  },
                  "appendVariable": {
                    "type": "boolean",
                    "default": false
                  },
                  "saveMediaMetadata": {
                    "type": "boolean",
                    "default": false
                  },
                  "mediaMetadataSuffixes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "mediaMetadataCustomNames": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "default": {}
                  },
                  "variableFilters": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "default": {}
                  },
                  "enableUserActions": {
                    "type": "boolean",
                    "default": false
                  },
                  "actionTrigger": {
                    "type": "string",
                    "enum": [
                      "join",
                      "leave",
                      "message",
                      "button_click",
                      "custom"
                    ]
                  },
                  "triggerText": {
                    "type": "string"
                  },
                  "userActionType": {
                    "type": "string",
                    "enum": [
                      "message",
                      "command",
                      "button",
                      "media"
                    ]
                  },
                  "actionTag": {
                    "type": "string"
                  },
                  "actionMessage": {
                    "type": "string"
                  },
                  "silentAction": {
                    "type": "boolean",
                    "default": false
                  },
                  "mimeType": {
                    "type": "string"
                  },
                  "stickerSetName": {
                    "type": "string"
                  },
                  "fileName": {
                    "type": "string"
                  },
                  "city": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "enableTextInput": {
                    "type": "boolean"
                  },
                  "enablePhotoInput": {
                    "type": "boolean"
                  },
                  "enableVideoInput": {
                    "type": "boolean"
                  },
                  "enableAudioInput": {
                    "type": "boolean"
                  },
                  "enableDocumentInput": {
                    "type": "boolean"
                  },
                  "photoInputVariable": {
                    "type": "string"
                  },
                  "videoInputVariable": {
                    "type": "string"
                  },
                  "audioInputVariable": {
                    "type": "string"
                  },
                  "documentInputVariable": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "checkmarkSymbol": {
                    "type": "string"
                  },
                  "multiSelectCheckmark": {
                    "type": "string"
                  },
                  "radioSelectedSymbol": {
                    "type": "string"
                  },
                  "radioUnselectedSymbol": {
                    "type": "string"
                  },
                  "duration": {
                    "type": "number"
                  },
                  "muteDuration": {
                    "type": "number"
                  },
                  "reason": {
                    "type": "string"
                  },
                  "canChangeInfo": {
                    "type": "boolean",
                    "default": false
                  },
                  "canDeleteMessages": {
                    "type": "boolean",
                    "default": false
                  },
                  "canBanUsers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canInviteUsers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canPinMessages": {
                    "type": "boolean",
                    "default": false
                  },
                  "canAddAdmins": {
                    "type": "boolean",
                    "default": false
                  },
                  "canRestrictMembers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canPromoteMembers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canManageVideoChats": {
                    "type": "boolean",
                    "default": false
                  },
                  "canManageTopics": {
                    "type": "boolean",
                    "default": false
                  },
                  "isAnonymous": {
                    "type": "boolean",
                    "default": false
                  },
                  "canManageChat": {
                    "type": "boolean"
                  },
                  "canPostMessages": {
                    "type": "boolean"
                  },
                  "canEditMessages": {
                    "type": "boolean"
                  },
                  "canManageDirectMessages": {
                    "type": "boolean"
                  },
                  "canManageTags": {
                    "type": "boolean"
                  },
                  "canSendWelcomeMessages": {
                    "type": "boolean"
                  },
                  "canSendMessages": {
                    "type": "boolean",
                    "default": true
                  },
                  "canSendAudios": {
                    "type": "boolean"
                  },
                  "canSendDocuments": {
                    "type": "boolean"
                  },
                  "canSendPhotos": {
                    "type": "boolean"
                  },
                  "canSendVideos": {
                    "type": "boolean"
                  },
                  "canSendVideoNotes": {
                    "type": "boolean"
                  },
                  "canSendVoiceNotes": {
                    "type": "boolean"
                  },
                  "canReactToMessages": {
                    "type": "boolean"
                  },
                  "canSendPolls": {
                    "type": "boolean",
                    "default": true
                  },
                  "canSendOtherMessages": {
                    "type": "boolean",
                    "default": true
                  },
                  "canAddWebPagePreviews": {
                    "type": "boolean",
                    "default": true
                  },
                  "canChangeGroupInfo": {
                    "type": "boolean",
                    "default": true
                  },
                  "canInviteUsers2": {
                    "type": "boolean",
                    "default": true
                  },
                  "canPinMessages2": {
                    "type": "boolean",
                    "default": true
                  },
                  "untilDate": {
                    "type": "number"
                  },
                  "adminTargetUserId": {
                    "type": "string"
                  },
                  "adminUserIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "last_message"
                    ],
                    "default": "last_message"
                  },
                  "adminUserVariableName": {
                    "type": "string"
                  },
                  "can_manage_chat": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_post_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_edit_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_delete_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_post_stories": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_edit_stories": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_delete_stories": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_manage_video_chats": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_restrict_members": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_promote_members": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_change_info": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_invite_users": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_pin_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_manage_topics": {
                    "type": "boolean",
                    "default": false
                  },
                  "is_anonymous": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_manage_direct_messages": {
                    "type": "boolean"
                  },
                  "can_manage_tags": {
                    "type": "boolean"
                  },
                  "can_send_welcome_messages": {
                    "type": "boolean"
                  },
                  "adminChatId": {
                    "type": "string"
                  },
                  "adminChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "current_chat"
                    ],
                    "default": "current_chat"
                  },
                  "adminChatVariableName": {
                    "type": "string"
                  },
                  "attachedMedia": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "sendAsGifUrls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "text": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string"
                  },
                  "waitForTextInput": {
                    "type": "boolean"
                  },
                  "broadcastApiType": {
                    "type": "string",
                    "enum": [
                      "bot",
                      "client"
                    ],
                    "default": "bot"
                  },
                  "broadcastTargetNode": {
                    "type": "string"
                  },
                  "enableBroadcast": {
                    "type": "boolean",
                    "default": false
                  },
                  "enableConfirmation": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmationText": {
                    "type": "string"
                  },
                  "successMessage": {
                    "type": "string"
                  },
                  "errorMessage": {
                    "type": "string"
                  },
                  "sessionName": {
                    "type": "string",
                    "default": "user_session"
                  },
                  "sessionCreated": {
                    "type": "boolean",
                    "default": false
                  },
                  "textSynonyms": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "textMatchType": {
                    "type": "string",
                    "enum": [
                      "exact",
                      "contains"
                    ],
                    "default": "exact"
                  },
                  "variable": {
                    "type": "string"
                  },
                  "forumChatId": {
                    "type": "string"
                  },
                  "forumChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ],
                    "default": "manual"
                  },
                  "forumChatVariableName": {
                    "type": "string"
                  },
                  "topicName": {
                    "type": "string"
                  },
                  "topicIconColor": {
                    "type": "string"
                  },
                  "saveThreadIdTo": {
                    "type": "string"
                  },
                  "saveMessageIdTo": {
                    "type": "string"
                  },
                  "saveBotIdTo": {
                    "type": "string"
                  },
                  "saveBotUsernameTo": {
                    "type": "string"
                  },
                  "saveBotNameTo": {
                    "type": "string"
                  },
                  "saveCreatorIdTo": {
                    "type": "string"
                  },
                  "saveCreatorUsernameTo": {
                    "type": "string"
                  },
                  "filterByUserId": {
                    "type": "string"
                  },
                  "skipIfExists": {
                    "type": "boolean",
                    "default": false
                  },
                  "imtChatTypeFilter": {
                    "type": "string",
                    "enum": [
                      "any",
                      "private",
                      "group"
                    ],
                    "default": "any"
                  },
                  "imtGroupChatId": {
                    "type": "string"
                  },
                  "imtGroupChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ]
                  },
                  "imtStopOnFlag": {
                    "type": "boolean",
                    "default": true
                  },
                  "groupChatId": {
                    "type": "string"
                  },
                  "groupChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ]
                  },
                  "groupChatVariableName": {
                    "type": "string"
                  },
                  "threadIdVariable": {
                    "type": "string"
                  },
                  "resolvedUserIdVariable": {
                    "type": "string"
                  },
                  "memberEventType": {
                    "type": "string",
                    "enum": [
                      "join",
                      "leave",
                      "both"
                    ],
                    "default": "join"
                  },
                  "saveJoinedUserIdTo": {
                    "type": "string"
                  },
                  "saveJoinedUsernameTo": {
                    "type": "string"
                  },
                  "saveLeftUserIdTo": {
                    "type": "string"
                  },
                  "saveLeftUsernameTo": {
                    "type": "string"
                  },
                  "branches": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string",
                          "default": ""
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "filled",
                            "empty",
                            "equals",
                            "not_equals",
                            "contains",
                            "not_contains",
                            "starts_with",
                            "ends_with",
                            "matches_regex",
                            "greater_than",
                            "less_than",
                            "between",
                            "is_even",
                            "is_odd",
                            "divisible_by",
                            "else",
                            "is_private",
                            "is_group",
                            "is_channel",
                            "is_admin",
                            "is_premium",
                            "is_bot",
                            "is_subscribed",
                            "is_not_subscribed"
                          ]
                        },
                        "value": {
                          "type": "string"
                        },
                        "value2": {
                          "type": "string"
                        },
                        "valueRegex": {
                          "type": "string"
                        },
                        "target": {
                          "type": "string"
                        },
                        "subscriptionMode": {
                          "type": "string",
                          "enum": [
                            "all",
                            "any"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "operator",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "parallelBranches": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string",
                          "default": ""
                        },
                        "target": {
                          "type": "string"
                        },
                        "onErrorTarget": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "maxConcurrent": {
                    "type": "number",
                    "default": 5
                  },
                  "awaitAll": {
                    "type": "boolean",
                    "default": false
                  },
                  "skipIfRunning": {
                    "type": "boolean",
                    "default": true
                  },
                  "counterKey": {
                    "type": "string"
                  },
                  "windowSeconds": {
                    "type": "string"
                  },
                  "messageSendRecipients": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "user",
                            "chat_id",
                            "admin_ids"
                          ],
                          "default": "user"
                        },
                        "chatId": {
                          "type": "string"
                        },
                        "threadId": {
                          "type": "string"
                        },
                        "isGroup": {
                          "type": "boolean",
                          "default": false
                        },
                        "botToken": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "messageSendTarget": {
                    "type": "string"
                  },
                  "messageSendChatId": {
                    "type": "string"
                  },
                  "messageSendThreadId": {
                    "type": "string"
                  },
                  "httpRequestUrl": {
                    "type": "string"
                  },
                  "httpRequestMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST",
                      "PUT",
                      "PATCH",
                      "DELETE"
                    ],
                    "default": "GET"
                  },
                  "httpRequestHeaders": {
                    "type": "string"
                  },
                  "httpRequestBody": {
                    "type": "string"
                  },
                  "httpRequestTimeout": {
                    "type": "number",
                    "default": 30
                  },
                  "httpRequestResponseVariable": {
                    "type": "string"
                  },
                  "httpRequestResponseJsonPath": {
                    "type": "string"
                  },
                  "httpRequestResponseExtractTo": {
                    "type": "string"
                  },
                  "httpRequestStatusVariable": {
                    "type": "string"
                  },
                  "botIdSource": {
                    "type": "string"
                  },
                  "botIdVariable": {
                    "type": "string"
                  },
                  "botIdManual": {
                    "type": "string"
                  },
                  "saveTokenTo": {
                    "type": "string"
                  },
                  "saveErrorTo": {
                    "type": "string"
                  },
                  "httpRequestQueryParams": {
                    "type": "string"
                  },
                  "httpRequestBodyFormat": {
                    "type": "string",
                    "enum": [
                      "json",
                      "form-urlencoded",
                      "raw"
                    ],
                    "default": "json"
                  },
                  "httpRequestAuthType": {
                    "type": "string",
                    "enum": [
                      "none",
                      "basic",
                      "bearer",
                      "header",
                      "query"
                    ],
                    "default": "none"
                  },
                  "httpRequestAuthBearerToken": {
                    "type": "string"
                  },
                  "httpRequestAuthBasicUsername": {
                    "type": "string"
                  },
                  "httpRequestAuthBasicPassword": {
                    "type": "string"
                  },
                  "httpRequestAuthHeaderName": {
                    "type": "string"
                  },
                  "httpRequestAuthHeaderValue": {
                    "type": "string"
                  },
                  "httpRequestAuthQueryName": {
                    "type": "string"
                  },
                  "httpRequestAuthQueryValue": {
                    "type": "string"
                  },
                  "httpRequestResponseFormat": {
                    "type": "string",
                    "enum": [
                      "autodetect",
                      "json",
                      "text",
                      "file"
                    ],
                    "default": "autodetect"
                  },
                  "httpRequestIgnoreHttpErrors": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestIgnoreSsl": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestFollowRedirects": {
                    "type": "boolean",
                    "default": true
                  },
                  "httpRequestEnablePagination": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestPaginationMode": {
                    "type": "string",
                    "enum": [
                      "interactive",
                      "fetch_all"
                    ],
                    "default": "interactive"
                  },
                  "httpRequestPaginationOffsetVar": {
                    "type": "string"
                  },
                  "httpRequestPaginationTotalField": {
                    "type": "string",
                    "default": "count"
                  },
                  "httpRequestPaginationItemsField": {
                    "type": "string",
                    "default": "items"
                  },
                  "httpRequestPaginationLimit": {
                    "type": "number",
                    "default": 10
                  },
                  "httpRequestPaginationMaxPages": {
                    "type": "number",
                    "default": 20
                  },
                  "httpRequestBatchEnabled": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestBatchSource": {
                    "type": "string"
                  },
                  "httpRequestBatchItemVar": {
                    "type": "string",
                    "default": "item"
                  },
                  "httpRequestBatchResultVariable": {
                    "type": "string"
                  },
                  "httpRequestBatchResultFields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "key",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "attachedMediaThumbnails": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "default": {}
                  },
                  "query": {
                    "type": "string",
                    "default": ""
                  },
                  "connectionSource": {
                    "type": "string",
                    "enum": [
                      "builtin",
                      "env",
                      "custom"
                    ]
                  },
                  "connectionEnvVar": {
                    "type": "string"
                  },
                  "connectionString": {
                    "type": "string"
                  },
                  "saveResultTo": {
                    "type": "string",
                    "default": ""
                  },
                  "resultFormat": {
                    "type": "string",
                    "enum": [
                      "json",
                      "text",
                      "first_row",
                      "affected",
                      "all_rows",
                      "scalar",
                      "count",
                      "random_row"
                    ],
                    "default": "first_row"
                  },
                  "textTemplate": {
                    "type": "string",
                    "default": ""
                  },
                  "assignments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "variable": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "text",
                            "expression",
                            "lookup",
                            "str_replace",
                            "json_push",
                            "json_format",
                            "random",
                            "random_item",
                            "array_item",
                            "timestamp",
                            "format_duration",
                            "format_number",
                            "regex_extract",
                            "extract_number",
                            "split_get",
                            "json_get",
                            "substring",
                            "conditional",
                            "lowercase",
                            "uppercase",
                            "trim",
                            "length",
                            "array_concat"
                          ],
                          "default": "text"
                        },
                        "lookupTable": {
                          "type": "string",
                          "default": ""
                        },
                        "lookupField": {
                          "type": "string",
                          "default": ""
                        },
                        "lookupWhere": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "field",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          "default": []
                        },
                        "replaceWith": {
                          "type": "string",
                          "default": ""
                        },
                        "pattern": {
                          "type": "string",
                          "default": ""
                        },
                        "regexGroup": {
                          "type": "string",
                          "default": "0"
                        },
                        "maxValue": {
                          "type": "string",
                          "default": ""
                        },
                        "separator": {
                          "type": "string",
                          "default": ""
                        },
                        "jsonPath": {
                          "type": "string",
                          "default": ""
                        },
                        "startIndex": {
                          "type": "string",
                          "default": "0"
                        },
                        "endIndex": {
                          "type": "string",
                          "default": ""
                        },
                        "conditionVariable": {
                          "type": "string",
                          "default": ""
                        },
                        "conditionOperator": {
                          "type": "string",
                          "default": "equals"
                        },
                        "conditionValue": {
                          "type": "string",
                          "default": ""
                        },
                        "trueValue": {
                          "type": "string",
                          "default": ""
                        },
                        "falseValue": {
                          "type": "string",
                          "default": ""
                        },
                        "concatWith": {
                          "type": "string",
                          "default": ""
                        },
                        "skipIfEmpty": {
                          "type": "string",
                          "default": ""
                        },
                        "persistToDb": {
                          "type": "boolean",
                          "default": true
                        }
                      },
                      "required": [
                        "id",
                        "variable",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "convertFileMode": {
                    "type": "string",
                    "enum": [
                      "toFile"
                    ],
                    "default": "toFile"
                  },
                  "convertFileInputVariable": {
                    "type": "string",
                    "default": ""
                  },
                  "convertFileFormat": {
                    "type": "string",
                    "enum": [
                      "csv",
                      "json"
                    ],
                    "default": "csv"
                  },
                  "convertFileFileName": {
                    "type": "string",
                    "default": "export_{date}.csv"
                  },
                  "convertFileCsvDelimiter": {
                    "type": "string",
                    "default": ","
                  },
                  "convertFileIncludeHeaderRow": {
                    "type": "boolean",
                    "default": true
                  },
                  "convertFileOutputVariable": {
                    "type": "string",
                    "default": ""
                  },
                  "code": {
                    "type": "string",
                    "default": ""
                  },
                  "apiMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST",
                      "PUT",
                      "PATCH",
                      "DELETE"
                    ],
                    "default": "POST"
                  },
                  "apiPath": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSecretToken": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSaveBodyTo": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSaveQueryTo": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSaveHeadersTo": {
                    "type": "string",
                    "default": ""
                  },
                  "apiParseJson": {
                    "type": "boolean",
                    "default": true
                  },
                  "apiResponseStatusCode": {
                    "type": "number",
                    "default": 200
                  },
                  "apiResponseBody": {
                    "type": "string",
                    "default": "{\"ok\":true}"
                  },
                  "apiResponseContentType": {
                    "type": "string",
                    "enum": [
                      "application/json",
                      "text/plain",
                      "text/html"
                    ],
                    "default": "application/json"
                  },
                  "apiResponseHeaders": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "key",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "invoiceTitle": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceDescription": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceAmount": {
                    "type": "string",
                    "default": "1"
                  },
                  "invoicePrices": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "amount": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "label",
                        "amount"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "invoiceCurrency": {
                    "type": "string",
                    "default": "XTR"
                  },
                  "invoiceProviderSource": {
                    "type": "string",
                    "default": "inline"
                  },
                  "invoiceProviderToken": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceProviderTokenEnv": {
                    "type": "string",
                    "default": "PAYMENT_PROVIDER_TOKEN"
                  },
                  "invoiceNeedName": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceNeedEmail": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceNeedPhone": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceNeedShipping": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceIsFlexible": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceSendPhoneToProvider": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceSendEmailToProvider": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceProtectContent": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceMaxTipAmount": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceSuggestedTipAmounts": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceProviderData": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceStartParameter": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceSubscription": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoicePhotoUrl": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePhotoSize": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePhotoWidth": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePhotoHeight": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceMessageThreadId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceDirectMessagesTopicId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceDisableNotification": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceReplyToMessageId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceMessageEffectId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceAllowPaidBroadcast": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceSuggestedPostParams": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePayload": {
                    "type": "string",
                    "default": ""
                  },
                  "savePaymentAmountTo": {
                    "type": "string",
                    "default": ""
                  },
                  "savePaymentChargeIdTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveOrderNameTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveOrderEmailTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveOrderPhoneTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveInvoiceLinkTo": {
                    "type": "string",
                    "default": ""
                  },
                  "afterPaymentTo": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutMode": {
                    "type": "string",
                    "default": "always"
                  },
                  "preCheckoutVariable": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutOperator": {
                    "type": "string",
                    "default": "filled"
                  },
                  "preCheckoutValue": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutValue2": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutErrorMessage": {
                    "type": "string",
                    "default": ""
                  },
                  "refundUserSource": {
                    "type": "string",
                    "default": "current_user"
                  },
                  "refundUserId": {
                    "type": "string",
                    "default": ""
                  },
                  "refundChargeId": {
                    "type": "string",
                    "default": ""
                  },
                  "refundMsgEmpty": {
                    "type": "string",
                    "default": "Пожалуйста, укажите код покупки: /back КОД"
                  },
                  "refundMsgNotFound": {
                    "type": "string",
                    "default": "Такой код покупки не найден. Проверьте данные и попробуйте снова."
                  },
                  "refundMsgAlreadyRefunded": {
                    "type": "string",
                    "default": "За эту покупку уже ранее был произведён возврат."
                  },
                  "refundEmptyTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "refundNotFoundTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "refundAlreadyRefundedTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionUserSource": {
                    "type": "string",
                    "default": "current_user"
                  },
                  "subscriptionUserId": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionChargeId": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionAction": {
                    "type": "string",
                    "default": "cancel"
                  },
                  "subscriptionMsgEmpty": {
                    "type": "string",
                    "default": "Укажите код покупки подписки"
                  },
                  "subscriptionMsgError": {
                    "type": "string",
                    "default": "Не удалось изменить автопродление. Проверьте код покупки."
                  },
                  "subscriptionEmptyTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionErrorTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "saveStarBalanceTo": {
                    "type": "string",
                    "default": "star_balance"
                  },
                  "balanceMsgError": {
                    "type": "string",
                    "default": "Не удалось получить баланс звёзд"
                  },
                  "balanceErrorTarget": {
                    "type": "string",
                    "default": ""
                  }
                },
                "additionalProperties": true
              }
            },
            "required": [
              "id",
              "type",
              "position",
              "data"
            ],
            "additionalProperties": true,
            "description": "Узел по общей схеме проекта"
          },
          "sheet_id": {
            "type": "string"
          }
        },
        "required": [
          "project_json",
          "node"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "prepare",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "prepare",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "connect_nodes",
      "section": "scenario",
      "description": "Соединить ноды: auto-transition, button-goto+branch, input-target",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_json": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "additionalProperties": {}
              }
            ]
          },
          "from_id": {
            "type": "string"
          },
          "to_id": {
            "type": "string"
          },
          "branch": {
            "type": "string",
            "description": "id кнопки/ветки для portType=button-goto"
          },
          "port_type": {
            "type": "string",
            "enum": [
              "auto-transition",
              "trigger-next",
              "button-goto",
              "input-target"
            ]
          },
          "sheet_id": {
            "type": "string"
          }
        },
        "required": [
          "project_json",
          "from_id",
          "to_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "prepare",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "prepare",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_json": "1",
        "from_id": "1",
        "to_id": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "create_node",
      "section": "scenario",
      "description": "Создать одну ноду с дефолтами конструктора (get_node_schema перед незнакомым типом). Для command_trigger: только латиница (/buy, /refund), не /купить",
      "inputSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Тип ноды"
          },
          "partial_data": {
            "type": "object",
            "additionalProperties": {},
            "description": "Частичные поля data для merge"
          },
          "id": {
            "type": "string"
          },
          "position": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "type"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "prepare",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "prepare",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "type": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_add_bot_token",
      "section": "runtime",
      "description": "Подключить бота к проекту: добавить токен от @BotFather (модалка «Подключить бота»). Сервер вызывает getMe и шлёт WS token-created. Дубликат того же token → ok + created:false. Ответ БЕЗ секрета token (только id/name/username). Эквивалент POST /api/projects/:id/tokens. После добавления можно db_start_bot(project_id, token_id).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "ID проекта из URL редактора"
          },
          "token": {
            "type": "string",
            "description": "Токен от @BotFather, вид 123456789:AAH…"
          },
          "name": {
            "type": "string",
            "description": "Имя записи (по умолчанию «Основной токен»; UI часто ставит FirstName (@username))"
          },
          "is_default": {
            "type": "boolean",
            "description": "Сделать токеном по умолчанию (по умолчанию false)"
          }
        },
        "required": [
          "project_id",
          "token"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "runtime",
          "effect": "external",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "runtime",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_add_node",
      "section": "scenario",
      "description": "Добавить ноду в проект в БД живого приложения с обновлением холста (live). Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "node": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "enum": [
                  "start",
                  "message",
                  "command",
                  "command_trigger",
                  "text_trigger",
                  "incoming_message_trigger",
                  "incoming_callback_trigger",
                  "outgoing_message_trigger",
                  "group_message_trigger",
                  "member_trigger",
                  "callback_trigger",
                  "managed_bot_updated_trigger",
                  "schedule_trigger",
                  "api_trigger",
                  "sticker",
                  "voice",
                  "animation",
                  "location",
                  "contact",
                  "pin_message",
                  "unpin_message",
                  "delete_message",
                  "forward_message",
                  "ban_user",
                  "unban_user",
                  "mute_user",
                  "unmute_user",
                  "kick_user",
                  "promote_user",
                  "demote_user",
                  "admin_rights",
                  "photo",
                  "video",
                  "audio",
                  "document",
                  "keyboard",
                  "input",
                  "condition",
                  "broadcast",
                  "client_auth",
                  "media",
                  "create_forum_topic",
                  "http_request",
                  "get_managed_bot_token",
                  "answer_callback_query",
                  "edit_message",
                  "set_variable",
                  "psql_query",
                  "convert_file",
                  "loop",
                  "bot_table",
                  "delay",
                  "api_response",
                  "userbot_message",
                  "userbot_click_button",
                  "userbot_inline_query",
                  "userbot_edit_trigger",
                  "parallel_split",
                  "stop_processing",
                  "rate_counter",
                  "code",
                  "comment",
                  "send_invoice",
                  "create_invoice_link",
                  "refund_stars",
                  "edit_star_subscription",
                  "get_star_balance",
                  "successful_payment_trigger"
                ]
              },
              "position": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "data": {
                "type": "object",
                "properties": {
                  "userbotEntity": {
                    "type": "string"
                  },
                  "userbotEntitySource": {
                    "type": "string"
                  },
                  "userbotEntityVariable": {
                    "type": "string"
                  },
                  "userbotRecipients": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "messageId": {
                    "type": "string"
                  },
                  "clickMode": {
                    "type": "string",
                    "enum": [
                      "text",
                      "data",
                      "index"
                    ]
                  },
                  "clickDelivery": {
                    "type": "string",
                    "enum": [
                      "fire_and_forget",
                      "await"
                    ]
                  },
                  "clickValue": {
                    "type": "string"
                  },
                  "responseStrategy": {
                    "type": "string",
                    "enum": [
                      "first",
                      "longest",
                      "regex_match",
                      "last",
                      "edit",
                      "new_message"
                    ]
                  },
                  "responseWaitSeconds": {
                    "type": "number"
                  },
                  "responseFilterRegex": {
                    "type": "string"
                  },
                  "responseFloorMessageIdVar": {
                    "type": "string"
                  },
                  "saveAlertTo": {
                    "type": "string"
                  },
                  "saveButtonsTo": {
                    "type": "string"
                  },
                  "saveHasMediaTo": {
                    "type": "string"
                  },
                  "saveMediaTo": {
                    "type": "string"
                  },
                  "saveResponseIdTo": {
                    "type": "string"
                  },
                  "saveResponseTextTo": {
                    "type": "string"
                  },
                  "botUsername": {
                    "type": "string"
                  },
                  "targetChat": {
                    "type": "string"
                  },
                  "sendToSameChat": {
                    "type": "boolean"
                  },
                  "resultIndex": {
                    "type": "string"
                  },
                  "saveResultTitleTo": {
                    "type": "string"
                  },
                  "saveResultDescTo": {
                    "type": "string"
                  },
                  "filterType": {
                    "type": "string",
                    "enum": [
                      "any",
                      "contains",
                      "regex"
                    ]
                  },
                  "filterValue": {
                    "type": "string"
                  },
                  "saveTextTo": {
                    "type": "string"
                  },
                  "saveChatIdTo": {
                    "type": "string"
                  },
                  "saveSenderIdTo": {
                    "type": "string"
                  },
                  "command": {
                    "type": "string"
                  },
                  "deepLinkParam": {
                    "type": "string"
                  },
                  "deepLinkMatchMode": {
                    "type": "string",
                    "enum": [
                      "exact",
                      "startsWith"
                    ]
                  },
                  "deepLinkSaveToVar": {
                    "type": "boolean"
                  },
                  "deepLinkVarName": {
                    "type": "string"
                  },
                  "commentColor": {
                    "type": "string",
                    "enum": [
                      "yellow",
                      "blue",
                      "green",
                      "pink",
                      "gray"
                    ]
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "interval",
                            "weekday",
                            "monthday",
                            "cron"
                          ]
                        },
                        "intervalMinutes": {
                          "type": "number"
                        },
                        "days": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "hour": {
                          "type": "number"
                        },
                        "minute": {
                          "type": "number"
                        },
                        "monthDays": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        },
                        "cronExpression": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "mode"
                      ],
                      "additionalProperties": true
                    }
                  },
                  "timezone": {
                    "type": "string"
                  },
                  "runOnStart": {
                    "type": "boolean"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "description": {
                    "type": "string"
                  },
                  "messageText": {
                    "type": "string"
                  },
                  "imageUrl": {
                    "type": "string"
                  },
                  "videoUrl": {
                    "type": "string"
                  },
                  "audioUrl": {
                    "type": "string"
                  },
                  "documentUrl": {
                    "type": "string"
                  },
                  "documentName": {
                    "type": "string"
                  },
                  "mediaCaption": {
                    "type": "string"
                  },
                  "keyboardType": {
                    "type": "string",
                    "enum": [
                      "reply",
                      "inline",
                      "none"
                    ],
                    "default": "none"
                  },
                  "keyboardNodeId": {
                    "type": "string"
                  },
                  "seconds": {
                    "type": "string"
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "seconds",
                      "minutes",
                      "hours",
                      "days",
                      "weeks"
                    ]
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "blocking",
                      "background"
                    ]
                  },
                  "buttons": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "action": {
                          "type": "string",
                          "enum": [
                            "goto",
                            "command",
                            "url",
                            "contact",
                            "location",
                            "selection",
                            "complete",
                            "default",
                            "copy_text",
                            "web_app",
                            "request_managed_bot",
                            "pay"
                          ],
                          "default": "goto"
                        },
                        "copyText": {
                          "type": "string"
                        },
                        "webAppUrl": {
                          "type": "string"
                        },
                        "target": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "requestContact": {
                          "type": "boolean"
                        },
                        "requestLocation": {
                          "type": "boolean"
                        },
                        "buttonType": {
                          "type": "string",
                          "enum": [
                            "normal",
                            "option",
                            "complete"
                          ],
                          "default": "normal"
                        },
                        "skipDataCollection": {
                          "type": "boolean",
                          "default": false
                        },
                        "hideAfterClick": {
                          "type": "boolean",
                          "default": false
                        },
                        "customCallbackData": {
                          "type": "string"
                        },
                        "style": {
                          "type": "string",
                          "enum": [
                            "primary",
                            "success",
                            "danger"
                          ]
                        },
                        "suggestedBotName": {
                          "type": "string"
                        },
                        "suggestedBotUsername": {
                          "type": "string"
                        },
                        "selectionGroup": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "shuffleButtons": {
                    "type": "boolean",
                    "default": false
                  },
                  "enableDynamicButtons": {
                    "type": "boolean",
                    "default": false
                  },
                  "dynamicButtons": {
                    "type": "object",
                    "properties": {
                      "sourceVariable": {
                        "type": "string",
                        "default": ""
                      },
                      "arrayPath": {
                        "type": "string",
                        "default": ""
                      },
                      "textTemplate": {
                        "type": "string",
                        "default": ""
                      },
                      "callbackTemplate": {
                        "type": "string",
                        "default": ""
                      },
                      "styleMode": {
                        "type": "string",
                        "enum": [
                          "field",
                          "template",
                          "none"
                        ],
                        "default": "none"
                      },
                      "styleField": {
                        "type": "string",
                        "default": ""
                      },
                      "styleTemplate": {
                        "type": "string",
                        "default": ""
                      },
                      "columns": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 6,
                        "default": 2
                      }
                    },
                    "additionalProperties": true
                  },
                  "keyboardLayout": {
                    "type": "object",
                    "properties": {
                      "rows": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "buttonIds": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "buttonIds"
                          ],
                          "additionalProperties": false
                        },
                        "default": []
                      },
                      "columns": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 6,
                        "default": 2
                      },
                      "autoLayout": {
                        "type": "boolean",
                        "default": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "oneTimeKeyboard": {
                    "type": "boolean",
                    "default": false
                  },
                  "resizeKeyboard": {
                    "type": "boolean",
                    "default": true
                  },
                  "markdown": {
                    "type": "boolean",
                    "default": false
                  },
                  "formatMode": {
                    "type": "string",
                    "enum": [
                      "html",
                      "markdown",
                      "none"
                    ],
                    "default": "none"
                  },
                  "disableLinkPreview": {
                    "type": "boolean",
                    "default": false
                  },
                  "synonyms": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "matchMode": {
                    "type": "string",
                    "enum": [
                      "exact",
                      "contains",
                      "fuzzy"
                    ],
                    "default": "exact"
                  },
                  "adminOnly": {
                    "type": "boolean",
                    "default": false
                  },
                  "requiresAuth": {
                    "type": "boolean",
                    "default": false
                  },
                  "showInMenu": {
                    "type": "boolean",
                    "default": true
                  },
                  "saveCommandArgsTo": {
                    "type": "string",
                    "default": ""
                  },
                  "commandTimeout": {
                    "type": "number"
                  },
                  "cooldownTime": {
                    "type": "number"
                  },
                  "maxUsagesPerDay": {
                    "type": "number"
                  },
                  "customParameters": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "targetMessageId": {
                    "type": "string"
                  },
                  "sourceMessageId": {
                    "type": "string"
                  },
                  "messageIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "last_message",
                      "current_message",
                      "last_bot_message",
                      "reply_message",
                      "range_from_reply",
                      "last_n",
                      "custom",
                      "last"
                    ],
                    "default": "last_message"
                  },
                  "messageIdManual": {
                    "type": "string"
                  },
                  "lastNCount": {
                    "type": "string"
                  },
                  "chatIdSource": {
                    "type": "string",
                    "enum": [
                      "current_chat",
                      "custom"
                    ],
                    "default": "current_chat"
                  },
                  "chatIdManual": {
                    "type": "string"
                  },
                  "ignoreErrors": {
                    "type": "boolean"
                  },
                  "bulkDelete": {
                    "type": "boolean",
                    "default": false
                  },
                  "bulkMessageIdsVariable": {
                    "type": "string"
                  },
                  "sourceMessageIdSource": {
                    "type": "string",
                    "enum": [
                      "current_message",
                      "last_message",
                      "manual",
                      "variable"
                    ],
                    "default": "current_message"
                  },
                  "sourceMessageNodeId": {
                    "type": "string"
                  },
                  "sourceMessageVariableName": {
                    "type": "string"
                  },
                  "variableName": {
                    "type": "string"
                  },
                  "disableNotification": {
                    "type": "boolean",
                    "default": false
                  },
                  "hideAuthor": {
                    "type": "boolean",
                    "default": false
                  },
                  "targetChatId": {
                    "type": "string"
                  },
                  "targetChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "admin_ids"
                    ],
                    "default": "manual"
                  },
                  "targetChatVariableName": {
                    "type": "string"
                  },
                  "targetChatTargets": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "targetChatIdSource": {
                          "type": "string",
                          "enum": [
                            "manual",
                            "variable",
                            "admin_ids"
                          ],
                          "default": "manual"
                        },
                        "targetChatId": {
                          "type": "string"
                        },
                        "targetChatVariableName": {
                          "type": "string"
                        },
                        "targetChatType": {
                          "type": "string",
                          "enum": [
                            "user",
                            "group"
                          ]
                        },
                        "targetThreadId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "targetThreadId": {
                    "type": "string"
                  },
                  "targetThreadIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ]
                  },
                  "targetThreadIdVariable": {
                    "type": "string"
                  },
                  "targetUserId": {
                    "type": "string"
                  },
                  "userIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "last_message",
                      "current_user",
                      "reply_user",
                      "custom"
                    ],
                    "default": "last_message"
                  },
                  "userIdManual": {
                    "type": "string"
                  },
                  "userVariableName": {
                    "type": "string"
                  },
                  "targetGroupId": {
                    "type": "string"
                  },
                  "stickerUrl": {
                    "type": "string"
                  },
                  "stickerFileId": {
                    "type": "string"
                  },
                  "voiceUrl": {
                    "type": "string"
                  },
                  "animationUrl": {
                    "type": "string"
                  },
                  "latitude": {
                    "type": "number"
                  },
                  "longitude": {
                    "type": "number"
                  },
                  "title": {
                    "type": "string"
                  },
                  "address": {
                    "type": "string"
                  },
                  "foursquareId": {
                    "type": "string"
                  },
                  "foursquareType": {
                    "type": "string"
                  },
                  "mapService": {
                    "type": "string",
                    "enum": [
                      "yandex",
                      "google",
                      "2gis",
                      "custom"
                    ],
                    "default": "custom"
                  },
                  "yandexMapUrl": {
                    "type": "string"
                  },
                  "googleMapUrl": {
                    "type": "string"
                  },
                  "gisMapUrl": {
                    "type": "string"
                  },
                  "mapZoom": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 20,
                    "default": 15
                  },
                  "showDirections": {
                    "type": "boolean",
                    "default": false
                  },
                  "generateMapPreview": {
                    "type": "boolean",
                    "default": true
                  },
                  "phoneNumber": {
                    "type": "string"
                  },
                  "firstName": {
                    "type": "string"
                  },
                  "lastName": {
                    "type": "string"
                  },
                  "userId": {
                    "type": "number"
                  },
                  "vcard": {
                    "type": "string"
                  },
                  "question": {
                    "type": "string"
                  },
                  "options": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "allowsMultipleAnswers": {
                    "type": "boolean",
                    "default": false
                  },
                  "anonymousVoting": {
                    "type": "boolean",
                    "default": true
                  },
                  "emoji": {
                    "type": "string"
                  },
                  "mediaDuration": {
                    "type": "number"
                  },
                  "width": {
                    "type": "number"
                  },
                  "height": {
                    "type": "number"
                  },
                  "performer": {
                    "type": "string"
                  },
                  "fileSize": {
                    "type": "number"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "inputType": {
                    "type": "string",
                    "enum": [
                      "text",
                      "number",
                      "email",
                      "phone",
                      "photo",
                      "video",
                      "audio",
                      "document",
                      "location",
                      "contact",
                      "any"
                    ],
                    "default": "text"
                  },
                  "responseType": {
                    "type": "string",
                    "enum": [
                      "text",
                      "buttons"
                    ],
                    "default": "text"
                  },
                  "responseOptions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        },
                        "action": {
                          "type": "string",
                          "enum": [
                            "goto",
                            "command",
                            "url"
                          ],
                          "default": "goto"
                        },
                        "target": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "allowMultipleSelection": {
                    "type": "boolean",
                    "default": false
                  },
                  "multiSelectVariable": {
                    "type": "string"
                  },
                  "continueButtonText": {
                    "type": "string"
                  },
                  "continueButtonTarget": {
                    "type": "string"
                  },
                  "inputVariable": {
                    "type": "string"
                  },
                  "inputPrompt": {
                    "type": "string"
                  },
                  "inputValidation": {
                    "type": "string"
                  },
                  "inputRequired": {
                    "type": "boolean",
                    "default": true
                  },
                  "inputTimeout": {
                    "type": "number"
                  },
                  "inputTimeoutMessage": {
                    "type": "string"
                  },
                  "inputRetryMessage": {
                    "type": "string"
                  },
                  "inputSuccessMessage": {
                    "type": "string"
                  },
                  "enableConditionalMessages": {
                    "type": "boolean",
                    "default": false
                  },
                  "conditionalMessages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "condition": {
                          "type": "string",
                          "enum": [
                            "user_data_exists",
                            "user_data_equals",
                            "user_data_not_exists",
                            "user_data_contains",
                            "first_time",
                            "returning_user"
                          ],
                          "default": "user_data_exists"
                        },
                        "variableName": {
                          "type": "string"
                        },
                        "variableNames": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "default": []
                        },
                        "logicOperator": {
                          "type": "string",
                          "enum": [
                            "AND",
                            "OR"
                          ],
                          "default": "AND"
                        },
                        "expectedValue": {
                          "type": "string"
                        },
                        "messageText": {
                          "type": "string"
                        },
                        "formatMode": {
                          "type": "string",
                          "enum": [
                            "text",
                            "markdown",
                            "html"
                          ],
                          "default": "text"
                        },
                        "keyboardType": {
                          "type": "string",
                          "enum": [
                            "reply",
                            "inline",
                            "none"
                          ],
                          "default": "none"
                        },
                        "buttons": {
                          "type": "array",
                          "items": {
                            "$ref": "#/properties/node/properties/data/properties/buttons/items"
                          },
                          "default": []
                        },
                        "resizeKeyboard": {
                          "type": "boolean",
                          "default": true
                        },
                        "oneTimeKeyboard": {
                          "type": "boolean",
                          "default": false
                        },
                        "collectUserInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableTextInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enablePhotoInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableVideoInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableAudioInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableDocumentInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "inputVariable": {
                          "type": "string"
                        },
                        "photoInputVariable": {
                          "type": "string"
                        },
                        "videoInputVariable": {
                          "type": "string"
                        },
                        "audioInputVariable": {
                          "type": "string"
                        },
                        "documentInputVariable": {
                          "type": "string"
                        },
                        "waitForTextInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "textInputVariable": {
                          "type": "string"
                        },
                        "nextNodeAfterInput": {
                          "type": "string"
                        },
                        "priority": {
                          "type": "number",
                          "default": 0
                        }
                      },
                      "required": [
                        "id",
                        "messageText"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "fallbackMessage": {
                    "type": "string"
                  },
                  "saveToDatabase": {
                    "type": "boolean",
                    "default": false
                  },
                  "allowSkip": {
                    "type": "boolean",
                    "default": false
                  },
                  "collectUserInput": {
                    "type": "boolean",
                    "default": false
                  },
                  "inputTargetNodeId": {
                    "type": "string"
                  },
                  "inputButtonType": {
                    "type": "string",
                    "enum": [
                      "inline",
                      "reply"
                    ],
                    "default": "inline"
                  },
                  "enableAutoTransition": {
                    "type": "boolean",
                    "default": false
                  },
                  "autoTransitionTo": {
                    "type": "string"
                  },
                  "sourceNodeId": {
                    "type": "string"
                  },
                  "minLength": {
                    "type": "number"
                  },
                  "maxLength": {
                    "type": "number"
                  },
                  "placeholder": {
                    "type": "string"
                  },
                  "defaultValue": {
                    "type": "string"
                  },
                  "appendVariable": {
                    "type": "boolean",
                    "default": false
                  },
                  "saveMediaMetadata": {
                    "type": "boolean",
                    "default": false
                  },
                  "mediaMetadataSuffixes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "mediaMetadataCustomNames": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "default": {}
                  },
                  "variableFilters": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "default": {}
                  },
                  "enableUserActions": {
                    "type": "boolean",
                    "default": false
                  },
                  "actionTrigger": {
                    "type": "string",
                    "enum": [
                      "join",
                      "leave",
                      "message",
                      "button_click",
                      "custom"
                    ]
                  },
                  "triggerText": {
                    "type": "string"
                  },
                  "userActionType": {
                    "type": "string",
                    "enum": [
                      "message",
                      "command",
                      "button",
                      "media"
                    ]
                  },
                  "actionTag": {
                    "type": "string"
                  },
                  "actionMessage": {
                    "type": "string"
                  },
                  "silentAction": {
                    "type": "boolean",
                    "default": false
                  },
                  "mimeType": {
                    "type": "string"
                  },
                  "stickerSetName": {
                    "type": "string"
                  },
                  "fileName": {
                    "type": "string"
                  },
                  "city": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "enableTextInput": {
                    "type": "boolean"
                  },
                  "enablePhotoInput": {
                    "type": "boolean"
                  },
                  "enableVideoInput": {
                    "type": "boolean"
                  },
                  "enableAudioInput": {
                    "type": "boolean"
                  },
                  "enableDocumentInput": {
                    "type": "boolean"
                  },
                  "photoInputVariable": {
                    "type": "string"
                  },
                  "videoInputVariable": {
                    "type": "string"
                  },
                  "audioInputVariable": {
                    "type": "string"
                  },
                  "documentInputVariable": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "checkmarkSymbol": {
                    "type": "string"
                  },
                  "multiSelectCheckmark": {
                    "type": "string"
                  },
                  "radioSelectedSymbol": {
                    "type": "string"
                  },
                  "radioUnselectedSymbol": {
                    "type": "string"
                  },
                  "duration": {
                    "type": "number"
                  },
                  "muteDuration": {
                    "type": "number"
                  },
                  "reason": {
                    "type": "string"
                  },
                  "canChangeInfo": {
                    "type": "boolean",
                    "default": false
                  },
                  "canDeleteMessages": {
                    "type": "boolean",
                    "default": false
                  },
                  "canBanUsers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canInviteUsers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canPinMessages": {
                    "type": "boolean",
                    "default": false
                  },
                  "canAddAdmins": {
                    "type": "boolean",
                    "default": false
                  },
                  "canRestrictMembers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canPromoteMembers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canManageVideoChats": {
                    "type": "boolean",
                    "default": false
                  },
                  "canManageTopics": {
                    "type": "boolean",
                    "default": false
                  },
                  "isAnonymous": {
                    "type": "boolean",
                    "default": false
                  },
                  "canManageChat": {
                    "type": "boolean"
                  },
                  "canPostMessages": {
                    "type": "boolean"
                  },
                  "canEditMessages": {
                    "type": "boolean"
                  },
                  "canManageDirectMessages": {
                    "type": "boolean"
                  },
                  "canManageTags": {
                    "type": "boolean"
                  },
                  "canSendWelcomeMessages": {
                    "type": "boolean"
                  },
                  "canSendMessages": {
                    "type": "boolean",
                    "default": true
                  },
                  "canSendAudios": {
                    "type": "boolean"
                  },
                  "canSendDocuments": {
                    "type": "boolean"
                  },
                  "canSendPhotos": {
                    "type": "boolean"
                  },
                  "canSendVideos": {
                    "type": "boolean"
                  },
                  "canSendVideoNotes": {
                    "type": "boolean"
                  },
                  "canSendVoiceNotes": {
                    "type": "boolean"
                  },
                  "canReactToMessages": {
                    "type": "boolean"
                  },
                  "canSendPolls": {
                    "type": "boolean",
                    "default": true
                  },
                  "canSendOtherMessages": {
                    "type": "boolean",
                    "default": true
                  },
                  "canAddWebPagePreviews": {
                    "type": "boolean",
                    "default": true
                  },
                  "canChangeGroupInfo": {
                    "type": "boolean",
                    "default": true
                  },
                  "canInviteUsers2": {
                    "type": "boolean",
                    "default": true
                  },
                  "canPinMessages2": {
                    "type": "boolean",
                    "default": true
                  },
                  "untilDate": {
                    "type": "number"
                  },
                  "adminTargetUserId": {
                    "type": "string"
                  },
                  "adminUserIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "last_message"
                    ],
                    "default": "last_message"
                  },
                  "adminUserVariableName": {
                    "type": "string"
                  },
                  "can_manage_chat": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_post_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_edit_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_delete_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_post_stories": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_edit_stories": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_delete_stories": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_manage_video_chats": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_restrict_members": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_promote_members": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_change_info": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_invite_users": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_pin_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_manage_topics": {
                    "type": "boolean",
                    "default": false
                  },
                  "is_anonymous": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_manage_direct_messages": {
                    "type": "boolean"
                  },
                  "can_manage_tags": {
                    "type": "boolean"
                  },
                  "can_send_welcome_messages": {
                    "type": "boolean"
                  },
                  "adminChatId": {
                    "type": "string"
                  },
                  "adminChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "current_chat"
                    ],
                    "default": "current_chat"
                  },
                  "adminChatVariableName": {
                    "type": "string"
                  },
                  "attachedMedia": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "sendAsGifUrls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "text": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string"
                  },
                  "waitForTextInput": {
                    "type": "boolean"
                  },
                  "broadcastApiType": {
                    "type": "string",
                    "enum": [
                      "bot",
                      "client"
                    ],
                    "default": "bot"
                  },
                  "broadcastTargetNode": {
                    "type": "string"
                  },
                  "enableBroadcast": {
                    "type": "boolean",
                    "default": false
                  },
                  "enableConfirmation": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmationText": {
                    "type": "string"
                  },
                  "successMessage": {
                    "type": "string"
                  },
                  "errorMessage": {
                    "type": "string"
                  },
                  "sessionName": {
                    "type": "string",
                    "default": "user_session"
                  },
                  "sessionCreated": {
                    "type": "boolean",
                    "default": false
                  },
                  "textSynonyms": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "textMatchType": {
                    "type": "string",
                    "enum": [
                      "exact",
                      "contains"
                    ],
                    "default": "exact"
                  },
                  "variable": {
                    "type": "string"
                  },
                  "forumChatId": {
                    "type": "string"
                  },
                  "forumChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ],
                    "default": "manual"
                  },
                  "forumChatVariableName": {
                    "type": "string"
                  },
                  "topicName": {
                    "type": "string"
                  },
                  "topicIconColor": {
                    "type": "string"
                  },
                  "saveThreadIdTo": {
                    "type": "string"
                  },
                  "saveMessageIdTo": {
                    "type": "string"
                  },
                  "saveBotIdTo": {
                    "type": "string"
                  },
                  "saveBotUsernameTo": {
                    "type": "string"
                  },
                  "saveBotNameTo": {
                    "type": "string"
                  },
                  "saveCreatorIdTo": {
                    "type": "string"
                  },
                  "saveCreatorUsernameTo": {
                    "type": "string"
                  },
                  "filterByUserId": {
                    "type": "string"
                  },
                  "skipIfExists": {
                    "type": "boolean",
                    "default": false
                  },
                  "imtChatTypeFilter": {
                    "type": "string",
                    "enum": [
                      "any",
                      "private",
                      "group"
                    ],
                    "default": "any"
                  },
                  "imtGroupChatId": {
                    "type": "string"
                  },
                  "imtGroupChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ]
                  },
                  "imtStopOnFlag": {
                    "type": "boolean",
                    "default": true
                  },
                  "groupChatId": {
                    "type": "string"
                  },
                  "groupChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ]
                  },
                  "groupChatVariableName": {
                    "type": "string"
                  },
                  "threadIdVariable": {
                    "type": "string"
                  },
                  "resolvedUserIdVariable": {
                    "type": "string"
                  },
                  "memberEventType": {
                    "type": "string",
                    "enum": [
                      "join",
                      "leave",
                      "both"
                    ],
                    "default": "join"
                  },
                  "saveJoinedUserIdTo": {
                    "type": "string"
                  },
                  "saveJoinedUsernameTo": {
                    "type": "string"
                  },
                  "saveLeftUserIdTo": {
                    "type": "string"
                  },
                  "saveLeftUsernameTo": {
                    "type": "string"
                  },
                  "branches": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string",
                          "default": ""
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "filled",
                            "empty",
                            "equals",
                            "not_equals",
                            "contains",
                            "not_contains",
                            "starts_with",
                            "ends_with",
                            "matches_regex",
                            "greater_than",
                            "less_than",
                            "between",
                            "is_even",
                            "is_odd",
                            "divisible_by",
                            "else",
                            "is_private",
                            "is_group",
                            "is_channel",
                            "is_admin",
                            "is_premium",
                            "is_bot",
                            "is_subscribed",
                            "is_not_subscribed"
                          ]
                        },
                        "value": {
                          "type": "string"
                        },
                        "value2": {
                          "type": "string"
                        },
                        "valueRegex": {
                          "type": "string"
                        },
                        "target": {
                          "type": "string"
                        },
                        "subscriptionMode": {
                          "type": "string",
                          "enum": [
                            "all",
                            "any"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "operator",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "parallelBranches": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string",
                          "default": ""
                        },
                        "target": {
                          "type": "string"
                        },
                        "onErrorTarget": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "maxConcurrent": {
                    "type": "number",
                    "default": 5
                  },
                  "awaitAll": {
                    "type": "boolean",
                    "default": false
                  },
                  "skipIfRunning": {
                    "type": "boolean",
                    "default": true
                  },
                  "counterKey": {
                    "type": "string"
                  },
                  "windowSeconds": {
                    "type": "string"
                  },
                  "messageSendRecipients": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "user",
                            "chat_id",
                            "admin_ids"
                          ],
                          "default": "user"
                        },
                        "chatId": {
                          "type": "string"
                        },
                        "threadId": {
                          "type": "string"
                        },
                        "isGroup": {
                          "type": "boolean",
                          "default": false
                        },
                        "botToken": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "messageSendTarget": {
                    "type": "string"
                  },
                  "messageSendChatId": {
                    "type": "string"
                  },
                  "messageSendThreadId": {
                    "type": "string"
                  },
                  "httpRequestUrl": {
                    "type": "string"
                  },
                  "httpRequestMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST",
                      "PUT",
                      "PATCH",
                      "DELETE"
                    ],
                    "default": "GET"
                  },
                  "httpRequestHeaders": {
                    "type": "string"
                  },
                  "httpRequestBody": {
                    "type": "string"
                  },
                  "httpRequestTimeout": {
                    "type": "number",
                    "default": 30
                  },
                  "httpRequestResponseVariable": {
                    "type": "string"
                  },
                  "httpRequestResponseJsonPath": {
                    "type": "string"
                  },
                  "httpRequestResponseExtractTo": {
                    "type": "string"
                  },
                  "httpRequestStatusVariable": {
                    "type": "string"
                  },
                  "botIdSource": {
                    "type": "string"
                  },
                  "botIdVariable": {
                    "type": "string"
                  },
                  "botIdManual": {
                    "type": "string"
                  },
                  "saveTokenTo": {
                    "type": "string"
                  },
                  "saveErrorTo": {
                    "type": "string"
                  },
                  "httpRequestQueryParams": {
                    "type": "string"
                  },
                  "httpRequestBodyFormat": {
                    "type": "string",
                    "enum": [
                      "json",
                      "form-urlencoded",
                      "raw"
                    ],
                    "default": "json"
                  },
                  "httpRequestAuthType": {
                    "type": "string",
                    "enum": [
                      "none",
                      "basic",
                      "bearer",
                      "header",
                      "query"
                    ],
                    "default": "none"
                  },
                  "httpRequestAuthBearerToken": {
                    "type": "string"
                  },
                  "httpRequestAuthBasicUsername": {
                    "type": "string"
                  },
                  "httpRequestAuthBasicPassword": {
                    "type": "string"
                  },
                  "httpRequestAuthHeaderName": {
                    "type": "string"
                  },
                  "httpRequestAuthHeaderValue": {
                    "type": "string"
                  },
                  "httpRequestAuthQueryName": {
                    "type": "string"
                  },
                  "httpRequestAuthQueryValue": {
                    "type": "string"
                  },
                  "httpRequestResponseFormat": {
                    "type": "string",
                    "enum": [
                      "autodetect",
                      "json",
                      "text",
                      "file"
                    ],
                    "default": "autodetect"
                  },
                  "httpRequestIgnoreHttpErrors": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestIgnoreSsl": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestFollowRedirects": {
                    "type": "boolean",
                    "default": true
                  },
                  "httpRequestEnablePagination": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestPaginationMode": {
                    "type": "string",
                    "enum": [
                      "interactive",
                      "fetch_all"
                    ],
                    "default": "interactive"
                  },
                  "httpRequestPaginationOffsetVar": {
                    "type": "string"
                  },
                  "httpRequestPaginationTotalField": {
                    "type": "string",
                    "default": "count"
                  },
                  "httpRequestPaginationItemsField": {
                    "type": "string",
                    "default": "items"
                  },
                  "httpRequestPaginationLimit": {
                    "type": "number",
                    "default": 10
                  },
                  "httpRequestPaginationMaxPages": {
                    "type": "number",
                    "default": 20
                  },
                  "httpRequestBatchEnabled": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestBatchSource": {
                    "type": "string"
                  },
                  "httpRequestBatchItemVar": {
                    "type": "string",
                    "default": "item"
                  },
                  "httpRequestBatchResultVariable": {
                    "type": "string"
                  },
                  "httpRequestBatchResultFields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "key",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "attachedMediaThumbnails": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "default": {}
                  },
                  "query": {
                    "type": "string",
                    "default": ""
                  },
                  "connectionSource": {
                    "type": "string",
                    "enum": [
                      "builtin",
                      "env",
                      "custom"
                    ]
                  },
                  "connectionEnvVar": {
                    "type": "string"
                  },
                  "connectionString": {
                    "type": "string"
                  },
                  "saveResultTo": {
                    "type": "string",
                    "default": ""
                  },
                  "resultFormat": {
                    "type": "string",
                    "enum": [
                      "json",
                      "text",
                      "first_row",
                      "affected",
                      "all_rows",
                      "scalar",
                      "count",
                      "random_row"
                    ],
                    "default": "first_row"
                  },
                  "textTemplate": {
                    "type": "string",
                    "default": ""
                  },
                  "assignments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "variable": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "text",
                            "expression",
                            "lookup",
                            "str_replace",
                            "json_push",
                            "json_format",
                            "random",
                            "random_item",
                            "array_item",
                            "timestamp",
                            "format_duration",
                            "format_number",
                            "regex_extract",
                            "extract_number",
                            "split_get",
                            "json_get",
                            "substring",
                            "conditional",
                            "lowercase",
                            "uppercase",
                            "trim",
                            "length",
                            "array_concat"
                          ],
                          "default": "text"
                        },
                        "lookupTable": {
                          "type": "string",
                          "default": ""
                        },
                        "lookupField": {
                          "type": "string",
                          "default": ""
                        },
                        "lookupWhere": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "field",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          "default": []
                        },
                        "replaceWith": {
                          "type": "string",
                          "default": ""
                        },
                        "pattern": {
                          "type": "string",
                          "default": ""
                        },
                        "regexGroup": {
                          "type": "string",
                          "default": "0"
                        },
                        "maxValue": {
                          "type": "string",
                          "default": ""
                        },
                        "separator": {
                          "type": "string",
                          "default": ""
                        },
                        "jsonPath": {
                          "type": "string",
                          "default": ""
                        },
                        "startIndex": {
                          "type": "string",
                          "default": "0"
                        },
                        "endIndex": {
                          "type": "string",
                          "default": ""
                        },
                        "conditionVariable": {
                          "type": "string",
                          "default": ""
                        },
                        "conditionOperator": {
                          "type": "string",
                          "default": "equals"
                        },
                        "conditionValue": {
                          "type": "string",
                          "default": ""
                        },
                        "trueValue": {
                          "type": "string",
                          "default": ""
                        },
                        "falseValue": {
                          "type": "string",
                          "default": ""
                        },
                        "concatWith": {
                          "type": "string",
                          "default": ""
                        },
                        "skipIfEmpty": {
                          "type": "string",
                          "default": ""
                        },
                        "persistToDb": {
                          "type": "boolean",
                          "default": true
                        }
                      },
                      "required": [
                        "id",
                        "variable",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "convertFileMode": {
                    "type": "string",
                    "enum": [
                      "toFile"
                    ],
                    "default": "toFile"
                  },
                  "convertFileInputVariable": {
                    "type": "string",
                    "default": ""
                  },
                  "convertFileFormat": {
                    "type": "string",
                    "enum": [
                      "csv",
                      "json"
                    ],
                    "default": "csv"
                  },
                  "convertFileFileName": {
                    "type": "string",
                    "default": "export_{date}.csv"
                  },
                  "convertFileCsvDelimiter": {
                    "type": "string",
                    "default": ","
                  },
                  "convertFileIncludeHeaderRow": {
                    "type": "boolean",
                    "default": true
                  },
                  "convertFileOutputVariable": {
                    "type": "string",
                    "default": ""
                  },
                  "code": {
                    "type": "string",
                    "default": ""
                  },
                  "apiMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST",
                      "PUT",
                      "PATCH",
                      "DELETE"
                    ],
                    "default": "POST"
                  },
                  "apiPath": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSecretToken": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSaveBodyTo": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSaveQueryTo": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSaveHeadersTo": {
                    "type": "string",
                    "default": ""
                  },
                  "apiParseJson": {
                    "type": "boolean",
                    "default": true
                  },
                  "apiResponseStatusCode": {
                    "type": "number",
                    "default": 200
                  },
                  "apiResponseBody": {
                    "type": "string",
                    "default": "{\"ok\":true}"
                  },
                  "apiResponseContentType": {
                    "type": "string",
                    "enum": [
                      "application/json",
                      "text/plain",
                      "text/html"
                    ],
                    "default": "application/json"
                  },
                  "apiResponseHeaders": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "key",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "invoiceTitle": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceDescription": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceAmount": {
                    "type": "string",
                    "default": "1"
                  },
                  "invoicePrices": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "amount": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "label",
                        "amount"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "invoiceCurrency": {
                    "type": "string",
                    "default": "XTR"
                  },
                  "invoiceProviderSource": {
                    "type": "string",
                    "default": "inline"
                  },
                  "invoiceProviderToken": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceProviderTokenEnv": {
                    "type": "string",
                    "default": "PAYMENT_PROVIDER_TOKEN"
                  },
                  "invoiceNeedName": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceNeedEmail": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceNeedPhone": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceNeedShipping": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceIsFlexible": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceSendPhoneToProvider": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceSendEmailToProvider": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceProtectContent": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceMaxTipAmount": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceSuggestedTipAmounts": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceProviderData": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceStartParameter": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceSubscription": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoicePhotoUrl": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePhotoSize": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePhotoWidth": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePhotoHeight": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceMessageThreadId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceDirectMessagesTopicId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceDisableNotification": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceReplyToMessageId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceMessageEffectId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceAllowPaidBroadcast": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceSuggestedPostParams": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePayload": {
                    "type": "string",
                    "default": ""
                  },
                  "savePaymentAmountTo": {
                    "type": "string",
                    "default": ""
                  },
                  "savePaymentChargeIdTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveOrderNameTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveOrderEmailTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveOrderPhoneTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveInvoiceLinkTo": {
                    "type": "string",
                    "default": ""
                  },
                  "afterPaymentTo": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutMode": {
                    "type": "string",
                    "default": "always"
                  },
                  "preCheckoutVariable": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutOperator": {
                    "type": "string",
                    "default": "filled"
                  },
                  "preCheckoutValue": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutValue2": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutErrorMessage": {
                    "type": "string",
                    "default": ""
                  },
                  "refundUserSource": {
                    "type": "string",
                    "default": "current_user"
                  },
                  "refundUserId": {
                    "type": "string",
                    "default": ""
                  },
                  "refundChargeId": {
                    "type": "string",
                    "default": ""
                  },
                  "refundMsgEmpty": {
                    "type": "string",
                    "default": "Пожалуйста, укажите код покупки: /back КОД"
                  },
                  "refundMsgNotFound": {
                    "type": "string",
                    "default": "Такой код покупки не найден. Проверьте данные и попробуйте снова."
                  },
                  "refundMsgAlreadyRefunded": {
                    "type": "string",
                    "default": "За эту покупку уже ранее был произведён возврат."
                  },
                  "refundEmptyTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "refundNotFoundTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "refundAlreadyRefundedTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionUserSource": {
                    "type": "string",
                    "default": "current_user"
                  },
                  "subscriptionUserId": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionChargeId": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionAction": {
                    "type": "string",
                    "default": "cancel"
                  },
                  "subscriptionMsgEmpty": {
                    "type": "string",
                    "default": "Укажите код покупки подписки"
                  },
                  "subscriptionMsgError": {
                    "type": "string",
                    "default": "Не удалось изменить автопродление. Проверьте код покупки."
                  },
                  "subscriptionEmptyTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionErrorTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "saveStarBalanceTo": {
                    "type": "string",
                    "default": "star_balance"
                  },
                  "balanceMsgError": {
                    "type": "string",
                    "default": "Не удалось получить баланс звёзд"
                  },
                  "balanceErrorTarget": {
                    "type": "string",
                    "default": ""
                  }
                },
                "additionalProperties": true
              }
            },
            "required": [
              "id",
              "type",
              "position",
              "data"
            ],
            "additionalProperties": true,
            "description": "Узел по общей схеме проекта"
          },
          "sheet_id": {
            "type": "string"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          }
        },
        "required": [
          "project_id",
          "node"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_add_sheet",
      "section": "sheets",
      "description": "Добавить лист в проект в БД живого приложения (live). Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "name": {
            "type": "string",
            "description": "Имя листа (опционально; иначе \"Лист N\")"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "sheets",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "sheets",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_add_table_column",
      "section": "tables",
      "description": "Добавить столбец.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "Один UUID на попытку. С ним результат — квитанция ID, данные перечитайте отдельно. Повторите тот же UUID при потере ответа; unknown нельзя выполнять заново автоматически."
          }
        },
        "required": [
          "project_id",
          "table_id",
          "name"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "name": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_add_table_rows",
      "section": "tables",
      "description": "Добавить до 200 строк. Ключи data — id столбцов. Чужой ключ отклоняется до записи.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "row_index": {
                  "type": "integer"
                },
                "data": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "Ключ — числовой id столбца строкой, значение — текст, пустая строка допустима"
                }
              },
              "required": [
                "data"
              ],
              "additionalProperties": false
            },
            "maxItems": 200
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "Один UUID на попытку. С ним результат — квитанция ID, данные перечитайте отдельно. Повторите тот же UUID при потере ответа; unknown нельзя выполнять заново автоматически."
          }
        },
        "required": [
          "project_id",
          "table_id",
          "rows"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "rows": []
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_apply_ops",
      "section": "scenario",
      "description": "Пакет операций: чтение проекта с ревизией, изменения в памяти и одна защищённая запись. Это не транзакция всего GET→PUT. Ошибка операции не записывает пакет, конфликт ревизии требует перечитать проект. Версия и live-рассылка имеют отдельные статусы.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "ops": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "add_node"
                    },
                    "node": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "start",
                            "message",
                            "command",
                            "command_trigger",
                            "text_trigger",
                            "incoming_message_trigger",
                            "incoming_callback_trigger",
                            "outgoing_message_trigger",
                            "group_message_trigger",
                            "member_trigger",
                            "callback_trigger",
                            "managed_bot_updated_trigger",
                            "schedule_trigger",
                            "api_trigger",
                            "sticker",
                            "voice",
                            "animation",
                            "location",
                            "contact",
                            "pin_message",
                            "unpin_message",
                            "delete_message",
                            "forward_message",
                            "ban_user",
                            "unban_user",
                            "mute_user",
                            "unmute_user",
                            "kick_user",
                            "promote_user",
                            "demote_user",
                            "admin_rights",
                            "photo",
                            "video",
                            "audio",
                            "document",
                            "keyboard",
                            "input",
                            "condition",
                            "broadcast",
                            "client_auth",
                            "media",
                            "create_forum_topic",
                            "http_request",
                            "get_managed_bot_token",
                            "answer_callback_query",
                            "edit_message",
                            "set_variable",
                            "psql_query",
                            "convert_file",
                            "loop",
                            "bot_table",
                            "delay",
                            "api_response",
                            "userbot_message",
                            "userbot_click_button",
                            "userbot_inline_query",
                            "userbot_edit_trigger",
                            "parallel_split",
                            "stop_processing",
                            "rate_counter",
                            "code",
                            "comment",
                            "send_invoice",
                            "create_invoice_link",
                            "refund_stars",
                            "edit_star_subscription",
                            "get_star_balance",
                            "successful_payment_trigger"
                          ]
                        },
                        "position": {
                          "type": "object",
                          "properties": {
                            "x": {
                              "type": "number"
                            },
                            "y": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "x",
                            "y"
                          ],
                          "additionalProperties": false
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "userbotEntity": {
                              "type": "string"
                            },
                            "userbotEntitySource": {
                              "type": "string"
                            },
                            "userbotEntityVariable": {
                              "type": "string"
                            },
                            "userbotRecipients": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "messageId": {
                              "type": "string"
                            },
                            "clickMode": {
                              "type": "string",
                              "enum": [
                                "text",
                                "data",
                                "index"
                              ]
                            },
                            "clickDelivery": {
                              "type": "string",
                              "enum": [
                                "fire_and_forget",
                                "await"
                              ]
                            },
                            "clickValue": {
                              "type": "string"
                            },
                            "responseStrategy": {
                              "type": "string",
                              "enum": [
                                "first",
                                "longest",
                                "regex_match",
                                "last",
                                "edit",
                                "new_message"
                              ]
                            },
                            "responseWaitSeconds": {
                              "type": "number"
                            },
                            "responseFilterRegex": {
                              "type": "string"
                            },
                            "responseFloorMessageIdVar": {
                              "type": "string"
                            },
                            "saveAlertTo": {
                              "type": "string"
                            },
                            "saveButtonsTo": {
                              "type": "string"
                            },
                            "saveHasMediaTo": {
                              "type": "string"
                            },
                            "saveMediaTo": {
                              "type": "string"
                            },
                            "saveResponseIdTo": {
                              "type": "string"
                            },
                            "saveResponseTextTo": {
                              "type": "string"
                            },
                            "botUsername": {
                              "type": "string"
                            },
                            "targetChat": {
                              "type": "string"
                            },
                            "sendToSameChat": {
                              "type": "boolean"
                            },
                            "resultIndex": {
                              "type": "string"
                            },
                            "saveResultTitleTo": {
                              "type": "string"
                            },
                            "saveResultDescTo": {
                              "type": "string"
                            },
                            "filterType": {
                              "type": "string",
                              "enum": [
                                "any",
                                "contains",
                                "regex"
                              ]
                            },
                            "filterValue": {
                              "type": "string"
                            },
                            "saveTextTo": {
                              "type": "string"
                            },
                            "saveChatIdTo": {
                              "type": "string"
                            },
                            "saveSenderIdTo": {
                              "type": "string"
                            },
                            "command": {
                              "type": "string"
                            },
                            "deepLinkParam": {
                              "type": "string"
                            },
                            "deepLinkMatchMode": {
                              "type": "string",
                              "enum": [
                                "exact",
                                "startsWith"
                              ]
                            },
                            "deepLinkSaveToVar": {
                              "type": "boolean"
                            },
                            "deepLinkVarName": {
                              "type": "string"
                            },
                            "commentColor": {
                              "type": "string",
                              "enum": [
                                "yellow",
                                "blue",
                                "green",
                                "pink",
                                "gray"
                              ]
                            },
                            "rules": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "mode": {
                                    "type": "string",
                                    "enum": [
                                      "interval",
                                      "weekday",
                                      "monthday",
                                      "cron"
                                    ]
                                  },
                                  "intervalMinutes": {
                                    "type": "number"
                                  },
                                  "days": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "hour": {
                                    "type": "number"
                                  },
                                  "minute": {
                                    "type": "number"
                                  },
                                  "monthDays": {
                                    "type": "array",
                                    "items": {
                                      "type": "number"
                                    }
                                  },
                                  "cronExpression": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "mode"
                                ],
                                "additionalProperties": true
                              }
                            },
                            "timezone": {
                              "type": "string"
                            },
                            "runOnStart": {
                              "type": "boolean"
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "description": {
                              "type": "string"
                            },
                            "messageText": {
                              "type": "string"
                            },
                            "imageUrl": {
                              "type": "string"
                            },
                            "videoUrl": {
                              "type": "string"
                            },
                            "audioUrl": {
                              "type": "string"
                            },
                            "documentUrl": {
                              "type": "string"
                            },
                            "documentName": {
                              "type": "string"
                            },
                            "mediaCaption": {
                              "type": "string"
                            },
                            "keyboardType": {
                              "type": "string",
                              "enum": [
                                "reply",
                                "inline",
                                "none"
                              ],
                              "default": "none"
                            },
                            "keyboardNodeId": {
                              "type": "string"
                            },
                            "seconds": {
                              "type": "string"
                            },
                            "unit": {
                              "type": "string",
                              "enum": [
                                "seconds",
                                "minutes",
                                "hours",
                                "days",
                                "weeks"
                              ]
                            },
                            "mode": {
                              "type": "string",
                              "enum": [
                                "blocking",
                                "background"
                              ]
                            },
                            "buttons": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "text": {
                                    "type": "string"
                                  },
                                  "action": {
                                    "type": "string",
                                    "enum": [
                                      "goto",
                                      "command",
                                      "url",
                                      "contact",
                                      "location",
                                      "selection",
                                      "complete",
                                      "default",
                                      "copy_text",
                                      "web_app",
                                      "request_managed_bot",
                                      "pay"
                                    ],
                                    "default": "goto"
                                  },
                                  "copyText": {
                                    "type": "string"
                                  },
                                  "webAppUrl": {
                                    "type": "string"
                                  },
                                  "target": {
                                    "type": "string"
                                  },
                                  "url": {
                                    "type": "string"
                                  },
                                  "requestContact": {
                                    "type": "boolean"
                                  },
                                  "requestLocation": {
                                    "type": "boolean"
                                  },
                                  "buttonType": {
                                    "type": "string",
                                    "enum": [
                                      "normal",
                                      "option",
                                      "complete"
                                    ],
                                    "default": "normal"
                                  },
                                  "skipDataCollection": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "hideAfterClick": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "customCallbackData": {
                                    "type": "string"
                                  },
                                  "style": {
                                    "type": "string",
                                    "enum": [
                                      "primary",
                                      "success",
                                      "danger"
                                    ]
                                  },
                                  "suggestedBotName": {
                                    "type": "string"
                                  },
                                  "suggestedBotUsername": {
                                    "type": "string"
                                  },
                                  "selectionGroup": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "text"
                                ],
                                "additionalProperties": false
                              },
                              "default": []
                            },
                            "shuffleButtons": {
                              "type": "boolean",
                              "default": false
                            },
                            "enableDynamicButtons": {
                              "type": "boolean",
                              "default": false
                            },
                            "dynamicButtons": {
                              "type": "object",
                              "properties": {
                                "sourceVariable": {
                                  "type": "string",
                                  "default": ""
                                },
                                "arrayPath": {
                                  "type": "string",
                                  "default": ""
                                },
                                "textTemplate": {
                                  "type": "string",
                                  "default": ""
                                },
                                "callbackTemplate": {
                                  "type": "string",
                                  "default": ""
                                },
                                "styleMode": {
                                  "type": "string",
                                  "enum": [
                                    "field",
                                    "template",
                                    "none"
                                  ],
                                  "default": "none"
                                },
                                "styleField": {
                                  "type": "string",
                                  "default": ""
                                },
                                "styleTemplate": {
                                  "type": "string",
                                  "default": ""
                                },
                                "columns": {
                                  "type": "number",
                                  "minimum": 1,
                                  "maximum": 6,
                                  "default": 2
                                }
                              },
                              "additionalProperties": true
                            },
                            "keyboardLayout": {
                              "type": "object",
                              "properties": {
                                "rows": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "buttonIds": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "required": [
                                      "buttonIds"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "default": []
                                },
                                "columns": {
                                  "type": "number",
                                  "minimum": 1,
                                  "maximum": 6,
                                  "default": 2
                                },
                                "autoLayout": {
                                  "type": "boolean",
                                  "default": true
                                }
                              },
                              "additionalProperties": false
                            },
                            "oneTimeKeyboard": {
                              "type": "boolean",
                              "default": false
                            },
                            "resizeKeyboard": {
                              "type": "boolean",
                              "default": true
                            },
                            "markdown": {
                              "type": "boolean",
                              "default": false
                            },
                            "formatMode": {
                              "type": "string",
                              "enum": [
                                "html",
                                "markdown",
                                "none"
                              ],
                              "default": "none"
                            },
                            "disableLinkPreview": {
                              "type": "boolean",
                              "default": false
                            },
                            "synonyms": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "default": []
                            },
                            "matchMode": {
                              "type": "string",
                              "enum": [
                                "exact",
                                "contains",
                                "fuzzy"
                              ],
                              "default": "exact"
                            },
                            "adminOnly": {
                              "type": "boolean",
                              "default": false
                            },
                            "requiresAuth": {
                              "type": "boolean",
                              "default": false
                            },
                            "showInMenu": {
                              "type": "boolean",
                              "default": true
                            },
                            "saveCommandArgsTo": {
                              "type": "string",
                              "default": ""
                            },
                            "commandTimeout": {
                              "type": "number"
                            },
                            "cooldownTime": {
                              "type": "number"
                            },
                            "maxUsagesPerDay": {
                              "type": "number"
                            },
                            "customParameters": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "default": []
                            },
                            "targetMessageId": {
                              "type": "string"
                            },
                            "sourceMessageId": {
                              "type": "string"
                            },
                            "messageIdSource": {
                              "type": "string",
                              "enum": [
                                "manual",
                                "variable",
                                "last_message",
                                "current_message",
                                "last_bot_message",
                                "reply_message",
                                "range_from_reply",
                                "last_n",
                                "custom",
                                "last"
                              ],
                              "default": "last_message"
                            },
                            "messageIdManual": {
                              "type": "string"
                            },
                            "lastNCount": {
                              "type": "string"
                            },
                            "chatIdSource": {
                              "type": "string",
                              "enum": [
                                "current_chat",
                                "custom"
                              ],
                              "default": "current_chat"
                            },
                            "chatIdManual": {
                              "type": "string"
                            },
                            "ignoreErrors": {
                              "type": "boolean"
                            },
                            "bulkDelete": {
                              "type": "boolean",
                              "default": false
                            },
                            "bulkMessageIdsVariable": {
                              "type": "string"
                            },
                            "sourceMessageIdSource": {
                              "type": "string",
                              "enum": [
                                "current_message",
                                "last_message",
                                "manual",
                                "variable"
                              ],
                              "default": "current_message"
                            },
                            "sourceMessageNodeId": {
                              "type": "string"
                            },
                            "sourceMessageVariableName": {
                              "type": "string"
                            },
                            "variableName": {
                              "type": "string"
                            },
                            "disableNotification": {
                              "type": "boolean",
                              "default": false
                            },
                            "hideAuthor": {
                              "type": "boolean",
                              "default": false
                            },
                            "targetChatId": {
                              "type": "string"
                            },
                            "targetChatIdSource": {
                              "type": "string",
                              "enum": [
                                "manual",
                                "variable",
                                "admin_ids"
                              ],
                              "default": "manual"
                            },
                            "targetChatVariableName": {
                              "type": "string"
                            },
                            "targetChatTargets": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "targetChatIdSource": {
                                    "type": "string",
                                    "enum": [
                                      "manual",
                                      "variable",
                                      "admin_ids"
                                    ],
                                    "default": "manual"
                                  },
                                  "targetChatId": {
                                    "type": "string"
                                  },
                                  "targetChatVariableName": {
                                    "type": "string"
                                  },
                                  "targetChatType": {
                                    "type": "string",
                                    "enum": [
                                      "user",
                                      "group"
                                    ]
                                  },
                                  "targetThreadId": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id"
                                ],
                                "additionalProperties": false
                              },
                              "default": []
                            },
                            "targetThreadId": {
                              "type": "string"
                            },
                            "targetThreadIdSource": {
                              "type": "string",
                              "enum": [
                                "manual",
                                "variable"
                              ]
                            },
                            "targetThreadIdVariable": {
                              "type": "string"
                            },
                            "targetUserId": {
                              "type": "string"
                            },
                            "userIdSource": {
                              "type": "string",
                              "enum": [
                                "manual",
                                "variable",
                                "last_message",
                                "current_user",
                                "reply_user",
                                "custom"
                              ],
                              "default": "last_message"
                            },
                            "userIdManual": {
                              "type": "string"
                            },
                            "userVariableName": {
                              "type": "string"
                            },
                            "targetGroupId": {
                              "type": "string"
                            },
                            "stickerUrl": {
                              "type": "string"
                            },
                            "stickerFileId": {
                              "type": "string"
                            },
                            "voiceUrl": {
                              "type": "string"
                            },
                            "animationUrl": {
                              "type": "string"
                            },
                            "latitude": {
                              "type": "number"
                            },
                            "longitude": {
                              "type": "number"
                            },
                            "title": {
                              "type": "string"
                            },
                            "address": {
                              "type": "string"
                            },
                            "foursquareId": {
                              "type": "string"
                            },
                            "foursquareType": {
                              "type": "string"
                            },
                            "mapService": {
                              "type": "string",
                              "enum": [
                                "yandex",
                                "google",
                                "2gis",
                                "custom"
                              ],
                              "default": "custom"
                            },
                            "yandexMapUrl": {
                              "type": "string"
                            },
                            "googleMapUrl": {
                              "type": "string"
                            },
                            "gisMapUrl": {
                              "type": "string"
                            },
                            "mapZoom": {
                              "type": "number",
                              "minimum": 1,
                              "maximum": 20,
                              "default": 15
                            },
                            "showDirections": {
                              "type": "boolean",
                              "default": false
                            },
                            "generateMapPreview": {
                              "type": "boolean",
                              "default": true
                            },
                            "phoneNumber": {
                              "type": "string"
                            },
                            "firstName": {
                              "type": "string"
                            },
                            "lastName": {
                              "type": "string"
                            },
                            "userId": {
                              "type": "number"
                            },
                            "vcard": {
                              "type": "string"
                            },
                            "question": {
                              "type": "string"
                            },
                            "options": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "default": []
                            },
                            "allowsMultipleAnswers": {
                              "type": "boolean",
                              "default": false
                            },
                            "anonymousVoting": {
                              "type": "boolean",
                              "default": true
                            },
                            "emoji": {
                              "type": "string"
                            },
                            "mediaDuration": {
                              "type": "number"
                            },
                            "width": {
                              "type": "number"
                            },
                            "height": {
                              "type": "number"
                            },
                            "performer": {
                              "type": "string"
                            },
                            "fileSize": {
                              "type": "number"
                            },
                            "filename": {
                              "type": "string"
                            },
                            "inputType": {
                              "type": "string",
                              "enum": [
                                "text",
                                "number",
                                "email",
                                "phone",
                                "photo",
                                "video",
                                "audio",
                                "document",
                                "location",
                                "contact",
                                "any"
                              ],
                              "default": "text"
                            },
                            "responseType": {
                              "type": "string",
                              "enum": [
                                "text",
                                "buttons"
                              ],
                              "default": "text"
                            },
                            "responseOptions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "text": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  },
                                  "action": {
                                    "type": "string",
                                    "enum": [
                                      "goto",
                                      "command",
                                      "url"
                                    ],
                                    "default": "goto"
                                  },
                                  "target": {
                                    "type": "string"
                                  },
                                  "url": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "text"
                                ],
                                "additionalProperties": false
                              },
                              "default": []
                            },
                            "allowMultipleSelection": {
                              "type": "boolean",
                              "default": false
                            },
                            "multiSelectVariable": {
                              "type": "string"
                            },
                            "continueButtonText": {
                              "type": "string"
                            },
                            "continueButtonTarget": {
                              "type": "string"
                            },
                            "inputVariable": {
                              "type": "string"
                            },
                            "inputPrompt": {
                              "type": "string"
                            },
                            "inputValidation": {
                              "type": "string"
                            },
                            "inputRequired": {
                              "type": "boolean",
                              "default": true
                            },
                            "inputTimeout": {
                              "type": "number"
                            },
                            "inputTimeoutMessage": {
                              "type": "string"
                            },
                            "inputRetryMessage": {
                              "type": "string"
                            },
                            "inputSuccessMessage": {
                              "type": "string"
                            },
                            "enableConditionalMessages": {
                              "type": "boolean",
                              "default": false
                            },
                            "conditionalMessages": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "condition": {
                                    "type": "string",
                                    "enum": [
                                      "user_data_exists",
                                      "user_data_equals",
                                      "user_data_not_exists",
                                      "user_data_contains",
                                      "first_time",
                                      "returning_user"
                                    ],
                                    "default": "user_data_exists"
                                  },
                                  "variableName": {
                                    "type": "string"
                                  },
                                  "variableNames": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "default": []
                                  },
                                  "logicOperator": {
                                    "type": "string",
                                    "enum": [
                                      "AND",
                                      "OR"
                                    ],
                                    "default": "AND"
                                  },
                                  "expectedValue": {
                                    "type": "string"
                                  },
                                  "messageText": {
                                    "type": "string"
                                  },
                                  "formatMode": {
                                    "type": "string",
                                    "enum": [
                                      "text",
                                      "markdown",
                                      "html"
                                    ],
                                    "default": "text"
                                  },
                                  "keyboardType": {
                                    "type": "string",
                                    "enum": [
                                      "reply",
                                      "inline",
                                      "none"
                                    ],
                                    "default": "none"
                                  },
                                  "buttons": {
                                    "type": "array",
                                    "items": {
                                      "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/buttons/items"
                                    },
                                    "default": []
                                  },
                                  "resizeKeyboard": {
                                    "type": "boolean",
                                    "default": true
                                  },
                                  "oneTimeKeyboard": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "collectUserInput": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "enableTextInput": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "enablePhotoInput": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "enableVideoInput": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "enableAudioInput": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "enableDocumentInput": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "inputVariable": {
                                    "type": "string"
                                  },
                                  "photoInputVariable": {
                                    "type": "string"
                                  },
                                  "videoInputVariable": {
                                    "type": "string"
                                  },
                                  "audioInputVariable": {
                                    "type": "string"
                                  },
                                  "documentInputVariable": {
                                    "type": "string"
                                  },
                                  "waitForTextInput": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "textInputVariable": {
                                    "type": "string"
                                  },
                                  "nextNodeAfterInput": {
                                    "type": "string"
                                  },
                                  "priority": {
                                    "type": "number",
                                    "default": 0
                                  }
                                },
                                "required": [
                                  "id",
                                  "messageText"
                                ],
                                "additionalProperties": false
                              },
                              "default": []
                            },
                            "fallbackMessage": {
                              "type": "string"
                            },
                            "saveToDatabase": {
                              "type": "boolean",
                              "default": false
                            },
                            "allowSkip": {
                              "type": "boolean",
                              "default": false
                            },
                            "collectUserInput": {
                              "type": "boolean",
                              "default": false
                            },
                            "inputTargetNodeId": {
                              "type": "string"
                            },
                            "inputButtonType": {
                              "type": "string",
                              "enum": [
                                "inline",
                                "reply"
                              ],
                              "default": "inline"
                            },
                            "enableAutoTransition": {
                              "type": "boolean",
                              "default": false
                            },
                            "autoTransitionTo": {
                              "type": "string"
                            },
                            "sourceNodeId": {
                              "type": "string"
                            },
                            "minLength": {
                              "type": "number"
                            },
                            "maxLength": {
                              "type": "number"
                            },
                            "placeholder": {
                              "type": "string"
                            },
                            "defaultValue": {
                              "type": "string"
                            },
                            "appendVariable": {
                              "type": "boolean",
                              "default": false
                            },
                            "saveMediaMetadata": {
                              "type": "boolean",
                              "default": false
                            },
                            "mediaMetadataSuffixes": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "default": []
                            },
                            "mediaMetadataCustomNames": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string"
                              },
                              "default": {}
                            },
                            "variableFilters": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string"
                              },
                              "default": {}
                            },
                            "enableUserActions": {
                              "type": "boolean",
                              "default": false
                            },
                            "actionTrigger": {
                              "type": "string",
                              "enum": [
                                "join",
                                "leave",
                                "message",
                                "button_click",
                                "custom"
                              ]
                            },
                            "triggerText": {
                              "type": "string"
                            },
                            "userActionType": {
                              "type": "string",
                              "enum": [
                                "message",
                                "command",
                                "button",
                                "media"
                              ]
                            },
                            "actionTag": {
                              "type": "string"
                            },
                            "actionMessage": {
                              "type": "string"
                            },
                            "silentAction": {
                              "type": "boolean",
                              "default": false
                            },
                            "mimeType": {
                              "type": "string"
                            },
                            "stickerSetName": {
                              "type": "string"
                            },
                            "fileName": {
                              "type": "string"
                            },
                            "city": {
                              "type": "string"
                            },
                            "country": {
                              "type": "string"
                            },
                            "enableTextInput": {
                              "type": "boolean"
                            },
                            "enablePhotoInput": {
                              "type": "boolean"
                            },
                            "enableVideoInput": {
                              "type": "boolean"
                            },
                            "enableAudioInput": {
                              "type": "boolean"
                            },
                            "enableDocumentInput": {
                              "type": "boolean"
                            },
                            "photoInputVariable": {
                              "type": "string"
                            },
                            "videoInputVariable": {
                              "type": "string"
                            },
                            "audioInputVariable": {
                              "type": "string"
                            },
                            "documentInputVariable": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "label": {
                              "type": "string"
                            },
                            "checkmarkSymbol": {
                              "type": "string"
                            },
                            "multiSelectCheckmark": {
                              "type": "string"
                            },
                            "radioSelectedSymbol": {
                              "type": "string"
                            },
                            "radioUnselectedSymbol": {
                              "type": "string"
                            },
                            "duration": {
                              "type": "number"
                            },
                            "muteDuration": {
                              "type": "number"
                            },
                            "reason": {
                              "type": "string"
                            },
                            "canChangeInfo": {
                              "type": "boolean",
                              "default": false
                            },
                            "canDeleteMessages": {
                              "type": "boolean",
                              "default": false
                            },
                            "canBanUsers": {
                              "type": "boolean",
                              "default": false
                            },
                            "canInviteUsers": {
                              "type": "boolean",
                              "default": false
                            },
                            "canPinMessages": {
                              "type": "boolean",
                              "default": false
                            },
                            "canAddAdmins": {
                              "type": "boolean",
                              "default": false
                            },
                            "canRestrictMembers": {
                              "type": "boolean",
                              "default": false
                            },
                            "canPromoteMembers": {
                              "type": "boolean",
                              "default": false
                            },
                            "canManageVideoChats": {
                              "type": "boolean",
                              "default": false
                            },
                            "canManageTopics": {
                              "type": "boolean",
                              "default": false
                            },
                            "isAnonymous": {
                              "type": "boolean",
                              "default": false
                            },
                            "canManageChat": {
                              "type": "boolean"
                            },
                            "canPostMessages": {
                              "type": "boolean"
                            },
                            "canEditMessages": {
                              "type": "boolean"
                            },
                            "canManageDirectMessages": {
                              "type": "boolean"
                            },
                            "canManageTags": {
                              "type": "boolean"
                            },
                            "canSendWelcomeMessages": {
                              "type": "boolean"
                            },
                            "canSendMessages": {
                              "type": "boolean",
                              "default": true
                            },
                            "canSendAudios": {
                              "type": "boolean"
                            },
                            "canSendDocuments": {
                              "type": "boolean"
                            },
                            "canSendPhotos": {
                              "type": "boolean"
                            },
                            "canSendVideos": {
                              "type": "boolean"
                            },
                            "canSendVideoNotes": {
                              "type": "boolean"
                            },
                            "canSendVoiceNotes": {
                              "type": "boolean"
                            },
                            "canReactToMessages": {
                              "type": "boolean"
                            },
                            "canSendPolls": {
                              "type": "boolean",
                              "default": true
                            },
                            "canSendOtherMessages": {
                              "type": "boolean",
                              "default": true
                            },
                            "canAddWebPagePreviews": {
                              "type": "boolean",
                              "default": true
                            },
                            "canChangeGroupInfo": {
                              "type": "boolean",
                              "default": true
                            },
                            "canInviteUsers2": {
                              "type": "boolean",
                              "default": true
                            },
                            "canPinMessages2": {
                              "type": "boolean",
                              "default": true
                            },
                            "untilDate": {
                              "type": "number"
                            },
                            "adminTargetUserId": {
                              "type": "string"
                            },
                            "adminUserIdSource": {
                              "type": "string",
                              "enum": [
                                "manual",
                                "variable",
                                "last_message"
                              ],
                              "default": "last_message"
                            },
                            "adminUserVariableName": {
                              "type": "string"
                            },
                            "can_manage_chat": {
                              "type": "boolean",
                              "default": false
                            },
                            "can_post_messages": {
                              "type": "boolean",
                              "default": false
                            },
                            "can_edit_messages": {
                              "type": "boolean",
                              "default": false
                            },
                            "can_delete_messages": {
                              "type": "boolean",
                              "default": false
                            },
                            "can_post_stories": {
                              "type": "boolean",
                              "default": false
                            },
                            "can_edit_stories": {
                              "type": "boolean",
                              "default": false
                            },
                            "can_delete_stories": {
                              "type": "boolean",
                              "default": false
                            },
                            "can_manage_video_chats": {
                              "type": "boolean",
                              "default": false
                            },
                            "can_restrict_members": {
                              "type": "boolean",
                              "default": false
                            },
                            "can_promote_members": {
                              "type": "boolean",
                              "default": false
                            },
                            "can_change_info": {
                              "type": "boolean",
                              "default": false
                            },
                            "can_invite_users": {
                              "type": "boolean",
                              "default": false
                            },
                            "can_pin_messages": {
                              "type": "boolean",
                              "default": false
                            },
                            "can_manage_topics": {
                              "type": "boolean",
                              "default": false
                            },
                            "is_anonymous": {
                              "type": "boolean",
                              "default": false
                            },
                            "can_manage_direct_messages": {
                              "type": "boolean"
                            },
                            "can_manage_tags": {
                              "type": "boolean"
                            },
                            "can_send_welcome_messages": {
                              "type": "boolean"
                            },
                            "adminChatId": {
                              "type": "string"
                            },
                            "adminChatIdSource": {
                              "type": "string",
                              "enum": [
                                "manual",
                                "variable",
                                "current_chat"
                              ],
                              "default": "current_chat"
                            },
                            "adminChatVariableName": {
                              "type": "string"
                            },
                            "attachedMedia": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "default": []
                            },
                            "sendAsGifUrls": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "text": {
                              "type": "string"
                            },
                            "action": {
                              "type": "string"
                            },
                            "waitForTextInput": {
                              "type": "boolean"
                            },
                            "broadcastApiType": {
                              "type": "string",
                              "enum": [
                                "bot",
                                "client"
                              ],
                              "default": "bot"
                            },
                            "broadcastTargetNode": {
                              "type": "string"
                            },
                            "enableBroadcast": {
                              "type": "boolean",
                              "default": false
                            },
                            "enableConfirmation": {
                              "type": "boolean",
                              "default": false
                            },
                            "confirmationText": {
                              "type": "string"
                            },
                            "successMessage": {
                              "type": "string"
                            },
                            "errorMessage": {
                              "type": "string"
                            },
                            "sessionName": {
                              "type": "string",
                              "default": "user_session"
                            },
                            "sessionCreated": {
                              "type": "boolean",
                              "default": false
                            },
                            "textSynonyms": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "default": []
                            },
                            "textMatchType": {
                              "type": "string",
                              "enum": [
                                "exact",
                                "contains"
                              ],
                              "default": "exact"
                            },
                            "variable": {
                              "type": "string"
                            },
                            "forumChatId": {
                              "type": "string"
                            },
                            "forumChatIdSource": {
                              "type": "string",
                              "enum": [
                                "manual",
                                "variable"
                              ],
                              "default": "manual"
                            },
                            "forumChatVariableName": {
                              "type": "string"
                            },
                            "topicName": {
                              "type": "string"
                            },
                            "topicIconColor": {
                              "type": "string"
                            },
                            "saveThreadIdTo": {
                              "type": "string"
                            },
                            "saveMessageIdTo": {
                              "type": "string"
                            },
                            "saveBotIdTo": {
                              "type": "string"
                            },
                            "saveBotUsernameTo": {
                              "type": "string"
                            },
                            "saveBotNameTo": {
                              "type": "string"
                            },
                            "saveCreatorIdTo": {
                              "type": "string"
                            },
                            "saveCreatorUsernameTo": {
                              "type": "string"
                            },
                            "filterByUserId": {
                              "type": "string"
                            },
                            "skipIfExists": {
                              "type": "boolean",
                              "default": false
                            },
                            "imtChatTypeFilter": {
                              "type": "string",
                              "enum": [
                                "any",
                                "private",
                                "group"
                              ],
                              "default": "any"
                            },
                            "imtGroupChatId": {
                              "type": "string"
                            },
                            "imtGroupChatIdSource": {
                              "type": "string",
                              "enum": [
                                "manual",
                                "variable"
                              ]
                            },
                            "imtStopOnFlag": {
                              "type": "boolean",
                              "default": true
                            },
                            "groupChatId": {
                              "type": "string"
                            },
                            "groupChatIdSource": {
                              "type": "string",
                              "enum": [
                                "manual",
                                "variable"
                              ]
                            },
                            "groupChatVariableName": {
                              "type": "string"
                            },
                            "threadIdVariable": {
                              "type": "string"
                            },
                            "resolvedUserIdVariable": {
                              "type": "string"
                            },
                            "memberEventType": {
                              "type": "string",
                              "enum": [
                                "join",
                                "leave",
                                "both"
                              ],
                              "default": "join"
                            },
                            "saveJoinedUserIdTo": {
                              "type": "string"
                            },
                            "saveJoinedUsernameTo": {
                              "type": "string"
                            },
                            "saveLeftUserIdTo": {
                              "type": "string"
                            },
                            "saveLeftUsernameTo": {
                              "type": "string"
                            },
                            "branches": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "label": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "operator": {
                                    "type": "string",
                                    "enum": [
                                      "filled",
                                      "empty",
                                      "equals",
                                      "not_equals",
                                      "contains",
                                      "not_contains",
                                      "starts_with",
                                      "ends_with",
                                      "matches_regex",
                                      "greater_than",
                                      "less_than",
                                      "between",
                                      "is_even",
                                      "is_odd",
                                      "divisible_by",
                                      "else",
                                      "is_private",
                                      "is_group",
                                      "is_channel",
                                      "is_admin",
                                      "is_premium",
                                      "is_bot",
                                      "is_subscribed",
                                      "is_not_subscribed"
                                    ]
                                  },
                                  "value": {
                                    "type": "string"
                                  },
                                  "value2": {
                                    "type": "string"
                                  },
                                  "valueRegex": {
                                    "type": "string"
                                  },
                                  "target": {
                                    "type": "string"
                                  },
                                  "subscriptionMode": {
                                    "type": "string",
                                    "enum": [
                                      "all",
                                      "any"
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "operator",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "default": []
                            },
                            "parallelBranches": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "label": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "target": {
                                    "type": "string"
                                  },
                                  "onErrorTarget": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id"
                                ],
                                "additionalProperties": false
                              },
                              "default": []
                            },
                            "maxConcurrent": {
                              "type": "number",
                              "default": 5
                            },
                            "awaitAll": {
                              "type": "boolean",
                              "default": false
                            },
                            "skipIfRunning": {
                              "type": "boolean",
                              "default": true
                            },
                            "counterKey": {
                              "type": "string"
                            },
                            "windowSeconds": {
                              "type": "string"
                            },
                            "messageSendRecipients": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "user",
                                      "chat_id",
                                      "admin_ids"
                                    ],
                                    "default": "user"
                                  },
                                  "chatId": {
                                    "type": "string"
                                  },
                                  "threadId": {
                                    "type": "string"
                                  },
                                  "isGroup": {
                                    "type": "boolean",
                                    "default": false
                                  },
                                  "botToken": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id"
                                ],
                                "additionalProperties": false
                              },
                              "default": []
                            },
                            "messageSendTarget": {
                              "type": "string"
                            },
                            "messageSendChatId": {
                              "type": "string"
                            },
                            "messageSendThreadId": {
                              "type": "string"
                            },
                            "httpRequestUrl": {
                              "type": "string"
                            },
                            "httpRequestMethod": {
                              "type": "string",
                              "enum": [
                                "GET",
                                "POST",
                                "PUT",
                                "PATCH",
                                "DELETE"
                              ],
                              "default": "GET"
                            },
                            "httpRequestHeaders": {
                              "type": "string"
                            },
                            "httpRequestBody": {
                              "type": "string"
                            },
                            "httpRequestTimeout": {
                              "type": "number",
                              "default": 30
                            },
                            "httpRequestResponseVariable": {
                              "type": "string"
                            },
                            "httpRequestResponseJsonPath": {
                              "type": "string"
                            },
                            "httpRequestResponseExtractTo": {
                              "type": "string"
                            },
                            "httpRequestStatusVariable": {
                              "type": "string"
                            },
                            "botIdSource": {
                              "type": "string"
                            },
                            "botIdVariable": {
                              "type": "string"
                            },
                            "botIdManual": {
                              "type": "string"
                            },
                            "saveTokenTo": {
                              "type": "string"
                            },
                            "saveErrorTo": {
                              "type": "string"
                            },
                            "httpRequestQueryParams": {
                              "type": "string"
                            },
                            "httpRequestBodyFormat": {
                              "type": "string",
                              "enum": [
                                "json",
                                "form-urlencoded",
                                "raw"
                              ],
                              "default": "json"
                            },
                            "httpRequestAuthType": {
                              "type": "string",
                              "enum": [
                                "none",
                                "basic",
                                "bearer",
                                "header",
                                "query"
                              ],
                              "default": "none"
                            },
                            "httpRequestAuthBearerToken": {
                              "type": "string"
                            },
                            "httpRequestAuthBasicUsername": {
                              "type": "string"
                            },
                            "httpRequestAuthBasicPassword": {
                              "type": "string"
                            },
                            "httpRequestAuthHeaderName": {
                              "type": "string"
                            },
                            "httpRequestAuthHeaderValue": {
                              "type": "string"
                            },
                            "httpRequestAuthQueryName": {
                              "type": "string"
                            },
                            "httpRequestAuthQueryValue": {
                              "type": "string"
                            },
                            "httpRequestResponseFormat": {
                              "type": "string",
                              "enum": [
                                "autodetect",
                                "json",
                                "text",
                                "file"
                              ],
                              "default": "autodetect"
                            },
                            "httpRequestIgnoreHttpErrors": {
                              "type": "boolean",
                              "default": false
                            },
                            "httpRequestIgnoreSsl": {
                              "type": "boolean",
                              "default": false
                            },
                            "httpRequestFollowRedirects": {
                              "type": "boolean",
                              "default": true
                            },
                            "httpRequestEnablePagination": {
                              "type": "boolean",
                              "default": false
                            },
                            "httpRequestPaginationMode": {
                              "type": "string",
                              "enum": [
                                "interactive",
                                "fetch_all"
                              ],
                              "default": "interactive"
                            },
                            "httpRequestPaginationOffsetVar": {
                              "type": "string"
                            },
                            "httpRequestPaginationTotalField": {
                              "type": "string",
                              "default": "count"
                            },
                            "httpRequestPaginationItemsField": {
                              "type": "string",
                              "default": "items"
                            },
                            "httpRequestPaginationLimit": {
                              "type": "number",
                              "default": 10
                            },
                            "httpRequestPaginationMaxPages": {
                              "type": "number",
                              "default": 20
                            },
                            "httpRequestBatchEnabled": {
                              "type": "boolean",
                              "default": false
                            },
                            "httpRequestBatchSource": {
                              "type": "string"
                            },
                            "httpRequestBatchItemVar": {
                              "type": "string",
                              "default": "item"
                            },
                            "httpRequestBatchResultVariable": {
                              "type": "string"
                            },
                            "httpRequestBatchResultFields": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "key": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "key",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "default": []
                            },
                            "attachedMediaThumbnails": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "string"
                              },
                              "default": {}
                            },
                            "query": {
                              "type": "string",
                              "default": ""
                            },
                            "connectionSource": {
                              "type": "string",
                              "enum": [
                                "builtin",
                                "env",
                                "custom"
                              ]
                            },
                            "connectionEnvVar": {
                              "type": "string"
                            },
                            "connectionString": {
                              "type": "string"
                            },
                            "saveResultTo": {
                              "type": "string",
                              "default": ""
                            },
                            "resultFormat": {
                              "type": "string",
                              "enum": [
                                "json",
                                "text",
                                "first_row",
                                "affected",
                                "all_rows",
                                "scalar",
                                "count",
                                "random_row"
                              ],
                              "default": "first_row"
                            },
                            "textTemplate": {
                              "type": "string",
                              "default": ""
                            },
                            "assignments": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "variable": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  },
                                  "mode": {
                                    "type": "string",
                                    "enum": [
                                      "text",
                                      "expression",
                                      "lookup",
                                      "str_replace",
                                      "json_push",
                                      "json_format",
                                      "random",
                                      "random_item",
                                      "array_item",
                                      "timestamp",
                                      "format_duration",
                                      "format_number",
                                      "regex_extract",
                                      "extract_number",
                                      "split_get",
                                      "json_get",
                                      "substring",
                                      "conditional",
                                      "lowercase",
                                      "uppercase",
                                      "trim",
                                      "length",
                                      "array_concat"
                                    ],
                                    "default": "text"
                                  },
                                  "lookupTable": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "lookupField": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "lookupWhere": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "field": {
                                          "type": "string"
                                        },
                                        "value": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "field",
                                        "value"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "default": []
                                  },
                                  "replaceWith": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "pattern": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "regexGroup": {
                                    "type": "string",
                                    "default": "0"
                                  },
                                  "maxValue": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "separator": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "jsonPath": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "startIndex": {
                                    "type": "string",
                                    "default": "0"
                                  },
                                  "endIndex": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "conditionVariable": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "conditionOperator": {
                                    "type": "string",
                                    "default": "equals"
                                  },
                                  "conditionValue": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "trueValue": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "falseValue": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "concatWith": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "skipIfEmpty": {
                                    "type": "string",
                                    "default": ""
                                  },
                                  "persistToDb": {
                                    "type": "boolean",
                                    "default": true
                                  }
                                },
                                "required": [
                                  "id",
                                  "variable",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "default": []
                            },
                            "convertFileMode": {
                              "type": "string",
                              "enum": [
                                "toFile"
                              ],
                              "default": "toFile"
                            },
                            "convertFileInputVariable": {
                              "type": "string",
                              "default": ""
                            },
                            "convertFileFormat": {
                              "type": "string",
                              "enum": [
                                "csv",
                                "json"
                              ],
                              "default": "csv"
                            },
                            "convertFileFileName": {
                              "type": "string",
                              "default": "export_{date}.csv"
                            },
                            "convertFileCsvDelimiter": {
                              "type": "string",
                              "default": ","
                            },
                            "convertFileIncludeHeaderRow": {
                              "type": "boolean",
                              "default": true
                            },
                            "convertFileOutputVariable": {
                              "type": "string",
                              "default": ""
                            },
                            "code": {
                              "type": "string",
                              "default": ""
                            },
                            "apiMethod": {
                              "type": "string",
                              "enum": [
                                "GET",
                                "POST",
                                "PUT",
                                "PATCH",
                                "DELETE"
                              ],
                              "default": "POST"
                            },
                            "apiPath": {
                              "type": "string",
                              "default": ""
                            },
                            "apiSecretToken": {
                              "type": "string",
                              "default": ""
                            },
                            "apiSaveBodyTo": {
                              "type": "string",
                              "default": ""
                            },
                            "apiSaveQueryTo": {
                              "type": "string",
                              "default": ""
                            },
                            "apiSaveHeadersTo": {
                              "type": "string",
                              "default": ""
                            },
                            "apiParseJson": {
                              "type": "boolean",
                              "default": true
                            },
                            "apiResponseStatusCode": {
                              "type": "number",
                              "default": 200
                            },
                            "apiResponseBody": {
                              "type": "string",
                              "default": "{\"ok\":true}"
                            },
                            "apiResponseContentType": {
                              "type": "string",
                              "enum": [
                                "application/json",
                                "text/plain",
                                "text/html"
                              ],
                              "default": "application/json"
                            },
                            "apiResponseHeaders": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "key": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "key",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "default": []
                            },
                            "invoiceTitle": {
                              "type": "string",
                              "default": ""
                            },
                            "invoiceDescription": {
                              "type": "string",
                              "default": ""
                            },
                            "invoiceAmount": {
                              "type": "string",
                              "default": "1"
                            },
                            "invoicePrices": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "label": {
                                    "type": "string"
                                  },
                                  "amount": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "label",
                                  "amount"
                                ],
                                "additionalProperties": false
                              },
                              "default": []
                            },
                            "invoiceCurrency": {
                              "type": "string",
                              "default": "XTR"
                            },
                            "invoiceProviderSource": {
                              "type": "string",
                              "default": "inline"
                            },
                            "invoiceProviderToken": {
                              "type": "string",
                              "default": ""
                            },
                            "invoiceProviderTokenEnv": {
                              "type": "string",
                              "default": "PAYMENT_PROVIDER_TOKEN"
                            },
                            "invoiceNeedName": {
                              "type": "boolean",
                              "default": false
                            },
                            "invoiceNeedEmail": {
                              "type": "boolean",
                              "default": false
                            },
                            "invoiceNeedPhone": {
                              "type": "boolean",
                              "default": false
                            },
                            "invoiceNeedShipping": {
                              "type": "boolean",
                              "default": false
                            },
                            "invoiceIsFlexible": {
                              "type": "boolean",
                              "default": false
                            },
                            "invoiceSendPhoneToProvider": {
                              "type": "boolean",
                              "default": false
                            },
                            "invoiceSendEmailToProvider": {
                              "type": "boolean",
                              "default": false
                            },
                            "invoiceProtectContent": {
                              "type": "boolean",
                              "default": false
                            },
                            "invoiceMaxTipAmount": {
                              "type": "string",
                              "default": ""
                            },
                            "invoiceSuggestedTipAmounts": {
                              "type": "string",
                              "default": ""
                            },
                            "invoiceProviderData": {
                              "type": "string",
                              "default": ""
                            },
                            "invoiceStartParameter": {
                              "type": "string",
                              "default": ""
                            },
                            "invoiceSubscription": {
                              "type": "boolean",
                              "default": false
                            },
                            "invoicePhotoUrl": {
                              "type": "string",
                              "default": ""
                            },
                            "invoicePhotoSize": {
                              "type": "string",
                              "default": ""
                            },
                            "invoicePhotoWidth": {
                              "type": "string",
                              "default": ""
                            },
                            "invoicePhotoHeight": {
                              "type": "string",
                              "default": ""
                            },
                            "invoiceMessageThreadId": {
                              "type": "string",
                              "default": ""
                            },
                            "invoiceDirectMessagesTopicId": {
                              "type": "string",
                              "default": ""
                            },
                            "invoiceDisableNotification": {
                              "type": "boolean",
                              "default": false
                            },
                            "invoiceReplyToMessageId": {
                              "type": "string",
                              "default": ""
                            },
                            "invoiceMessageEffectId": {
                              "type": "string",
                              "default": ""
                            },
                            "invoiceAllowPaidBroadcast": {
                              "type": "boolean",
                              "default": false
                            },
                            "invoiceSuggestedPostParams": {
                              "type": "string",
                              "default": ""
                            },
                            "invoicePayload": {
                              "type": "string",
                              "default": ""
                            },
                            "savePaymentAmountTo": {
                              "type": "string",
                              "default": ""
                            },
                            "savePaymentChargeIdTo": {
                              "type": "string",
                              "default": ""
                            },
                            "saveOrderNameTo": {
                              "type": "string",
                              "default": ""
                            },
                            "saveOrderEmailTo": {
                              "type": "string",
                              "default": ""
                            },
                            "saveOrderPhoneTo": {
                              "type": "string",
                              "default": ""
                            },
                            "saveInvoiceLinkTo": {
                              "type": "string",
                              "default": ""
                            },
                            "afterPaymentTo": {
                              "type": "string",
                              "default": ""
                            },
                            "preCheckoutMode": {
                              "type": "string",
                              "default": "always"
                            },
                            "preCheckoutVariable": {
                              "type": "string",
                              "default": ""
                            },
                            "preCheckoutOperator": {
                              "type": "string",
                              "default": "filled"
                            },
                            "preCheckoutValue": {
                              "type": "string",
                              "default": ""
                            },
                            "preCheckoutValue2": {
                              "type": "string",
                              "default": ""
                            },
                            "preCheckoutErrorMessage": {
                              "type": "string",
                              "default": ""
                            },
                            "refundUserSource": {
                              "type": "string",
                              "default": "current_user"
                            },
                            "refundUserId": {
                              "type": "string",
                              "default": ""
                            },
                            "refundChargeId": {
                              "type": "string",
                              "default": ""
                            },
                            "refundMsgEmpty": {
                              "type": "string",
                              "default": "Пожалуйста, укажите код покупки: /back КОД"
                            },
                            "refundMsgNotFound": {
                              "type": "string",
                              "default": "Такой код покупки не найден. Проверьте данные и попробуйте снова."
                            },
                            "refundMsgAlreadyRefunded": {
                              "type": "string",
                              "default": "За эту покупку уже ранее был произведён возврат."
                            },
                            "refundEmptyTarget": {
                              "type": "string",
                              "default": ""
                            },
                            "refundNotFoundTarget": {
                              "type": "string",
                              "default": ""
                            },
                            "refundAlreadyRefundedTarget": {
                              "type": "string",
                              "default": ""
                            },
                            "subscriptionUserSource": {
                              "type": "string",
                              "default": "current_user"
                            },
                            "subscriptionUserId": {
                              "type": "string",
                              "default": ""
                            },
                            "subscriptionChargeId": {
                              "type": "string",
                              "default": ""
                            },
                            "subscriptionAction": {
                              "type": "string",
                              "default": "cancel"
                            },
                            "subscriptionMsgEmpty": {
                              "type": "string",
                              "default": "Укажите код покупки подписки"
                            },
                            "subscriptionMsgError": {
                              "type": "string",
                              "default": "Не удалось изменить автопродление. Проверьте код покупки."
                            },
                            "subscriptionEmptyTarget": {
                              "type": "string",
                              "default": ""
                            },
                            "subscriptionErrorTarget": {
                              "type": "string",
                              "default": ""
                            },
                            "saveStarBalanceTo": {
                              "type": "string",
                              "default": "star_balance"
                            },
                            "balanceMsgError": {
                              "type": "string",
                              "default": "Не удалось получить баланс звёзд"
                            },
                            "balanceErrorTarget": {
                              "type": "string",
                              "default": ""
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "position",
                        "data"
                      ],
                      "additionalProperties": true
                    },
                    "sheet_id": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "op",
                    "node"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "update_node"
                    },
                    "node_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    },
                    "patch": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/type"
                        },
                        "position": {
                          "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/position"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "userbotEntity": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/userbotEntity"
                            },
                            "userbotEntitySource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/userbotEntitySource"
                            },
                            "userbotEntityVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/userbotEntityVariable"
                            },
                            "userbotRecipients": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/userbotRecipients"
                            },
                            "messageId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/messageId"
                            },
                            "clickMode": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/clickMode"
                            },
                            "clickDelivery": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/clickDelivery"
                            },
                            "clickValue": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/clickValue"
                            },
                            "responseStrategy": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/responseStrategy"
                            },
                            "responseWaitSeconds": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/responseWaitSeconds"
                            },
                            "responseFilterRegex": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/responseFilterRegex"
                            },
                            "responseFloorMessageIdVar": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/responseFloorMessageIdVar"
                            },
                            "saveAlertTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveAlertTo"
                            },
                            "saveButtonsTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveButtonsTo"
                            },
                            "saveHasMediaTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveHasMediaTo"
                            },
                            "saveMediaTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveMediaTo"
                            },
                            "saveResponseIdTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveResponseIdTo"
                            },
                            "saveResponseTextTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveResponseTextTo"
                            },
                            "botUsername": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/botUsername"
                            },
                            "targetChat": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/targetChat"
                            },
                            "sendToSameChat": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/sendToSameChat"
                            },
                            "resultIndex": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/resultIndex"
                            },
                            "saveResultTitleTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveResultTitleTo"
                            },
                            "saveResultDescTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveResultDescTo"
                            },
                            "filterType": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/filterType"
                            },
                            "filterValue": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/filterValue"
                            },
                            "saveTextTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveTextTo"
                            },
                            "saveChatIdTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveChatIdTo"
                            },
                            "saveSenderIdTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveSenderIdTo"
                            },
                            "command": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/command"
                            },
                            "deepLinkParam": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/deepLinkParam"
                            },
                            "deepLinkMatchMode": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/deepLinkMatchMode"
                            },
                            "deepLinkSaveToVar": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/deepLinkSaveToVar"
                            },
                            "deepLinkVarName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/deepLinkVarName"
                            },
                            "commentColor": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/commentColor"
                            },
                            "rules": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/rules"
                            },
                            "timezone": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/timezone"
                            },
                            "runOnStart": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/runOnStart"
                            },
                            "enabled": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/enabled"
                            },
                            "description": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/description"
                            },
                            "messageText": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/messageText"
                            },
                            "imageUrl": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/imageUrl"
                            },
                            "videoUrl": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/videoUrl"
                            },
                            "audioUrl": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/audioUrl"
                            },
                            "documentUrl": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/documentUrl"
                            },
                            "documentName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/documentName"
                            },
                            "mediaCaption": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/mediaCaption"
                            },
                            "keyboardType": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/keyboardType"
                            },
                            "keyboardNodeId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/keyboardNodeId"
                            },
                            "seconds": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/seconds"
                            },
                            "unit": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/unit"
                            },
                            "mode": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/mode"
                            },
                            "buttons": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/buttons"
                            },
                            "shuffleButtons": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/shuffleButtons"
                            },
                            "enableDynamicButtons": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/enableDynamicButtons"
                            },
                            "dynamicButtons": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/dynamicButtons"
                            },
                            "keyboardLayout": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/keyboardLayout"
                            },
                            "oneTimeKeyboard": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/oneTimeKeyboard"
                            },
                            "resizeKeyboard": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/resizeKeyboard"
                            },
                            "markdown": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/markdown"
                            },
                            "formatMode": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/formatMode"
                            },
                            "disableLinkPreview": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/disableLinkPreview"
                            },
                            "synonyms": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/synonyms"
                            },
                            "matchMode": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/matchMode"
                            },
                            "adminOnly": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/adminOnly"
                            },
                            "requiresAuth": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/requiresAuth"
                            },
                            "showInMenu": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/showInMenu"
                            },
                            "saveCommandArgsTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveCommandArgsTo"
                            },
                            "commandTimeout": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/commandTimeout"
                            },
                            "cooldownTime": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/cooldownTime"
                            },
                            "maxUsagesPerDay": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/maxUsagesPerDay"
                            },
                            "customParameters": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/customParameters"
                            },
                            "targetMessageId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/targetMessageId"
                            },
                            "sourceMessageId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/sourceMessageId"
                            },
                            "messageIdSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/messageIdSource"
                            },
                            "messageIdManual": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/messageIdManual"
                            },
                            "lastNCount": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/lastNCount"
                            },
                            "chatIdSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/chatIdSource"
                            },
                            "chatIdManual": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/chatIdManual"
                            },
                            "ignoreErrors": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/ignoreErrors"
                            },
                            "bulkDelete": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/bulkDelete"
                            },
                            "bulkMessageIdsVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/bulkMessageIdsVariable"
                            },
                            "sourceMessageIdSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/sourceMessageIdSource"
                            },
                            "sourceMessageNodeId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/sourceMessageNodeId"
                            },
                            "sourceMessageVariableName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/sourceMessageVariableName"
                            },
                            "variableName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/variableName"
                            },
                            "disableNotification": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/disableNotification"
                            },
                            "hideAuthor": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/hideAuthor"
                            },
                            "targetChatId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/targetChatId"
                            },
                            "targetChatIdSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/targetChatIdSource"
                            },
                            "targetChatVariableName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/targetChatVariableName"
                            },
                            "targetChatTargets": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/targetChatTargets"
                            },
                            "targetThreadId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/targetThreadId"
                            },
                            "targetThreadIdSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/targetThreadIdSource"
                            },
                            "targetThreadIdVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/targetThreadIdVariable"
                            },
                            "targetUserId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/targetUserId"
                            },
                            "userIdSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/userIdSource"
                            },
                            "userIdManual": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/userIdManual"
                            },
                            "userVariableName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/userVariableName"
                            },
                            "targetGroupId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/targetGroupId"
                            },
                            "stickerUrl": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/stickerUrl"
                            },
                            "stickerFileId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/stickerFileId"
                            },
                            "voiceUrl": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/voiceUrl"
                            },
                            "animationUrl": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/animationUrl"
                            },
                            "latitude": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/latitude"
                            },
                            "longitude": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/longitude"
                            },
                            "title": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/title"
                            },
                            "address": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/address"
                            },
                            "foursquareId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/foursquareId"
                            },
                            "foursquareType": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/foursquareType"
                            },
                            "mapService": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/mapService"
                            },
                            "yandexMapUrl": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/yandexMapUrl"
                            },
                            "googleMapUrl": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/googleMapUrl"
                            },
                            "gisMapUrl": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/gisMapUrl"
                            },
                            "mapZoom": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/mapZoom"
                            },
                            "showDirections": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/showDirections"
                            },
                            "generateMapPreview": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/generateMapPreview"
                            },
                            "phoneNumber": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/phoneNumber"
                            },
                            "firstName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/firstName"
                            },
                            "lastName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/lastName"
                            },
                            "userId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/userId"
                            },
                            "vcard": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/vcard"
                            },
                            "question": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/question"
                            },
                            "options": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/options"
                            },
                            "allowsMultipleAnswers": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/allowsMultipleAnswers"
                            },
                            "anonymousVoting": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/anonymousVoting"
                            },
                            "emoji": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/emoji"
                            },
                            "mediaDuration": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/mediaDuration"
                            },
                            "width": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/width"
                            },
                            "height": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/height"
                            },
                            "performer": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/performer"
                            },
                            "fileSize": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/fileSize"
                            },
                            "filename": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/filename"
                            },
                            "inputType": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/inputType"
                            },
                            "responseType": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/responseType"
                            },
                            "responseOptions": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/responseOptions"
                            },
                            "allowMultipleSelection": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/allowMultipleSelection"
                            },
                            "multiSelectVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/multiSelectVariable"
                            },
                            "continueButtonText": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/continueButtonText"
                            },
                            "continueButtonTarget": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/continueButtonTarget"
                            },
                            "inputVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/inputVariable"
                            },
                            "inputPrompt": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/inputPrompt"
                            },
                            "inputValidation": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/inputValidation"
                            },
                            "inputRequired": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/inputRequired"
                            },
                            "inputTimeout": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/inputTimeout"
                            },
                            "inputTimeoutMessage": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/inputTimeoutMessage"
                            },
                            "inputRetryMessage": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/inputRetryMessage"
                            },
                            "inputSuccessMessage": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/inputSuccessMessage"
                            },
                            "enableConditionalMessages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/enableConditionalMessages"
                            },
                            "conditionalMessages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/conditionalMessages"
                            },
                            "fallbackMessage": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/fallbackMessage"
                            },
                            "saveToDatabase": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveToDatabase"
                            },
                            "allowSkip": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/allowSkip"
                            },
                            "collectUserInput": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/collectUserInput"
                            },
                            "inputTargetNodeId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/inputTargetNodeId"
                            },
                            "inputButtonType": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/inputButtonType"
                            },
                            "enableAutoTransition": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/enableAutoTransition"
                            },
                            "autoTransitionTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/autoTransitionTo"
                            },
                            "sourceNodeId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/sourceNodeId"
                            },
                            "minLength": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/minLength"
                            },
                            "maxLength": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/maxLength"
                            },
                            "placeholder": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/placeholder"
                            },
                            "defaultValue": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/defaultValue"
                            },
                            "appendVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/appendVariable"
                            },
                            "saveMediaMetadata": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveMediaMetadata"
                            },
                            "mediaMetadataSuffixes": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/mediaMetadataSuffixes"
                            },
                            "mediaMetadataCustomNames": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/mediaMetadataCustomNames"
                            },
                            "variableFilters": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/variableFilters"
                            },
                            "enableUserActions": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/enableUserActions"
                            },
                            "actionTrigger": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/actionTrigger"
                            },
                            "triggerText": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/triggerText"
                            },
                            "userActionType": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/userActionType"
                            },
                            "actionTag": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/actionTag"
                            },
                            "actionMessage": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/actionMessage"
                            },
                            "silentAction": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/silentAction"
                            },
                            "mimeType": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/mimeType"
                            },
                            "stickerSetName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/stickerSetName"
                            },
                            "fileName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/fileName"
                            },
                            "city": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/city"
                            },
                            "country": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/country"
                            },
                            "enableTextInput": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/enableTextInput"
                            },
                            "enablePhotoInput": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/enablePhotoInput"
                            },
                            "enableVideoInput": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/enableVideoInput"
                            },
                            "enableAudioInput": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/enableAudioInput"
                            },
                            "enableDocumentInput": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/enableDocumentInput"
                            },
                            "photoInputVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/photoInputVariable"
                            },
                            "videoInputVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/videoInputVariable"
                            },
                            "audioInputVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/audioInputVariable"
                            },
                            "documentInputVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/documentInputVariable"
                            },
                            "name": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/name"
                            },
                            "label": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/label"
                            },
                            "checkmarkSymbol": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/checkmarkSymbol"
                            },
                            "multiSelectCheckmark": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/multiSelectCheckmark"
                            },
                            "radioSelectedSymbol": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/radioSelectedSymbol"
                            },
                            "radioUnselectedSymbol": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/radioUnselectedSymbol"
                            },
                            "duration": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/duration"
                            },
                            "muteDuration": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/muteDuration"
                            },
                            "reason": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/reason"
                            },
                            "canChangeInfo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canChangeInfo"
                            },
                            "canDeleteMessages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canDeleteMessages"
                            },
                            "canBanUsers": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canBanUsers"
                            },
                            "canInviteUsers": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canInviteUsers"
                            },
                            "canPinMessages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canPinMessages"
                            },
                            "canAddAdmins": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canAddAdmins"
                            },
                            "canRestrictMembers": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canRestrictMembers"
                            },
                            "canPromoteMembers": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canPromoteMembers"
                            },
                            "canManageVideoChats": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canManageVideoChats"
                            },
                            "canManageTopics": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canManageTopics"
                            },
                            "isAnonymous": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/isAnonymous"
                            },
                            "canManageChat": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canManageChat"
                            },
                            "canPostMessages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canPostMessages"
                            },
                            "canEditMessages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canEditMessages"
                            },
                            "canManageDirectMessages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canManageDirectMessages"
                            },
                            "canManageTags": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canManageTags"
                            },
                            "canSendWelcomeMessages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canSendWelcomeMessages"
                            },
                            "canSendMessages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canSendMessages"
                            },
                            "canSendAudios": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canSendAudios"
                            },
                            "canSendDocuments": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canSendDocuments"
                            },
                            "canSendPhotos": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canSendPhotos"
                            },
                            "canSendVideos": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canSendVideos"
                            },
                            "canSendVideoNotes": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canSendVideoNotes"
                            },
                            "canSendVoiceNotes": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canSendVoiceNotes"
                            },
                            "canReactToMessages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canReactToMessages"
                            },
                            "canSendPolls": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canSendPolls"
                            },
                            "canSendOtherMessages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canSendOtherMessages"
                            },
                            "canAddWebPagePreviews": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canAddWebPagePreviews"
                            },
                            "canChangeGroupInfo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canChangeGroupInfo"
                            },
                            "canInviteUsers2": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canInviteUsers2"
                            },
                            "canPinMessages2": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/canPinMessages2"
                            },
                            "untilDate": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/untilDate"
                            },
                            "adminTargetUserId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/adminTargetUserId"
                            },
                            "adminUserIdSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/adminUserIdSource"
                            },
                            "adminUserVariableName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/adminUserVariableName"
                            },
                            "can_manage_chat": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_manage_chat"
                            },
                            "can_post_messages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_post_messages"
                            },
                            "can_edit_messages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_edit_messages"
                            },
                            "can_delete_messages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_delete_messages"
                            },
                            "can_post_stories": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_post_stories"
                            },
                            "can_edit_stories": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_edit_stories"
                            },
                            "can_delete_stories": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_delete_stories"
                            },
                            "can_manage_video_chats": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_manage_video_chats"
                            },
                            "can_restrict_members": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_restrict_members"
                            },
                            "can_promote_members": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_promote_members"
                            },
                            "can_change_info": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_change_info"
                            },
                            "can_invite_users": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_invite_users"
                            },
                            "can_pin_messages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_pin_messages"
                            },
                            "can_manage_topics": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_manage_topics"
                            },
                            "is_anonymous": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/is_anonymous"
                            },
                            "can_manage_direct_messages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_manage_direct_messages"
                            },
                            "can_manage_tags": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_manage_tags"
                            },
                            "can_send_welcome_messages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/can_send_welcome_messages"
                            },
                            "adminChatId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/adminChatId"
                            },
                            "adminChatIdSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/adminChatIdSource"
                            },
                            "adminChatVariableName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/adminChatVariableName"
                            },
                            "attachedMedia": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/attachedMedia"
                            },
                            "sendAsGifUrls": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/sendAsGifUrls"
                            },
                            "text": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/text"
                            },
                            "action": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/action"
                            },
                            "waitForTextInput": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/waitForTextInput"
                            },
                            "broadcastApiType": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/broadcastApiType"
                            },
                            "broadcastTargetNode": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/broadcastTargetNode"
                            },
                            "enableBroadcast": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/enableBroadcast"
                            },
                            "enableConfirmation": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/enableConfirmation"
                            },
                            "confirmationText": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/confirmationText"
                            },
                            "successMessage": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/successMessage"
                            },
                            "errorMessage": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/errorMessage"
                            },
                            "sessionName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/sessionName"
                            },
                            "sessionCreated": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/sessionCreated"
                            },
                            "textSynonyms": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/textSynonyms"
                            },
                            "textMatchType": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/textMatchType"
                            },
                            "variable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/variable"
                            },
                            "forumChatId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/forumChatId"
                            },
                            "forumChatIdSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/forumChatIdSource"
                            },
                            "forumChatVariableName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/forumChatVariableName"
                            },
                            "topicName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/topicName"
                            },
                            "topicIconColor": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/topicIconColor"
                            },
                            "saveThreadIdTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveThreadIdTo"
                            },
                            "saveMessageIdTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveMessageIdTo"
                            },
                            "saveBotIdTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveBotIdTo"
                            },
                            "saveBotUsernameTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveBotUsernameTo"
                            },
                            "saveBotNameTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveBotNameTo"
                            },
                            "saveCreatorIdTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveCreatorIdTo"
                            },
                            "saveCreatorUsernameTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveCreatorUsernameTo"
                            },
                            "filterByUserId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/filterByUserId"
                            },
                            "skipIfExists": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/skipIfExists"
                            },
                            "imtChatTypeFilter": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/imtChatTypeFilter"
                            },
                            "imtGroupChatId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/imtGroupChatId"
                            },
                            "imtGroupChatIdSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/imtGroupChatIdSource"
                            },
                            "imtStopOnFlag": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/imtStopOnFlag"
                            },
                            "groupChatId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/groupChatId"
                            },
                            "groupChatIdSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/groupChatIdSource"
                            },
                            "groupChatVariableName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/groupChatVariableName"
                            },
                            "threadIdVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/threadIdVariable"
                            },
                            "resolvedUserIdVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/resolvedUserIdVariable"
                            },
                            "memberEventType": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/memberEventType"
                            },
                            "saveJoinedUserIdTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveJoinedUserIdTo"
                            },
                            "saveJoinedUsernameTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveJoinedUsernameTo"
                            },
                            "saveLeftUserIdTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveLeftUserIdTo"
                            },
                            "saveLeftUsernameTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveLeftUsernameTo"
                            },
                            "branches": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/branches"
                            },
                            "parallelBranches": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/parallelBranches"
                            },
                            "maxConcurrent": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/maxConcurrent"
                            },
                            "awaitAll": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/awaitAll"
                            },
                            "skipIfRunning": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/skipIfRunning"
                            },
                            "counterKey": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/counterKey"
                            },
                            "windowSeconds": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/windowSeconds"
                            },
                            "messageSendRecipients": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/messageSendRecipients"
                            },
                            "messageSendTarget": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/messageSendTarget"
                            },
                            "messageSendChatId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/messageSendChatId"
                            },
                            "messageSendThreadId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/messageSendThreadId"
                            },
                            "httpRequestUrl": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestUrl"
                            },
                            "httpRequestMethod": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestMethod"
                            },
                            "httpRequestHeaders": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestHeaders"
                            },
                            "httpRequestBody": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestBody"
                            },
                            "httpRequestTimeout": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestTimeout"
                            },
                            "httpRequestResponseVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestResponseVariable"
                            },
                            "httpRequestResponseJsonPath": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestResponseJsonPath"
                            },
                            "httpRequestResponseExtractTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestResponseExtractTo"
                            },
                            "httpRequestStatusVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestStatusVariable"
                            },
                            "botIdSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/botIdSource"
                            },
                            "botIdVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/botIdVariable"
                            },
                            "botIdManual": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/botIdManual"
                            },
                            "saveTokenTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveTokenTo"
                            },
                            "saveErrorTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveErrorTo"
                            },
                            "httpRequestQueryParams": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestQueryParams"
                            },
                            "httpRequestBodyFormat": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestBodyFormat"
                            },
                            "httpRequestAuthType": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestAuthType"
                            },
                            "httpRequestAuthBearerToken": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestAuthBearerToken"
                            },
                            "httpRequestAuthBasicUsername": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestAuthBasicUsername"
                            },
                            "httpRequestAuthBasicPassword": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestAuthBasicPassword"
                            },
                            "httpRequestAuthHeaderName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestAuthHeaderName"
                            },
                            "httpRequestAuthHeaderValue": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestAuthHeaderValue"
                            },
                            "httpRequestAuthQueryName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestAuthQueryName"
                            },
                            "httpRequestAuthQueryValue": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestAuthQueryValue"
                            },
                            "httpRequestResponseFormat": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestResponseFormat"
                            },
                            "httpRequestIgnoreHttpErrors": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestIgnoreHttpErrors"
                            },
                            "httpRequestIgnoreSsl": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestIgnoreSsl"
                            },
                            "httpRequestFollowRedirects": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestFollowRedirects"
                            },
                            "httpRequestEnablePagination": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestEnablePagination"
                            },
                            "httpRequestPaginationMode": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestPaginationMode"
                            },
                            "httpRequestPaginationOffsetVar": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestPaginationOffsetVar"
                            },
                            "httpRequestPaginationTotalField": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestPaginationTotalField"
                            },
                            "httpRequestPaginationItemsField": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestPaginationItemsField"
                            },
                            "httpRequestPaginationLimit": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestPaginationLimit"
                            },
                            "httpRequestPaginationMaxPages": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestPaginationMaxPages"
                            },
                            "httpRequestBatchEnabled": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestBatchEnabled"
                            },
                            "httpRequestBatchSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestBatchSource"
                            },
                            "httpRequestBatchItemVar": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestBatchItemVar"
                            },
                            "httpRequestBatchResultVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestBatchResultVariable"
                            },
                            "httpRequestBatchResultFields": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/httpRequestBatchResultFields"
                            },
                            "attachedMediaThumbnails": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/attachedMediaThumbnails"
                            },
                            "query": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/query"
                            },
                            "connectionSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/connectionSource"
                            },
                            "connectionEnvVar": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/connectionEnvVar"
                            },
                            "connectionString": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/connectionString"
                            },
                            "saveResultTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveResultTo"
                            },
                            "resultFormat": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/resultFormat"
                            },
                            "textTemplate": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/textTemplate"
                            },
                            "assignments": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/assignments"
                            },
                            "convertFileMode": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/convertFileMode"
                            },
                            "convertFileInputVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/convertFileInputVariable"
                            },
                            "convertFileFormat": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/convertFileFormat"
                            },
                            "convertFileFileName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/convertFileFileName"
                            },
                            "convertFileCsvDelimiter": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/convertFileCsvDelimiter"
                            },
                            "convertFileIncludeHeaderRow": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/convertFileIncludeHeaderRow"
                            },
                            "convertFileOutputVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/convertFileOutputVariable"
                            },
                            "code": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/code"
                            },
                            "apiMethod": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/apiMethod"
                            },
                            "apiPath": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/apiPath"
                            },
                            "apiSecretToken": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/apiSecretToken"
                            },
                            "apiSaveBodyTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/apiSaveBodyTo"
                            },
                            "apiSaveQueryTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/apiSaveQueryTo"
                            },
                            "apiSaveHeadersTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/apiSaveHeadersTo"
                            },
                            "apiParseJson": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/apiParseJson"
                            },
                            "apiResponseStatusCode": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/apiResponseStatusCode"
                            },
                            "apiResponseBody": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/apiResponseBody"
                            },
                            "apiResponseContentType": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/apiResponseContentType"
                            },
                            "apiResponseHeaders": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/apiResponseHeaders"
                            },
                            "invoiceTitle": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceTitle"
                            },
                            "invoiceDescription": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceDescription"
                            },
                            "invoiceAmount": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceAmount"
                            },
                            "invoicePrices": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoicePrices"
                            },
                            "invoiceCurrency": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceCurrency"
                            },
                            "invoiceProviderSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceProviderSource"
                            },
                            "invoiceProviderToken": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceProviderToken"
                            },
                            "invoiceProviderTokenEnv": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceProviderTokenEnv"
                            },
                            "invoiceNeedName": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceNeedName"
                            },
                            "invoiceNeedEmail": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceNeedEmail"
                            },
                            "invoiceNeedPhone": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceNeedPhone"
                            },
                            "invoiceNeedShipping": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceNeedShipping"
                            },
                            "invoiceIsFlexible": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceIsFlexible"
                            },
                            "invoiceSendPhoneToProvider": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceSendPhoneToProvider"
                            },
                            "invoiceSendEmailToProvider": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceSendEmailToProvider"
                            },
                            "invoiceProtectContent": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceProtectContent"
                            },
                            "invoiceMaxTipAmount": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceMaxTipAmount"
                            },
                            "invoiceSuggestedTipAmounts": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceSuggestedTipAmounts"
                            },
                            "invoiceProviderData": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceProviderData"
                            },
                            "invoiceStartParameter": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceStartParameter"
                            },
                            "invoiceSubscription": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceSubscription"
                            },
                            "invoicePhotoUrl": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoicePhotoUrl"
                            },
                            "invoicePhotoSize": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoicePhotoSize"
                            },
                            "invoicePhotoWidth": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoicePhotoWidth"
                            },
                            "invoicePhotoHeight": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoicePhotoHeight"
                            },
                            "invoiceMessageThreadId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceMessageThreadId"
                            },
                            "invoiceDirectMessagesTopicId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceDirectMessagesTopicId"
                            },
                            "invoiceDisableNotification": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceDisableNotification"
                            },
                            "invoiceReplyToMessageId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceReplyToMessageId"
                            },
                            "invoiceMessageEffectId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceMessageEffectId"
                            },
                            "invoiceAllowPaidBroadcast": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceAllowPaidBroadcast"
                            },
                            "invoiceSuggestedPostParams": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoiceSuggestedPostParams"
                            },
                            "invoicePayload": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/invoicePayload"
                            },
                            "savePaymentAmountTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/savePaymentAmountTo"
                            },
                            "savePaymentChargeIdTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/savePaymentChargeIdTo"
                            },
                            "saveOrderNameTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveOrderNameTo"
                            },
                            "saveOrderEmailTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveOrderEmailTo"
                            },
                            "saveOrderPhoneTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveOrderPhoneTo"
                            },
                            "saveInvoiceLinkTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveInvoiceLinkTo"
                            },
                            "afterPaymentTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/afterPaymentTo"
                            },
                            "preCheckoutMode": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/preCheckoutMode"
                            },
                            "preCheckoutVariable": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/preCheckoutVariable"
                            },
                            "preCheckoutOperator": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/preCheckoutOperator"
                            },
                            "preCheckoutValue": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/preCheckoutValue"
                            },
                            "preCheckoutValue2": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/preCheckoutValue2"
                            },
                            "preCheckoutErrorMessage": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/preCheckoutErrorMessage"
                            },
                            "refundUserSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/refundUserSource"
                            },
                            "refundUserId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/refundUserId"
                            },
                            "refundChargeId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/refundChargeId"
                            },
                            "refundMsgEmpty": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/refundMsgEmpty"
                            },
                            "refundMsgNotFound": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/refundMsgNotFound"
                            },
                            "refundMsgAlreadyRefunded": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/refundMsgAlreadyRefunded"
                            },
                            "refundEmptyTarget": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/refundEmptyTarget"
                            },
                            "refundNotFoundTarget": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/refundNotFoundTarget"
                            },
                            "refundAlreadyRefundedTarget": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/refundAlreadyRefundedTarget"
                            },
                            "subscriptionUserSource": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/subscriptionUserSource"
                            },
                            "subscriptionUserId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/subscriptionUserId"
                            },
                            "subscriptionChargeId": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/subscriptionChargeId"
                            },
                            "subscriptionAction": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/subscriptionAction"
                            },
                            "subscriptionMsgEmpty": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/subscriptionMsgEmpty"
                            },
                            "subscriptionMsgError": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/subscriptionMsgError"
                            },
                            "subscriptionEmptyTarget": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/subscriptionEmptyTarget"
                            },
                            "subscriptionErrorTarget": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/subscriptionErrorTarget"
                            },
                            "saveStarBalanceTo": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/saveStarBalanceTo"
                            },
                            "balanceMsgError": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/balanceMsgError"
                            },
                            "balanceErrorTarget": {
                              "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/data/properties/balanceErrorTarget"
                            }
                          },
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": false
                    },
                    "sheet_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    }
                  },
                  "required": [
                    "op",
                    "node_id",
                    "patch"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "remove_node"
                    },
                    "node_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    },
                    "sheet_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    }
                  },
                  "required": [
                    "op",
                    "node_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "connect_nodes"
                    },
                    "from_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    },
                    "to_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    },
                    "sheet_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    },
                    "branch": {
                      "type": "string"
                    },
                    "port_type": {
                      "type": "string",
                      "enum": [
                        "auto-transition",
                        "trigger-next",
                        "button-goto",
                        "input-target"
                      ]
                    }
                  },
                  "required": [
                    "op",
                    "from_id",
                    "to_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "disconnect_nodes"
                    },
                    "from_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    },
                    "to_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    },
                    "sheet_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    },
                    "branch": {
                      "$ref": "#/properties/ops/items/anyOf/3/properties/branch"
                    },
                    "port_type": {
                      "$ref": "#/properties/ops/items/anyOf/3/properties/port_type"
                    }
                  },
                  "required": [
                    "op",
                    "from_id",
                    "to_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "move_node"
                    },
                    "node_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    },
                    "to_sheet_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    },
                    "from_sheet_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    },
                    "position": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/position"
                    }
                  },
                  "required": [
                    "op",
                    "node_id",
                    "to_sheet_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "duplicate_node"
                    },
                    "node_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    },
                    "sheet_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    },
                    "position": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/node/properties/position"
                    }
                  },
                  "required": [
                    "op",
                    "node_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "add_sheet"
                    },
                    "name": {
                      "type": "string"
                    },
                    "id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    }
                  },
                  "required": [
                    "op"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "rename_sheet"
                    },
                    "sheet_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "op",
                    "sheet_id",
                    "name"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "remove_sheet"
                    },
                    "sheet_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    }
                  },
                  "required": [
                    "op",
                    "sheet_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "duplicate_sheet"
                    },
                    "sheet_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    }
                  },
                  "required": [
                    "op",
                    "sheet_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "set_active_sheet"
                    },
                    "sheet_id": {
                      "$ref": "#/properties/ops/items/anyOf/0/properties/sheet_id"
                    }
                  },
                  "required": [
                    "op",
                    "sheet_id"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "minItems": 1,
            "description": "Проверяемый пакет операций; update/remove без sheet_id ищут узел по листам"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          },
          "skip_validation": {
            "type": "boolean",
            "description": "Пропустить валидацию перед записью (для легаси с битыми ссылками; style:default уже принимается)"
          }
        },
        "required": [
          "project_id",
          "ops"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_apply_table_ops",
      "section": "tables",
      "description": "До 50 операций одной транзакцией: столбцы, строки, переиндексация. Если есть удаление, нужен confirm: true. При ошибке всё откатывается, в ответе failed_op_index.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "confirm": {
            "type": "boolean"
          },
          "ops": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "add_column"
                    },
                    "name": {
                      "type": "string"
                    },
                    "position": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "op",
                    "name"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "rename_column"
                    },
                    "column_id": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "op",
                    "column_id",
                    "name"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "delete_column"
                    },
                    "column_id": {
                      "$ref": "#/properties/ops/items/anyOf/1/properties/column_id"
                    }
                  },
                  "required": [
                    "op",
                    "column_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "add_rows"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "data": {
                            "type": "object",
                            "additionalProperties": {}
                          },
                          "row_index": {
                            "type": "integer"
                          }
                        },
                        "required": [
                          "data"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "op",
                    "rows"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "update_row"
                    },
                    "row_id": {
                      "$ref": "#/properties/ops/items/anyOf/1/properties/column_id"
                    },
                    "data": {
                      "$ref": "#/properties/ops/items/anyOf/3/properties/rows/items/properties/data"
                    }
                  },
                  "required": [
                    "op",
                    "row_id",
                    "data"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "patch_row"
                    },
                    "row_id": {
                      "$ref": "#/properties/ops/items/anyOf/1/properties/column_id"
                    },
                    "data": {
                      "$ref": "#/properties/ops/items/anyOf/3/properties/rows/items/properties/data"
                    }
                  },
                  "required": [
                    "op",
                    "row_id",
                    "data"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "delete_row"
                    },
                    "row_id": {
                      "$ref": "#/properties/ops/items/anyOf/1/properties/column_id"
                    }
                  },
                  "required": [
                    "op",
                    "row_id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "op": {
                      "type": "string",
                      "const": "reindex"
                    }
                  },
                  "required": [
                    "op"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "minItems": 1,
            "maxItems": 50
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "Один UUID на попытку. С ним результат — квитанция ID, данные перечитайте отдельно. Повторите тот же UUID при потере ответа; unknown нельзя выполнять заново автоматически."
          }
        },
        "required": [
          "project_id",
          "table_id",
          "ops"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "destructive": true,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "ops": [
          {
            "op": "add_column",
            "name": "1"
          }
        ]
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_archive_project",
      "section": "projects",
      "description": "Поместить проект в личный архив владельца токена. Скрывает проект только у этого пользователя; коллабораторы не затрагиваются, боты не останавливаются. Эквивалент POST /api/projects/:id/archive.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "projects",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "projects",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_auto_layout",
      "section": "scenario",
      "description": "Пересчитать позиции всех нод листа иерархической авто-раскладкой (как кнопка «Авто-расстановка»). Меняет только координаты, не трогает связи/данные. Live-обновление холста. Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "sheet_id": {
            "type": "string",
            "description": "ID листа (по умолчанию активный/первый)"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_bot_launch_history",
      "section": "logs",
      "description": "История запусков бота по token_id (статус, время старта/остановки, ошибка, pid) БЕЗ секрета token. token_id берётся из db_list_bot_tokens.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "token_id": {
            "type": "number",
            "description": "Числовой ID токена из db_list_bot_tokens"
          }
        },
        "required": [
          "token_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "logs",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "logs",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "token_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_bot_logs",
      "section": "logs",
      "description": "Последние live-логи бота (stdout/stderr/status) — для отладки. token_id берётся из db_list_bot_tokens.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "token_id": {
            "type": "number",
            "description": "Числовой ID токена из db_list_bot_tokens"
          },
          "limit": {
            "type": "number",
            "description": "Максимум записей (по умолчанию 100)"
          }
        },
        "required": [
          "project_id",
          "token_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "logs",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "logs",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "token_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_bot_status",
      "section": "runtime",
      "description": "Статус бота по token_id (running/stopped, имя, username, uptime, статистика пользователей) БЕЗ секрета token. token_id берётся из db_list_bot_tokens.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "token_id": {
            "type": "number",
            "description": "Числовой ID токена из db_list_bot_tokens"
          }
        },
        "required": [
          "token_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "runtime",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "runtime",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "token_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_cancel_chat_access_check",
      "section": "dialogs",
      "description": "Останавливает оставшуюся очередь проверки доступности. Уже выполненные проверки сохраняются; состояние может быть cancelling.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "job_id": {
            "$ref": "#/properties/project_id"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "job_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "dialogs",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "dialogs",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_check_chat_access",
      "section": "dialogs",
      "description": "Проверяет через Telegram актуальный доступ бота к личке, группе или каналу. Для лички используется краткое действие «печатает» без сообщения. Сохраняет статус; у групп обновляет название и аватар.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "chat_id": {
            "type": "string",
            "pattern": "^-?[1-9]\\d{0,19}$"
          },
          "chat_type": {
            "type": "string",
            "enum": [
              "private",
              "group",
              "supergroup",
              "channel"
            ]
          }
        },
        "required": [
          "project_id",
          "token_id",
          "chat_id",
          "chat_type"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "dialogs",
          "effect": "external",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "dialogs",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "token_id": 1,
        "chat_id": "1",
        "chat_type": "private"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_clear_bot_logs",
      "section": "logs",
      "description": "Очищает live-логи выбранного бота из базы и буфера. История запусков сохраняется. Необратимо.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          }
        },
        "required": [
          "project_id",
          "token_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "logs",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": true,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "logs",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_clear_dialog_history",
      "section": "dialogs",
      "description": "Удаляет сохранённую историю пользователя из приложения; не удаляет сообщения в Telegram.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "user_id": {
            "type": "string",
            "pattern": "^[1-9]\\d{0,19}$"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "user_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "dialogs",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": true,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "dialogs",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_clear_table_rows",
      "section": "tables",
      "description": "Удалить все строки таблицы. Нужен confirm: true, иначе запрос не отправляется.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "confirm": {
            "type": "boolean"
          }
        },
        "required": [
          "project_id",
          "table_id",
          "confirm"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "destructive": true,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "confirm": false
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_clear_users",
      "section": "users",
      "description": "Атомарно удаляет всех пользователей и сообщения выбранного бота. Необратимо; не изменяет Telegram. Возвращает подтверждённое число удалённых записей.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          }
        },
        "required": [
          "project_id",
          "token_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "users",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": true,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "users",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_compare_analytics",
      "section": "analytics",
      "description": "Сравнивает временные метрики в одном снимке БД. previous — предыдущее окно той же длительности; explicit — compare_from/compare_to. Один источник обоих окон. absolute_change и percent_change; при нулевой базе и ненулевом результате процент null. Premium и языки не являются историческими метриками.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "metric": {
            "type": "string",
            "enum": [
              "registrations",
              "messages",
              "active_users"
            ]
          },
          "period": {
            "type": "string",
            "enum": [
              "1h",
              "3h",
              "24h",
              "7d",
              "30d",
              "12w",
              "12m"
            ]
          },
          "from": {
            "type": "string",
            "maxLength": 40,
            "description": "Включённая ISO-дата с часовым поясом; требует to, исключает period."
          },
          "to": {
            "type": "string",
            "maxLength": 40,
            "description": "Исключённая ISO-дата с часовым поясом."
          },
          "step": {
            "type": "string",
            "enum": [
              "1m",
              "5m",
              "1h",
              "1d",
              "7d",
              "30d"
            ],
            "description": "Независимый фиксированный шаг; 30d — 30 суток, до 500 точек."
          },
          "comparison": {
            "type": "string",
            "enum": [
              "previous",
              "explicit"
            ],
            "default": "previous"
          },
          "compare_from": {
            "type": "string",
            "maxLength": 40
          },
          "compare_to": {
            "type": "string",
            "maxLength": 40
          }
        },
        "required": [
          "project_id",
          "metric"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "metric": "registrations",
        "comparison": "previous"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_connect_nodes",
      "section": "scenario",
      "description": "Соединить ноды (auto-transition, button-goto+branch, input-target) в проекте в БД живого приложения с обновлением холста (live). Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "from_id": {
            "type": "string"
          },
          "to_id": {
            "type": "string"
          },
          "branch": {
            "type": "string",
            "description": "id кнопки/ветки для portType=button-goto"
          },
          "port_type": {
            "type": "string",
            "enum": [
              "auto-transition",
              "trigger-next",
              "button-goto",
              "input-target"
            ]
          },
          "sheet_id": {
            "type": "string"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          }
        },
        "required": [
          "project_id",
          "from_id",
          "to_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "example": {
        "project_id": 1,
        "from_id": "1",
        "to_id": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_count_table_rows",
      "section": "tables",
      "description": "Сколько строк подходит под те же фильтры, что и db_find_table_rows.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "column_id": {
                  "type": "number",
                  "description": "Числовой id столбца из db_list_table_columns"
                },
                "operator": {
                  "type": "string",
                  "enum": [
                    "equals",
                    "not_equals",
                    "contains",
                    "starts_with",
                    "ends_with",
                    "filled",
                    "empty",
                    "greater_than",
                    "less_than"
                  ]
                },
                "value": {
                  "type": "string",
                  "maxLength": 500
                }
              },
              "required": [
                "column_id",
                "operator"
              ],
              "additionalProperties": false
            },
            "maxItems": 5
          }
        },
        "required": [
          "project_id",
          "table_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_create_analytics_expense",
      "section": "analytics",
      "description": "Создать: расходы. data совпадает с POST API. Все связанные ID проверяются в проекте. Ссылки bc_ постоянны; конфликт маршрута /start возвращает 409. Расход amount строкой, allocation=equal явно распределяет по day..untilDay. exchangeRateRubPerUsd — сохранённый ручной курс RUB за 1 USD.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          },
          "data": {
            "type": "object",
            "properties": {
              "placementId": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "amount": {
                "type": "string",
                "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,2})?$"
              },
              "currency": {
                "type": "string",
                "enum": [
                  "RUB",
                  "USD"
                ]
              },
              "day": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "untilDay": {
                "$ref": "#/properties/data/properties/day"
              },
              "allocation": {
                "type": "string",
                "enum": [
                  "single",
                  "equal"
                ],
                "default": "single"
              },
              "exchangeRateRubPerUsd": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^(0|[1-9]\\d{0,11})(\\.\\d{1,8})?$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "exchangeRateDate": {
                "anyOf": [
                  {
                    "$ref": "#/properties/data/properties/day"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "note": {
                "type": "string",
                "maxLength": 2000,
                "default": ""
              }
            },
            "required": [
              "placementId",
              "amount",
              "currency",
              "day"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "project_id",
          "data"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "data": {
          "placementId": 1,
          "amount": "1",
          "currency": "RUB",
          "day": "2026-01-01",
          "allocation": "single",
          "note": ""
        }
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_create_analytics_link",
      "section": "analytics",
      "description": "Создать: ссылки. data совпадает с POST API. Все связанные ID проверяются в проекте. Ссылки bc_ постоянны; конфликт маршрута /start возвращает 409. Расход amount строкой, allocation=equal явно распределяет по day..untilDay. exchangeRateRubPerUsd — сохранённый ручной курс RUB за 1 USD.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          },
          "data": {
            "type": "object",
            "properties": {
              "placementId": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "referrerId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[1-9]\\d{0,19}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "purpose": {
                "type": "string",
                "enum": [
                  "acquisition",
                  "referral",
                  "combined"
                ]
              }
            },
            "required": [
              "placementId"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "project_id",
          "data"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "data": {
          "placementId": 1
        }
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_create_analytics_placement",
      "section": "analytics",
      "description": "Создать: размещения. data совпадает с POST API. Все связанные ID проверяются в проекте. Ссылки bc_ постоянны; конфликт маршрута /start возвращает 409. Расход amount строкой, allocation=equal явно распределяет по day..untilDay. exchangeRateRubPerUsd — сохранённый ручной курс RUB за 1 USD.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          },
          "data": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "tokenId": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "sourceId": {
                "$ref": "#/properties/data/properties/tokenId"
              },
              "startsOn": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endsOn": {
                "anyOf": [
                  {
                    "$ref": "#/properties/data/properties/startsOn/anyOf/0"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "timezone": {
                "type": "string",
                "default": "Europe/Moscow"
              }
            },
            "required": [
              "name",
              "tokenId",
              "sourceId"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "project_id",
          "data"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_create_analytics_source",
      "section": "analytics",
      "description": "Создать: источники. data совпадает с POST API. Все связанные ID проверяются в проекте. Ссылки bc_ постоянны; конфликт маршрута /start возвращает 409. Расход amount строкой, allocation=equal явно распределяет по day..untilDay. exchangeRateRubPerUsd — сохранённый ручной курс RUB за 1 USD.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          },
          "data": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "kind": {
                "type": "string",
                "enum": [
                  "telegram",
                  "website",
                  "social",
                  "other"
                ],
                "default": "other"
              },
              "url": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "project_id",
          "data"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "data": {
          "name": "1",
          "kind": "other"
        }
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_create_bot_env",
      "section": "bots",
      "description": "Сохраняет новую пользовательскую ENV. Значение не возвращается. Для применения требуется перезапуск.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[A-Z][A-Z0-9_]*$"
          },
          "value": {
            "type": "string",
            "maxLength": 65536
          },
          "isSecret": {
            "type": "number",
            "enum": [
              0,
              1
            ],
            "default": 1
          }
        },
        "required": [
          "project_id",
          "token_id",
          "key",
          "value"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "bots",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "bots",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_create_checkpoint",
      "section": "versions",
      "description": "Создаёт именованный чекпоинт текущего сохранённого сценария без его перезаписи. Подтверждает чтением версии; повтор создаёт ещё одну версию.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          }
        },
        "required": [
          "project_id",
          "message"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false,
        "idempotentHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "versions",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "versions",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "message": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_create_project",
      "section": "projects",
      "description": "Создать новый проект с дефолтным сценарием (/start → приветствие) в БД живого приложения. Возвращает id нового проекта.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Название нового проекта"
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "UUID одного намерения; сохраните для безопасного повтора"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "projects",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "projects",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "name": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_create_table",
      "section": "tables",
      "description": "Создать пользовательскую таблицу. Имя _content зарезервировано.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "Один UUID на попытку. С ним результат — квитанция ID, данные перечитайте отдельно. Повторите тот же UUID при потере ответа; unknown нельзя выполнять заново автоматически."
          }
        },
        "required": [
          "project_id",
          "name"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "name": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_create_template",
      "section": "templates",
      "description": "Сохраняет личный шаблон. ownerId и featured назначает сервер; публикация isPublic имеет внешний эффект.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "data": {},
          "category": {
            "type": "string",
            "enum": [
              "custom",
              "business",
              "entertainment",
              "education",
              "utility",
              "games",
              "official",
              "community"
            ],
            "default": "custom"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "isPublic": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "default": 0
          },
          "difficulty": {
            "type": "string",
            "enum": [
              "easy",
              "medium",
              "hard"
            ],
            "default": "easy"
          },
          "authorId": {
            "type": [
              "string",
              "null"
            ]
          },
          "authorName": {
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "type": "string",
            "default": "1.0.0"
          },
          "previewImage": {
            "type": [
              "string",
              "null"
            ]
          },
          "language": {
            "type": "string",
            "enum": [
              "ru",
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "zh",
              "ja",
              "ko"
            ],
            "default": "ru"
          },
          "requiresToken": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "default": 0
          },
          "complexity": {
            "type": "number",
            "minimum": 1,
            "maximum": 10,
            "default": 1
          },
          "estimatedTime": {
            "type": "number",
            "minimum": 1,
            "maximum": 120,
            "default": 5
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true,
        "idempotentHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "templates",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "templates",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "name": "1",
        "category": "custom",
        "isPublic": 0,
        "difficulty": "easy",
        "language": "ru",
        "requiresToken": 0,
        "complexity": 1,
        "estimatedTime": 5
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_delete_bot_env",
      "section": "bots",
      "description": "Удаляет пользовательскую ENV выбранного бота. Для применения требуется перезапуск.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "variable_id": {
            "$ref": "#/properties/project_id"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "variable_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "bots",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": true,
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "bots",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "separate"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_delete_bot_token",
      "section": "runtime",
      "description": "Удалить токен бота из проекта (НЕОБРАТИМО). ТРЕБУЕТ confirm: true. Доступен владельцу и коллабораторам проекта. Останавливает бота и шлёт WS token-deleted. Эквивалент DELETE /api/projects/:projectId/tokens/:tokenId.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "ID проекта"
          },
          "token_id": {
            "type": "number",
            "description": "ID токена из db_list_bot_tokens"
          },
          "confirm": {
            "type": "boolean",
            "description": "Обязательное подтверждение необратимого удаления"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "confirm"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "runtime",
          "effect": "external",
          "destructive": true,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "runtime",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "token_id": 1,
        "confirm": false
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_delete_broadcast",
      "section": "broadcasts",
      "description": "Удаляет рассылку и пытается удалить связанные отправленные сообщения Telegram. Необратимо; изучите частичные результаты.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "resource_id": {
            "$ref": "#/properties/project_id"
          }
        },
        "required": [
          "project_id",
          "resource_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "broadcasts",
          "effect": "external",
          "completionMode": "immediate",
          "destructive": true,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "broadcasts",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_delete_campaign",
      "section": "broadcasts",
      "description": "Удаляет рассылку и пытается удалить связанные отправленные сообщения Telegram. Необратимо; изучите частичные результаты.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "resource_id": {
            "$ref": "#/properties/project_id"
          }
        },
        "required": [
          "project_id",
          "resource_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "broadcasts",
          "effect": "external",
          "completionMode": "immediate",
          "destructive": true,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "broadcasts",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_delete_dialog_message",
      "section": "dialogs",
      "description": "Удаляет сообщение из Telegram и сохранённой истории. Необратимо.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "message_id": {
            "$ref": "#/properties/project_id"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "message_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "dialogs",
          "effect": "external",
          "completionMode": "immediate",
          "destructive": true,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "dialogs",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_delete_project",
      "section": "projects",
      "description": "Удалить проект целиком (НЕОБРАТИМО): останавливает бота и удаляет все связанные данные. Требует confirm: true.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "confirm": {
            "type": "boolean",
            "description": "Обязательное подтверждение необратимого удаления"
          }
        },
        "required": [
          "project_id",
          "confirm"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "projects",
          "effect": "write",
          "destructive": true,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "projects",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "confirm": false
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_delete_project_files",
      "section": "files",
      "description": "Удаляет записи uploaded и пытается удалить физические объекты. При ошибках возвращает partial с отдельными счётчиками. Для incoming/outgoing удаляет сохранённые сообщения, содержащие файлы, а не сообщения Telegram.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/properties/project_id"
                },
                "source": {
                  "type": "string",
                  "enum": [
                    "incoming",
                    "outgoing",
                    "uploaded"
                  ]
                }
              },
              "required": [
                "id",
                "source"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 100
          }
        },
        "required": [
          "project_id",
          "items"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "files",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": true,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "files",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_delete_table",
      "section": "tables",
      "description": "Удалить таблицу. Нужен confirm: true, иначе запрос не отправляется. _content удалить нельзя.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "confirm": {
            "type": "boolean"
          }
        },
        "required": [
          "project_id",
          "table_id",
          "confirm"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "destructive": true,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "confirm": false
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_delete_table_column",
      "section": "tables",
      "description": "Удалить столбец. Нужен confirm: true, иначе запрос не отправляется.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "column_id": {
            "type": "number"
          },
          "confirm": {
            "type": "boolean"
          }
        },
        "required": [
          "project_id",
          "table_id",
          "column_id",
          "confirm"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "destructive": true,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "column_id": 1,
        "confirm": false
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_delete_table_row",
      "section": "tables",
      "description": "Удалить строку. Нужен confirm: true, иначе запрос не отправляется.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "row_id": {
            "type": "number"
          },
          "confirm": {
            "type": "boolean"
          }
        },
        "required": [
          "project_id",
          "table_id",
          "row_id",
          "confirm"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "destructive": true,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "row_id": 1,
        "confirm": false
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_delete_template",
      "section": "templates",
      "description": "Удаляет собственный шаблон. Необратимо.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "template_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "template_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "templates",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": true,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "templates",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "template_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_delete_user",
      "section": "users",
      "description": "Удаляет сохранённые данные пользователя выбранного бота. Не блокирует пользователя в Telegram. Необратимо.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "user_id": {
            "type": "string",
            "pattern": "^[1-9]\\d{0,19}$"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "user_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "users",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": true,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "users",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_delete_version",
      "section": "versions",
      "description": "Удалить одну версию проекта из истории в БД (НЕОБРАТИМО). Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "version_id": {
            "type": "number",
            "description": "ID версии из db_list_versions"
          }
        },
        "required": [
          "project_id",
          "version_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "versions",
          "effect": "write",
          "destructive": true,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "versions",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "version_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_disconnect_nodes",
      "section": "scenario",
      "description": "Снять переход между нодами в проекте в БД живого приложения с обновлением холста (live). Без branch снимает все рёбра from→to; с branch — только указанную кнопку/ветку. Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "from_id": {
            "type": "string"
          },
          "to_id": {
            "type": "string"
          },
          "branch": {
            "type": "string",
            "description": "id кнопки/ветки — снять только её"
          },
          "sheet_id": {
            "type": "string"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          }
        },
        "required": [
          "project_id",
          "from_id",
          "to_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "example": {
        "project_id": 1,
        "from_id": "1",
        "to_id": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_duplicate_node",
      "section": "scenario",
      "description": "Дублировать ноду на том же листе в БД живого приложения с обновлением холста (live). Копия получает новый id и смещённую позицию; исходящие связи сохраняются как у оригинала. Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "node_id": {
            "type": "string",
            "description": "ID дублируемой ноды"
          },
          "position": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y"
            ],
            "additionalProperties": false,
            "description": "Позиция копии (по умолчанию смещение +40/+40 от оригинала)"
          },
          "sheet_id": {
            "type": "string",
            "description": "ID листа (по умолчанию активный/первый)"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          }
        },
        "required": [
          "project_id",
          "node_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "example": {
        "project_id": 1,
        "node_id": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_duplicate_project",
      "section": "projects",
      "description": "Дублировать проект целиком (полная копия сценария со всеми листами и связями) в БД живого приложения. Bot token НЕ копируется — копия создаётся без токена. Опционально имя копии (по умолчанию «{имя источника} (копия)»). Возвращает id новой копии.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "source_project_id": {
            "type": "number",
            "description": "ID проекта-источника"
          },
          "name": {
            "type": "string",
            "description": "Имя копии (по умолчанию «{имя} (копия)»)"
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "UUID одного намерения; сохраните для безопасного повтора"
          }
        },
        "required": [
          "source_project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "projects",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "projects",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "source_project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_duplicate_sheet",
      "section": "sheets",
      "description": "Дублировать лист со всеми нодами в БД живого приложения с обновлением холста (live). Копия получает суффикс «(копия)», новые id нод/веток, внутренние связи ремаппятся на копии, лист становится активным. Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "sheet_id": {
            "type": "string",
            "description": "ID дублируемого листа"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          }
        },
        "required": [
          "project_id",
          "sheet_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "sheets",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "sheets",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "example": {
        "project_id": 1,
        "sheet_id": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_edit_broadcast",
      "section": "broadcasts",
      "description": "Изменяет текст уже отправленных сообщений рассылки в Telegram. Возможны частичные результаты.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "resource_id": {
            "$ref": "#/properties/project_id"
          },
          "messageText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        },
        "required": [
          "project_id",
          "resource_id",
          "messageText"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "broadcasts",
          "effect": "external",
          "completionMode": "immediate",
          "destructive": true,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "broadcasts",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_edit_campaign",
      "section": "broadcasts",
      "description": "Изменяет текст уже отправленных сообщений рассылки в Telegram. Возможны частичные результаты.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "resource_id": {
            "$ref": "#/properties/project_id"
          },
          "messageText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        },
        "required": [
          "project_id",
          "resource_id",
          "messageText"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "broadcasts",
          "effect": "external",
          "completionMode": "immediate",
          "destructive": true,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "broadcasts",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_edit_dialog_message",
      "section": "dialogs",
      "description": "Изменяет отправленное сообщение Telegram и сохранённую историю.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "message_id": {
            "$ref": "#/properties/project_id"
          },
          "messageText": {
            "type": "string",
            "maxLength": 4096,
            "default": ""
          },
          "buttons": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "goto",
                    "command",
                    "url",
                    "contact",
                    "location",
                    "selection",
                    "complete",
                    "default",
                    "copy_text",
                    "web_app",
                    "request_managed_bot",
                    "pay"
                  ],
                  "default": "goto"
                },
                "copyText": {
                  "type": "string"
                },
                "webAppUrl": {
                  "type": "string"
                },
                "target": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "requestContact": {
                  "type": "boolean"
                },
                "requestLocation": {
                  "type": "boolean"
                },
                "buttonType": {
                  "type": "string",
                  "enum": [
                    "normal",
                    "option",
                    "complete"
                  ],
                  "default": "normal"
                },
                "skipDataCollection": {
                  "type": "boolean",
                  "default": false
                },
                "hideAfterClick": {
                  "type": "boolean",
                  "default": false
                },
                "customCallbackData": {
                  "type": "string"
                },
                "style": {
                  "type": "string",
                  "enum": [
                    "primary",
                    "success",
                    "danger"
                  ]
                },
                "suggestedBotName": {
                  "type": "string"
                },
                "suggestedBotUsername": {
                  "type": "string"
                },
                "selectionGroup": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "text"
              ],
              "additionalProperties": false
            },
            "maxItems": 100,
            "default": []
          },
          "buttonsPerRow": {
            "type": "integer",
            "minimum": 0,
            "maximum": 8,
            "default": 0
          }
        },
        "required": [
          "project_id",
          "token_id",
          "message_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "dialogs",
          "effect": "external",
          "completionMode": "immediate",
          "destructive": true,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "dialogs",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_edit_table_cells",
      "section": "tables",
      "description": "Атомарно сохранить 1–5000 ячеек с before/after. При конфликте исходного значения HTTP 409 и ни одна ячейка не записана. Для _content меняется и сценарий. Возвращает сохранённые строки; доставка обновления интерфейсу отдельно не подтверждается.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "table_id": {
            "$ref": "#/properties/project_id"
          },
          "edits": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rowId": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                "columnId": {
                  "type": "string",
                  "pattern": "^[1-9]\\d*$"
                },
                "before": {
                  "type": "string",
                  "maxLength": 1000000
                },
                "after": {
                  "type": "string",
                  "maxLength": 10000
                }
              },
              "required": [
                "rowId",
                "columnId",
                "before",
                "after"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 5000
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "Включает постоянный журнал и ответ-квитанцию ID вместо строк."
          }
        },
        "required": [
          "project_id",
          "table_id",
          "edits"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false,
        "idempotentHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_export_bot_logs",
      "section": "logs",
      "description": "Экспорт периода логов в локальный файл txt/jsonl, до 5000 строк. Возвращает путь и признак неполного экспорта.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "from": {
            "type": "string",
            "format": "date-time"
          },
          "to": {
            "type": "string",
            "format": "date-time"
          },
          "text": {
            "type": "string",
            "maxLength": 500
          },
          "type": {
            "type": "string",
            "enum": [
              "stdout",
              "stderr",
              "status"
            ]
          },
          "before_id": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "format": {
            "type": "string",
            "enum": [
              "txt",
              "jsonl"
            ]
          },
          "max_rows": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5000
          }
        },
        "required": [
          "project_id",
          "token_id",
          "from",
          "to"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "logs",
          "effect": "file",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "logs",
        "effect": "file",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "token_id": 1,
        "from": "2026-01-01T00:00:00Z",
        "to": "2026-01-01T00:00:00Z"
      },
      "transports": [
        "stdio"
      ]
    },
    {
      "id": "db_export_project",
      "section": "projects",
      "description": "Экспортировать проект в готовый Python-код бота (bot.py): сохраняет файл на диск в каталог bots/ и возвращает путь, размер, число строк и превью (а не весь код — чтобы не раздувать контекст). Полный код — флаг inline:true или чтение файла.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "save_path": {
            "type": "string",
            "description": "Папка или путь к .py внутри bots/ (по умолчанию bots/exported/project_<id>/bot.py)"
          },
          "inline": {
            "type": "boolean",
            "description": "Вернуть и полный код в ответе (по умолчанию только путь+превью)"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "projects",
          "effect": "file",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "projects",
        "effect": "file",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "stdio"
      ]
    },
    {
      "id": "db_export_project_tables",
      "section": "tables",
      "description": "Выгрузить все пользовательские таблицы в JSON версии 1 или JSONL во временный каталог.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "jsonl"
            ]
          }
        },
        "required": [
          "project_id",
          "format"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "file",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "file",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "format": "json"
      },
      "transports": [
        "stdio"
      ]
    },
    {
      "id": "db_export_table",
      "section": "tables",
      "description": "Выгрузить таблицу в csv, json или jsonl во временный закрытый каталог. Путь назначает сервер.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "format": {
            "type": "string",
            "enum": [
              "csv",
              "json",
              "jsonl"
            ]
          }
        },
        "required": [
          "project_id",
          "table_id",
          "format"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "file",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "file",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "format": "csv"
      },
      "transports": [
        "stdio"
      ]
    },
    {
      "id": "db_export_table_data",
      "section": "tables",
      "description": "Получить встроенный JSON одной страницы таблицы версии 1 без записи файла. До 200 строк; complete=false означает неполную выгрузку, next_offset указывает продолжение. Между страницами нет общего снимка. Для полного файла используйте локальный stdio export.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "table_id": {
            "$ref": "#/properties/project_id"
          },
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          }
        },
        "required": [
          "project_id",
          "table_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_find_inbound",
      "section": "scenario",
      "description": "Найти все входящие ссылки на ноду: кнопки, автопереходы, ветки и служебные связи. Read-only; цель может уже отсутствовать.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "node_id": {
            "type": "string",
            "description": "ID ноды, на которую ищутся ссылки"
          }
        },
        "required": [
          "project_id",
          "node_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "node_id": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_find_nodes",
      "section": "scenario",
      "description": "Поиск нод по подстроке (регистронезависимо): текст/команда/id и поля кнопок (url, copyText, text). Read-only. Адресация по projectId из URL",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "query": {
            "type": "string",
            "description": "Подстрока для поиска (регистронезависимо; в т.ч. URL кнопки)"
          },
          "type": {
            "type": "string",
            "description": "Фильтр по типу ноды (точное совпадение)"
          },
          "sheet_id": {
            "type": "string",
            "description": "ID листа (по умолчанию все листы)"
          }
        },
        "required": [
          "project_id",
          "query"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "query": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_find_table_rows",
      "section": "tables",
      "description": "Поиск строк: до 5 условий, без произвольного SQL. Операторы equals, not_equals, contains, starts_with, ends_with, filled, empty, greater_than, less_than.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "column_id": {
                  "type": "number",
                  "description": "Числовой id столбца из db_list_table_columns"
                },
                "operator": {
                  "type": "string",
                  "enum": [
                    "equals",
                    "not_equals",
                    "contains",
                    "starts_with",
                    "ends_with",
                    "filled",
                    "empty",
                    "greater_than",
                    "less_than"
                  ]
                },
                "value": {
                  "type": "string",
                  "maxLength": 500
                }
              },
              "required": [
                "column_id",
                "operator"
              ],
              "additionalProperties": false
            },
            "maxItems": 5
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          },
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "sort": {
            "type": "string"
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "number"
            }
          }
        },
        "required": [
          "project_id",
          "table_id",
          "filters"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_find_tables",
      "section": "tables",
      "description": "Найти пользовательские таблицы по части имени.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "query": {
            "type": "string"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": [
          "project_id",
          "query"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "query": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_acquisition_report",
      "section": "analytics",
      "description": "Рекламные расходы и результаты размещений из единого API. Без from/to — весь срок. decimal-строки RUB/USD не складываются без ручного RUB-за-USD курса. costPerUser=null и reason объясняют неполную историю, частичный день, неизвестные расходы/курс или отсутствие новых. starts — запуск бота, не клик. includeSources=\"true\" добавляет обнаруженные источники без размещений: placementId=null, стабильный rowKey, расход null.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          },
          "includeSources": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          },
          "tokenId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "from": {
            "type": "string",
            "format": "date-time"
          },
          "to": {
            "type": "string",
            "format": "date-time"
          },
          "timezone": {
            "type": "string",
            "default": "Europe/Moscow"
          },
          "currency": {
            "type": "string",
            "enum": [
              "RUB",
              "USD"
            ],
            "default": "RUB"
          },
          "placementId": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "timezone": "Europe/Moscow",
        "currency": "RUB"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_active_users_chart",
      "section": "analytics",
      "description": "Карточка «Активные пользователи»: split total — общий ряд, cohort — новички и вернувшиеся по слотам. До 500 точек. Итоги окна уникальны и не равны сумме точек. Накопление не поддерживается. Без token_id все боты проекта.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "period": {
            "type": "string",
            "enum": [
              "1h",
              "3h",
              "24h",
              "7d",
              "30d",
              "12w",
              "12m"
            ]
          },
          "from": {
            "type": "string",
            "maxLength": 40,
            "description": "Включённая ISO-дата с часовым поясом; требует to, исключает period."
          },
          "to": {
            "type": "string",
            "maxLength": 40,
            "description": "Исключённая ISO-дата с часовым поясом."
          },
          "step": {
            "type": "string",
            "enum": [
              "1m",
              "5m",
              "1h",
              "1d",
              "7d",
              "30d"
            ],
            "description": "Независимый фиксированный шаг; 30d — 30 суток, до 500 точек."
          },
          "split": {
            "type": "string",
            "enum": [
              "total",
              "cohort"
            ]
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_active_users_summary",
      "section": "analytics",
      "description": "Уникальные активные пользователи, новички и вернувшиеся за окно. Один user_id у нескольких ботов считается один раз. Итоги не суммируются по дням. Период по умолчанию 30d; 12w — 84 дня. Доступ проверяется API проекта.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "period": {
            "type": "string",
            "enum": [
              "1h",
              "3h",
              "24h",
              "7d",
              "30d",
              "12w",
              "12m"
            ]
          },
          "from": {
            "type": "string",
            "maxLength": 40,
            "description": "Включённая ISO-дата с часовым поясом; требует to, исключает period."
          },
          "to": {
            "type": "string",
            "maxLength": 40,
            "description": "Исключённая ISO-дата с часовым поясом."
          },
          "step": {
            "type": "string",
            "enum": [
              "1m",
              "5m",
              "1h",
              "1d",
              "7d",
              "30d"
            ],
            "description": "Независимый фиксированный шаг; 30d — 30 суток, до 500 точек."
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_activity_leaders",
      "section": "analytics",
      "description": "Получить рейтинги активности пользователей и групп из API. granularity: 1m=час, 5m=3 часа, 1h=сутки, 1w=7 дней, 1d=30 дней, 7d=84 дня, 30d=365 дней. Без token_id — проект целиком.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "granularity": {
            "type": "string",
            "enum": [
              "1m",
              "5m",
              "1h",
              "1w",
              "1d",
              "7d",
              "30d"
            ]
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_analytics_exchange_rate",
      "section": "analytics",
      "description": "Получить бесплатный официальный курс USD/RUB Банка России на учётный день. rubPerUsd — рублей за один доллар, effectiveDay — фактическая дата действия. Доступ к проекту обязателен. Не сохраняет и не пересчитывает расходы. Для оплаты передайте рублёвый курс и effectiveDay через exchangeRateRubPerUsd и exchangeRateDate.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          },
          "day": {
            "type": "string",
            "format": "date",
            "description": "Учётный день YYYY-MM-DD, не позже сегодня."
          }
        },
        "required": [
          "project_id",
          "day"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "day": "2026-01-01"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_analytics_history",
      "section": "analytics",
      "description": "История изменений источника, размещения, ссылки или расхода: автор, время, beforeData/afterData. Доступ проверяется HTTP API внутри проекта.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          },
          "resource": {
            "type": "string",
            "enum": [
              "sources",
              "placements",
              "links",
              "expenses"
            ]
          },
          "resource_id": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "project_id",
          "resource",
          "resource_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "resource": "sources",
        "resource_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_analytics_range",
      "section": "analytics",
      "description": "Точные UTC [from,to) и независимый шаг для registrations/messages/active_users; period либо from+to. 12w=84 дня,12m=365. Итоги active_users уникальны. Дневные агрегаты только для границ в полночь и шагов от суток; иначе сохранённые сообщения с ограничениями очистки.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "metric": {
            "type": "string",
            "enum": [
              "registrations",
              "messages",
              "active_users"
            ]
          },
          "period": {
            "type": "string",
            "enum": [
              "1h",
              "3h",
              "24h",
              "7d",
              "30d",
              "12w",
              "12m"
            ]
          },
          "from": {
            "type": "string",
            "maxLength": 40,
            "description": "Включённая ISO-дата с часовым поясом; требует to, исключает period."
          },
          "to": {
            "type": "string",
            "maxLength": 40,
            "description": "Исключённая ISO-дата с часовым поясом."
          },
          "step": {
            "type": "string",
            "enum": [
              "1m",
              "5m",
              "1h",
              "1d",
              "7d",
              "30d"
            ],
            "description": "Независимый фиксированный шаг; 30d — 30 суток, до 500 точек."
          }
        },
        "required": [
          "project_id",
          "metric"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "metric": "registrations"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_analytics_v2",
      "section": "analytics",
      "description": "Согласованный снимок подтверждённой аналитики v2: новые/активные/вернувшиеся, сообщения отдельно от callback и служебных, топы и источники. restored_users — первые сохранённые действия в окне при неизвестной фактической первой дате; это отдельная серия, не новые и не знаменатель CPA. audience.first_history_status описывает полноту окна. unknown_first_users и total_users — всё время. period либо from+to, до 500 точек. Возвращает as_of, revision, coverage и previous. Обычная переписка группы не является использованием бота; неполная история не означает ноль.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "Без параметра — весь проект, люди дедуплицируются между ботами."
          },
          "period": {
            "type": "string",
            "enum": [
              "1h",
              "3h",
              "24h",
              "7d",
              "30d",
              "12w",
              "12m",
              "all"
            ],
            "description": "Либо period, либо from+to. По умолчанию 30d."
          },
          "from": {
            "type": "string",
            "format": "date-time"
          },
          "to": {
            "type": "string",
            "format": "date-time"
          },
          "step": {
            "type": "string",
            "enum": [
              "1m",
              "5m",
              "1h",
              "1d",
              "7d",
              "30d"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "IANA, например Europe/Moscow."
          },
          "comparison": {
            "type": "string",
            "const": "previous"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_bot_admin_ids",
      "section": "bots",
      "description": "Читает сохранённые ID администраторов бота. Не выдаёт новых прав; запись административных ID намеренно не открыта.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "bots",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "bots",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_bot_log",
      "section": "logs",
      "description": "Читает запись лога по ID с проверкой доступа к проекту записи.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "log_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "log_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "logs",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "logs",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "log_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_bot_settings",
      "section": "bots",
      "description": "Читает настройки и публичный профиль бота. Токены, webhook secret и userbot credentials исключены.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          }
        },
        "required": [
          "project_id",
          "token_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "bots",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "bots",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_broadcast",
      "section": "broadcasts",
      "description": "Читает подробности и состояние выполнения. Повторяйте чтение для наблюдения за фоновой отправкой.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "resource_id": {
            "$ref": "#/properties/project_id"
          }
        },
        "required": [
          "project_id",
          "resource_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "broadcasts",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "broadcasts",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_campaign",
      "section": "broadcasts",
      "description": "Читает подробности и состояние выполнения. Повторяйте чтение для наблюдения за фоновой отправкой.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "resource_id": {
            "$ref": "#/properties/project_id"
          }
        },
        "required": [
          "project_id",
          "resource_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "broadcasts",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "broadcasts",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_chat_access_check",
      "section": "dialogs",
      "description": "Возвращает активную или последнюю массовую проверку доступов выбранного бота. Повторяйте, пока status равен pending, running или cancelling. job равен null, если проверок ещё не было. Не вызывает Telegram.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "project_id",
          "token_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "dialogs",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "dialogs",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "token_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_dialog_messages",
      "section": "dialogs",
      "description": "Читает сохранённые сообщения конкретного чата выбранного бота. Первая страница — последние сообщения, курсор ведёт к более старым; внутри страницы хронологический порядок. Контекст групп доступен только для private и содержит лишь входящие сообщения этого пользователя. Не вызывает Telegram; история ограничена сроком хранения.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "chat_id": {
            "type": "string",
            "pattern": "^-?[1-9]\\d{0,19}$"
          },
          "chat_type": {
            "type": "string",
            "enum": [
              "private",
              "group",
              "supergroup",
              "channel"
            ]
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 10
          },
          "cursor": {
            "type": "string",
            "maxLength": 2048
          },
          "include_group_context": {
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "project_id",
          "token_id",
          "chat_id",
          "chat_type"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "dialogs",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "dialogs",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "token_id": 1,
        "chat_id": "1",
        "chat_type": "private",
        "limit": 10,
        "include_group_context": false
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_groups_chart",
      "section": "analytics",
      "description": "Точки карточки «Группы»: когда панель впервые сохранила группу. Периоды как у пользователей, по умолчанию 30d. mode period — новые группы по слотам, cumulative — накопление до текущего числа. token_id обязателен.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "period": {
            "type": "string",
            "enum": [
              "1h",
              "3h",
              "24h",
              "7d",
              "30d",
              "12w",
              "12m"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "period",
              "cumulative"
            ]
          }
        },
        "required": [
          "project_id",
          "token_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "token_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_groups_summary",
      "section": "analytics",
      "description": "Текущие числа карточки «Группы» одного бота: всего, доступны и исключили. token_id обязателен, группы разных ботов не смешиваются. Каналы не входят.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "project_id",
          "token_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "token_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_launch_logs",
      "section": "logs",
      "description": "Логи одного запуска по launch_id, до 500 строк, более старые страницы через before_id.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "launch_id": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          },
          "before_id": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "launch_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "logs",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "logs",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "launch_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_messages_chart",
      "section": "analytics",
      "description": "Точки карточки «Активность сообщений». mode: period или cumulative (накопление от нуля за выбранный период). split: total или direction (incoming — user, outgoing — остальные типы). До 500 точек. 12w — 84 дня; 12m — 365 дней. Авторизация через API проекта.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "period": {
            "type": "string",
            "enum": [
              "1h",
              "3h",
              "24h",
              "7d",
              "30d",
              "12w",
              "12m"
            ]
          },
          "from": {
            "type": "string",
            "maxLength": 40,
            "description": "Включённая ISO-дата с часовым поясом; требует to, исключает period."
          },
          "to": {
            "type": "string",
            "maxLength": 40,
            "description": "Исключённая ISO-дата с часовым поясом."
          },
          "step": {
            "type": "string",
            "enum": [
              "1m",
              "5m",
              "1h",
              "1d",
              "7d",
              "30d"
            ],
            "description": "Независимый фиксированный шаг; 30d — 30 суток, до 500 точек."
          },
          "mode": {
            "type": "string",
            "enum": [
              "period",
              "cumulative"
            ]
          },
          "split": {
            "type": "string",
            "enum": [
              "total",
              "direction"
            ]
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_messages_summary",
      "section": "analytics",
      "description": "Сводка активности сообщений: сохранённая история, сообщения за период и направления, среднее сохранённых сообщений на текущую запись bot_users. Очистка влияет на историю и короткие окна; длинные окна используют дневные агрегаты. Без token_id все боты. Период по умолчанию 30d. Доступ проверяется по проекту.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "period": {
            "type": "string",
            "enum": [
              "1h",
              "3h",
              "24h",
              "7d",
              "30d",
              "12w",
              "12m"
            ]
          },
          "from": {
            "type": "string",
            "maxLength": 40,
            "description": "Включённая ISO-дата с часовым поясом; требует to, исключает period."
          },
          "to": {
            "type": "string",
            "maxLength": 40,
            "description": "Исключённая ISO-дата с часовым поясом."
          },
          "step": {
            "type": "string",
            "enum": [
              "1m",
              "5m",
              "1h",
              "1d",
              "7d",
              "30d"
            ],
            "description": "Независимый фиксированный шаг; 30d — 30 суток, до 500 точек."
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_node",
      "section": "scenario",
      "description": "Прочитать одну ноду целиком из БД живого приложения по id. Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "node_id": {
            "type": "string",
            "description": "ID искомой ноды"
          },
          "sheet_id": {
            "type": "string",
            "description": "ID листа (по умолчанию поиск по всем листам)"
          }
        },
        "required": [
          "project_id",
          "node_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "node_id": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_popular_buttons",
      "section": "analytics",
      "description": "Карточка «Топ кнопок»: до 10 меток по сохранённым нажатиям за период. Период по умолчанию 30d; 12w — 84 дня. returned_clicks — сумма топа, а не всех нажатий. История зависит от удаления сообщений. Без token_id все боты проекта. Доступ проверяет API проекта.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "period": {
            "type": "string",
            "enum": [
              "1h",
              "3h",
              "24h",
              "7d",
              "30d",
              "12w",
              "12m"
            ]
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_storage_quota",
      "section": "files",
      "description": "Читает квоту и использование хранилища проекта.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "files",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "files",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_table",
      "section": "tables",
      "description": "Таблица, столбцы (имя и числовой id) и сводка заполненности.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          }
        },
        "required": [
          "project_id",
          "table_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_table_chart",
      "section": "tables",
      "description": "Группы пользовательской таблицы для графика: количество, сумма, среднее, минимум или максимум. Не больше 50 групп. Не создаёт изображение. Таблица и столбцы должны принадлежать проекту.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "table_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "x_column_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "y_column_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "aggregation": {
            "type": "string",
            "enum": [
              "count",
              "sum",
              "avg",
              "min",
              "max"
            ],
            "description": "По умолчанию count. Для нечислового столбца сервер считает количество."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "date_column_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "������� ����; from/to."
          },
          "from": {
            "type": "string",
            "format": "date-time"
          },
          "to": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "project_id",
          "table_id",
          "x_column_id",
          "y_column_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "x_column_id": 1,
        "y_column_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_table_row",
      "section": "tables",
      "description": "Одна строка таблицы проекта.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "row_id": {
            "type": "number"
          }
        },
        "required": [
          "project_id",
          "table_id",
          "row_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "row_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_table_summary",
      "section": "tables",
      "description": "Число строк и сколько непустых ячеек в каждом столбце.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          }
        },
        "required": [
          "project_id",
          "table_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_template",
      "section": "templates",
      "description": "Читает доступный шаблон со сценарием.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "template_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "template_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "templates",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "templates",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "template_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_traffic_sources_chart",
      "section": "analytics",
      "description": "Динамика регистраций по текущему параметру источника. До 500 слотов и 20 отдельных источников; остальные в other_count. По умолчанию 30d, топ-10. Накопления и all нет. Без token_id все боты проекта. 12w — 84 дня, как в карточке источников.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "top_limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          },
          "period": {
            "type": "string",
            "enum": [
              "1h",
              "3h",
              "24h",
              "7d",
              "30d",
              "12w",
              "12m"
            ]
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_traffic_sources_summary",
      "section": "analytics",
      "description": "Доли источников трафика по записям bot_users: period all — текущая аудитория, остальные периоды — регистрации за окно. По умолчанию 30d, top_limit 10; остальные в other_count. Это не уникальные люди проекта и не переходы по ссылкам. API проверяет доступ.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "top_limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          },
          "period": {
            "type": "string",
            "enum": [
              "1h",
              "3h",
              "24h",
              "7d",
              "30d",
              "12w",
              "12m",
              "all"
            ]
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_user",
      "section": "users",
      "description": "Читает точную карточку пользователя выбранного бота, включая userData с ответами и переменными. Не скачивает аватар и не вызывает Telegram.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "user_id": {
            "type": "string",
            "pattern": "^[1-9]\\d{0,19}$"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "user_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "users",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "users",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_user_variables",
      "section": "users",
      "description": "Читает сохранённые переменные пользователей выбранного бота в виде колонок и строк. Результат ограничен limit, это не все пользователи.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000,
            "default": 200
          }
        },
        "required": [
          "project_id",
          "token_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "users",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "users",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_users_chart",
      "section": "analytics",
      "description": "Точки карточки «Всего пользователей». mode: period — регистрации по слотам, cumulative — накопление. group_by: total — общая аудитория, source — источники. Накопление источников начинается с нуля в выбранном периоде. Доступ проверяется API; период по умолчанию 30d.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "period": {
            "type": "string",
            "enum": [
              "1h",
              "3h",
              "24h",
              "7d",
              "30d",
              "12w",
              "12m"
            ]
          },
          "from": {
            "type": "string",
            "maxLength": 40,
            "description": "Включённая ISO-дата с часовым поясом; требует to, исключает period."
          },
          "to": {
            "type": "string",
            "maxLength": 40,
            "description": "Исключённая ISO-дата с часовым поясом."
          },
          "step": {
            "type": "string",
            "enum": [
              "1m",
              "5m",
              "1h",
              "1d",
              "7d",
              "30d"
            ],
            "description": "Независимый фиксированный шаг; 30d — 30 суток, до 500 точек."
          },
          "mode": {
            "type": "string",
            "enum": [
              "period",
              "cumulative"
            ]
          },
          "group_by": {
            "type": "string",
            "enum": [
              "total",
              "source"
            ]
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_users_languages",
      "section": "analytics",
      "description": "Карточка «Языки»: снимок сохранённой аудитории, до 20 крупнейших языков. Проценты среди всех записей с известным языком, не только топ-20. Без периода; неизвестные языки исключены. Без token_id все боты проекта; доступ проверяет API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_users_premium",
      "section": "analytics",
      "description": "Текущий снимок карточки Premium: Premium и обычные пользователи, количество и целые проценты. Читает сохранённые bot_users, без истории и периода; статус может устареть. Без token_id все боты проекта, один человек может учитываться у нескольких ботов. Доступ проверяется API проекта.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_users_summary",
      "section": "analytics",
      "description": "Записи пользователей, новые за период и аудитория до периода. В готовом периоде ещё текущий снимок: сколько людей писали лично, в группах и каналах, сколько заблокировали бота и сколько аккаунтов удалено. Это люди, не число чатов. Точный диапазон from/to снимок не включает. Без token_id все боты; один человек у разных ботов считается несколько раз. Период по умолчанию 30d.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "period": {
            "type": "string",
            "enum": [
              "1h",
              "3h",
              "24h",
              "7d",
              "30d",
              "12w",
              "12m"
            ]
          },
          "from": {
            "type": "string",
            "maxLength": 40,
            "description": "Включённая ISO-дата с часовым поясом; требует to, исключает period."
          },
          "to": {
            "type": "string",
            "maxLength": 40,
            "description": "Исключённая ISO-дата с часовым поясом."
          },
          "step": {
            "type": "string",
            "enum": [
              "1m",
              "5m",
              "1h",
              "1d",
              "7d",
              "30d"
            ],
            "description": "Независимый фиксированный шаг; 30d — 30 суток, до 500 точек."
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_get_version",
      "section": "versions",
      "description": "Читает сохранённый снимок версии без восстановления проекта.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "version_id": {
            "$ref": "#/properties/project_id"
          }
        },
        "required": [
          "project_id",
          "version_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "versions",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "versions",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_import_project_tables",
      "section": "tables",
      "description": "Прочитать общий JSON версии 1. Без confirm возвращает только превью. Запись и замена требуют confirm: true.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "path": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "create",
              "replace"
            ]
          },
          "confirm": {
            "type": "boolean"
          }
        },
        "required": [
          "project_id",
          "path",
          "mode"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "file",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "file",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "path": "1",
        "mode": "create"
      },
      "transports": [
        "stdio"
      ]
    },
    {
      "id": "db_import_table_file",
      "section": "tables",
      "description": "Импорт CSV или JSON из рабочего каталога или временной папки. Ссылки и чужие пути запрещены. replace требует confirm: true.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "path": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "append",
              "replace"
            ]
          },
          "confirm": {
            "type": "boolean"
          }
        },
        "required": [
          "project_id",
          "table_id",
          "path",
          "mode"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "file",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "file",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "path": "1",
        "mode": "append"
      },
      "transports": [
        "stdio"
      ]
    },
    {
      "id": "db_import_table_rows",
      "section": "tables",
      "description": "Импорт до 200 строк. mode append или replace. replace требует confirm: true до обращения к API.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "mode": {
            "type": "string",
            "enum": [
              "append",
              "replace"
            ]
          },
          "confirm": {
            "type": "boolean"
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              },
              "description": "Ключ — числовой id столбца строкой, значение — текст, пустая строка допустима"
            },
            "maxItems": 200
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "Один UUID на попытку. С ним результат — квитанция ID, данные перечитайте отдельно. Повторите тот же UUID при потере ответа; unknown нельзя выполнять заново автоматически."
          }
        },
        "required": [
          "project_id",
          "table_id",
          "mode",
          "rows"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "destructive": true,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "mode": "append",
        "rows": []
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_import_tables_data",
      "section": "tables",
      "description": "Перенести встроенный JSON таблиц версии 1 без файловых путей. Без confirm — только локальный preview (не проверка прав/конфликтов сервера). confirm=true сохраняет весь пакет через существующий API одной транзакцией. replace удаляет прежние строки; create тоже требует явного confirm. До 200 строк на таблицу.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "bundle": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "const": 1,
                "default": 1
              },
              "tables": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    },
                    "columns": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "minItems": 1
                    },
                    "columnSettings": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "displayName": {
                            "type": "string",
                            "maxLength": 255,
                            "default": ""
                          },
                          "dataType": {
                            "type": "string",
                            "enum": [
                              "text",
                              "number",
                              "date",
                              "boolean",
                              "link"
                            ],
                            "default": "text"
                          },
                          "required": {
                            "type": "boolean",
                            "default": false
                          },
                          "min": {
                            "type": "number"
                          },
                          "max": {
                            "type": "number"
                          },
                          "maxLength": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 10000,
                            "default": 10000
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 10000
                        }
                      },
                      "maxItems": 200
                    }
                  },
                  "required": [
                    "name",
                    "columns",
                    "rows"
                  ],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 50
              }
            },
            "required": [
              "tables"
            ],
            "additionalProperties": false
          },
          "mode": {
            "type": "string",
            "enum": [
              "create",
              "replace"
            ]
          },
          "confirm": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string",
            "format": "uuid",
            "description": "UUID попытки: результатом станет постоянная квитанция ID; unknown не повторять."
          }
        },
        "required": [
          "project_id",
          "bundle",
          "mode"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false,
        "idempotentHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": true,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "bundle": {
          "version": 1,
          "tables": [
            {
              "name": "1",
              "columns": [
                "1"
              ],
              "rows": []
            }
          ]
        },
        "mode": "create"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_analytics_expenses",
      "section": "analytics",
      "description": "Получить расходы проекта, включая архивные. Секретов бота и одноразовых login-кодов в ответе нет.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_analytics_links",
      "section": "analytics",
      "description": "Получить ссылки проекта, включая архивные. Секретов бота и одноразовых login-кодов в ответе нет.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_analytics_placements",
      "section": "analytics",
      "description": "Получить размещения проекта, включая архивные. Секретов бота и одноразовых login-кодов в ответе нет.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_analytics_sources",
      "section": "analytics",
      "description": "Получить источники проекта, включая архивные. Секретов бота и одноразовых login-кодов в ответе нет.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_bot_env",
      "section": "bots",
      "description": "Читает имена и метаданные ENV. Все значения исключены, включая несекретные; reveal отсутствует.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          }
        },
        "required": [
          "project_id",
          "token_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "bots",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "bots",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_bot_launches",
      "section": "logs",
      "description": "Страница истории запусков токена; before_id читает более старые запуски. Доступ проверяется по проекту.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "before_id": {
            "type": "integer",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "token_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "logs",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "logs",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "token_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_bot_tokens",
      "section": "runtime",
      "description": "Список токенов бота проекта (id/имя/username/флаги/messagesRetentionDays) БЕЗ самого токена. Нужен для получения token_id для db_bot_status/db_bot_logs/db_set_messages_retention.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "runtime",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "runtime",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_broadcast_campaigns",
      "section": "broadcasts",
      "description": "Читает кампании проекта и их текущие статусы.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "page": {
            "$ref": "#/properties/project_id",
            "default": 1
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 20
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "broadcasts",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "broadcasts",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "page": 1,
        "limit": 20
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_broadcasts",
      "section": "broadcasts",
      "description": "Читает страницу рассылок и их текущие статусы.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "page": {
            "$ref": "#/properties/project_id",
            "default": 1
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 20
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "broadcasts",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "broadcasts",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "page": 1,
        "limit": 20
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_connections",
      "section": "scenario",
      "description": "Граф связей проекта из БД живого приложения: рёбра from→to с типом (auto/button/branch/parallel/input/keyboard) и флагом broken. Read-only. Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_dialogs",
      "section": "dialogs",
      "description": "Список сохранённых диалогов бота: поиск по имени, названию, username и ID, пагинация, последнее сообщение и сохранённый доступ. Не проверяет Telegram; счётчики зависят от хранения истории.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "kind": {
            "type": "string",
            "enum": [
              "all",
              "users",
              "groups",
              "channels"
            ],
            "default": "all"
          },
          "search": {
            "type": "string",
            "maxLength": 200
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 10
          },
          "cursor": {
            "type": "string",
            "maxLength": 2048
          }
        },
        "required": [
          "project_id",
          "token_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "dialogs",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "dialogs",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "token_id": 1,
        "kind": "all",
        "limit": 10
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_nodes",
      "section": "scenario",
      "description": "Лёгкий список нод проекта из БД живого приложения: id, type, лист, краткая сводка (без полного data)",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "sheet_id": {
            "type": "string",
            "description": "ID листа (по умолчанию все листы)"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_project_files",
      "section": "files",
      "description": "Читает страницу файлов проекта с фильтрами. category обязателен; серверные пути не возвращаются.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "category": {
            "type": "string",
            "enum": [
              "all",
              "incoming",
              "outgoing",
              "uploaded"
            ]
          },
          "tokenId": {
            "$ref": "#/properties/project_id"
          },
          "page": {
            "$ref": "#/properties/project_id",
            "default": 1
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 50
          },
          "fileName": {
            "type": "string",
            "maxLength": 200
          },
          "mediaType": {
            "type": "string",
            "enum": [
              "photo",
              "video",
              "animation",
              "audio",
              "voice",
              "video_note",
              "document",
              "sticker",
              "cover"
            ]
          },
          "dateFrom": {
            "type": "string",
            "format": "date-time"
          },
          "dateTo": {
            "type": "string",
            "format": "date-time"
          },
          "sizeMin": {
            "type": "integer",
            "minimum": 0
          },
          "sizeMax": {
            "type": "integer",
            "minimum": 0
          },
          "uploadedBy": {
            "$ref": "#/properties/project_id"
          },
          "storageConfigId": {
            "type": "string",
            "maxLength": 200
          }
        },
        "required": [
          "project_id",
          "category"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "files",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "files",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "category": "all",
        "page": 1,
        "limit": 50
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_projects",
      "section": "projects",
      "description": "Список проектов владельца токена из БД живого приложения: id, name, число нод/листов, isArchivedForMe. БЕЗ project_id — единственный тул для дискавери. archived: false — активные (default), true — личный архив. Read-only.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "archived": {
            "type": "boolean",
            "description": "false — активные проекты (по умолчанию), true — только личный архив"
          }
        },
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "projects",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "projects",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {},
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_sheets",
      "section": "sheets",
      "description": "Лёгкий read-only список листов проекта из БД живого приложения: id, name, число нод",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "sheets",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "sheets",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_table_columns",
      "section": "tables",
      "description": "Столбцы таблицы: числовой id, имя и позиция. Ключи ячеек — эти id строками.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          }
        },
        "required": [
          "project_id",
          "table_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_table_rows",
      "section": "tables",
      "description": "Страница строк. limit по умолчанию 100, максимум 500. sort: id, row_index или column:<id>.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          },
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "sort": {
            "type": "string"
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "number"
            }
          }
        },
        "required": [
          "project_id",
          "table_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_tables",
      "section": "tables",
      "description": "Список пользовательских таблиц проекта. Системные таблицы пользователей и сообщений сюда не входят.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_templates",
      "section": "templates",
      "description": "Читает доступные пользователю публичные и личные шаблоны.",
      "inputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "type": "object",
        "properties": {}
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "templates",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "templates",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {},
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_unavailable_users",
      "section": "analytics",
      "description": "Люди выбранного бота с удалённым аккаунтом или блокировкой бота. kind: deleted, blocked или both. Возвращает id, имя, username и ссылки tg://user?id= и https://t.me/, если username есть. Telegram не вызывается, токен не возвращается. token_id обязателен. Страница до 50, по умолчанию 20.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "kind": {
            "type": "string",
            "enum": [
              "deleted",
              "blocked",
              "both"
            ]
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          }
        },
        "required": [
          "project_id",
          "token_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "token_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_users",
      "section": "users",
      "description": "Читает страницу базы пользователей выбранного бота, включая userData с ответами и переменными. Не отправляет сообщений.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "tokenId": {
            "$ref": "#/properties/project_id"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 20
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "default": 0
          },
          "search": {
            "type": "string",
            "maxLength": 200
          },
          "filterActive": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          },
          "sortBy": {
            "type": "string",
            "enum": [
              "lastInteraction",
              "createdAt",
              "interactionCount",
              "firstName",
              "userName"
            ]
          },
          "sortDir": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ]
          }
        },
        "required": [
          "project_id",
          "tokenId"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "users",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "users",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_list_versions",
      "section": "versions",
      "description": "Список версий проекта из БД живого приложения (история чекпоинтов и авто-снимков): id, label, автор, kind, дата. Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "versions",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "versions",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_mark_file_used",
      "section": "files",
      "description": "Увеличивает счётчик использования принадлежащего пользователю файла. Повтор увеличивает его снова.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "media_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "media_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false,
        "idempotentHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "files",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "files",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "media_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_move_node",
      "section": "scenario",
      "description": "Перенести ноду на другой лист проекта в БД живого приложения с обновлением холста (live). id и связи сохраняются. Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "node_id": {
            "type": "string",
            "description": "ID переносимой ноды"
          },
          "to_sheet_id": {
            "type": "string",
            "description": "ID целевого листа"
          },
          "from_sheet_id": {
            "type": "string",
            "description": "ID исходного листа (по умолчанию автопоиск)"
          },
          "position": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y"
            ],
            "additionalProperties": false,
            "description": "Новая позиция на целевом листе (по умолчанию сохраняется текущая)"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          }
        },
        "required": [
          "project_id",
          "node_id",
          "to_sheet_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "example": {
        "project_id": 1,
        "node_id": "1",
        "to_sheet_id": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_move_sheet_to_project",
      "section": "sheets",
      "description": "Перенести (move) или скопировать (copy) лист из одного проекта в другой в БД живого приложения с обновлением обоих холстов (live). Оригинальные id нод/веток и связи СОХРАНЯЮТСЯ как есть; id перегенерируется только при коллизии с целевым проектом. Кросс-листовые ссылки на ноды других листов источника обрываются. По умолчанию mode=copy (безопасно). В режиме move лист удаляется из источника (нельзя унести последний лист), а в оставшихся листах источника обрываются ссылки на унесённые ноды. Порядок записи безопасный: сначала целевой проект, затем источник. Адресация по числовым projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "source_project_id": {
            "type": "number",
            "description": "ID исходного проекта (откуда переносится лист)"
          },
          "target_project_id": {
            "type": "number",
            "description": "ID целевого проекта (куда переносится лист)"
          },
          "sheet_id": {
            "type": "string",
            "description": "ID переносимого листа в исходном проекте"
          },
          "mode": {
            "type": "string",
            "enum": [
              "move",
              "copy"
            ],
            "description": "move — перенос с удалением из источника; copy — копирование (по умолчанию copy)"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          }
        },
        "required": [
          "source_project_id",
          "target_project_id",
          "sheet_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "sheets",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "sheets",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "example": {
        "source_project_id": 1,
        "target_project_id": 1,
        "sheet_id": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_patch_table_row",
      "section": "tables",
      "description": "Изменить только переданные ячейки. Пустая строка сохраняется.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "row_id": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Ключ — числовой id столбца строкой, значение — текст, пустая строка допустима"
          }
        },
        "required": [
          "project_id",
          "table_id",
          "row_id",
          "data"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "row_id": 1,
        "data": {}
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_patch_table_row_expected",
      "section": "tables",
      "description": "Изменить ячейки строки только если expected содержит актуальное значение каждой изменяемой ячейки. HTTP 409 означает конфликт без записи. Для диапазона используйте db_edit_table_cells.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "table_id": {
            "$ref": "#/properties/project_id"
          },
          "row_id": {
            "$ref": "#/properties/project_id"
          },
          "data": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "maxLength": 10000
            },
            "propertyNames": {
              "pattern": "^[1-9]\\d*$"
            }
          },
          "expected": {
            "$ref": "#/properties/data"
          }
        },
        "required": [
          "project_id",
          "table_id",
          "row_id",
          "data",
          "expected"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false,
        "idempotentHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_preview_broadcast_audience",
      "section": "broadcasts",
      "description": "Оценивает аудиторию рассылки без отправки сообщений.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "filters": {
            "type": "object",
            "properties": {
              "tags": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128
                },
                "maxItems": 50
              },
              "registeredFrom": {
                "type": "string"
              },
              "registeredTo": {
                "type": "string"
              },
              "activeFrom": {
                "type": "string"
              },
              "activeTo": {
                "type": "string"
              },
              "userIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 64
                },
                "maxItems": 10000
              },
              "groupIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 64
                },
                "maxItems": 200
              }
            },
            "additionalProperties": false,
            "default": {}
          },
          "tokenId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "tokenIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "minItems": 1,
            "maxItems": 100
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "broadcasts",
          "effect": "read",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "broadcasts",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "filters": {}
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_project_summary",
      "section": "projects",
      "description": "Лёгкая сводка проекта из БД живого приложения: листы, число нод, счётчик по типам (без data нод)",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "projects",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "projects",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_prune_versions",
      "section": "versions",
      "description": "Массово удалить версии проекта из истории по фильтру (НЕОБРАТИМО). keep — сколько последних оставить; kind — только auto/manual; author_kind — только agent/user. Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "keep": {
            "type": "number",
            "description": "Сколько последних версий (по дате) сохранить"
          },
          "kind": {
            "type": "string",
            "enum": [
              "auto",
              "manual"
            ],
            "description": "Удалять только версии этого вида"
          },
          "author_kind": {
            "type": "string",
            "enum": [
              "agent",
              "user"
            ],
            "description": "Удалять только версии этого типа автора"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "versions",
          "effect": "write",
          "destructive": true,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "versions",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_reindex_table_rows",
      "section": "tables",
      "description": "Перенумеровать строки с нуля.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          }
        },
        "required": [
          "project_id",
          "table_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_remove_node",
      "section": "scenario",
      "description": "Удалить ноду из проекта в БД (live). Без sheet_id ищет по всем листам; если ноды нет — ошибка. Адресация по projectId из URL",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "node_id": {
            "type": "string"
          },
          "sheet_id": {
            "type": "string",
            "description": "ID листа (иначе автопоиск по всем листам)"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          }
        },
        "required": [
          "project_id",
          "node_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "write",
          "destructive": true,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "separate"
      },
      "example": {
        "project_id": 1,
        "node_id": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_remove_sheet",
      "section": "sheets",
      "description": "Удалить лист из проекта в БД живого приложения (live). Нельзя удалить последний лист. Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "sheet_id": {
            "type": "string",
            "description": "ID удаляемого листа"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          }
        },
        "required": [
          "project_id",
          "sheet_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "sheets",
          "effect": "write",
          "destructive": true,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "sheets",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "separate"
      },
      "example": {
        "project_id": 1,
        "sheet_id": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_rename_project",
      "section": "projects",
      "description": "Переименовать проект в БД живого приложения. Меняет только имя (без правки сценария, без новой версии).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "project_id",
          "name"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "projects",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "projects",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "name": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_rename_sheet",
      "section": "sheets",
      "description": "Переименовать лист в проекте в БД живого приложения (live). Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "sheet_id": {
            "type": "string",
            "description": "ID переименовываемого листа"
          },
          "name": {
            "type": "string",
            "description": "Новое имя листа"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          }
        },
        "required": [
          "project_id",
          "sheet_id",
          "name"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "sheets",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "sheets",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "example": {
        "project_id": 1,
        "sheet_id": "1",
        "name": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_rename_table",
      "section": "tables",
      "description": "Переименовать таблицу. Служебную _content переименовать нельзя.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "project_id",
          "table_id",
          "name"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "name": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_rename_table_column",
      "section": "tables",
      "description": "Переименовать столбец.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "column_id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "project_id",
          "table_id",
          "column_id",
          "name"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "column_id": 1,
        "name": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_reorder_projects",
      "section": "projects",
      "description": "Изменить порядок проектов в списке. project_ids — полный список id проектов владельца в нужном порядке.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_ids": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "description": "Полный список id проектов в нужном порядке"
          }
        },
        "required": [
          "project_ids"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "projects",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "projects",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_ids": []
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_reorder_sheets",
      "section": "sheets",
      "description": "Изменить порядок листов проекта в БД живого приложения (live). sheetIds — полный список id листов в нужном порядке (перестановка всех существующих). Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "sheet_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Полный список id листов в нужном порядке"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          }
        },
        "required": [
          "project_id",
          "sheet_ids"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "sheets",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "sheets",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "example": {
        "project_id": 1,
        "sheet_ids": []
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_reorder_table_columns",
      "section": "tables",
      "description": "Задать полный порядок столбцов массивом их id.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "column_ids": {
            "type": "array",
            "items": {
              "type": "number"
            }
          }
        },
        "required": [
          "project_id",
          "table_id",
          "column_ids"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "column_ids": []
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_report_button_navigation",
      "section": "scenario",
      "description": "Показать эффект каждой кнопки: новое сообщение, редактирование текущего, смена клавиатуры, внешнее действие или битая цель. Read-only.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "sheet_id": {
            "type": "string",
            "description": "Показывать кнопки только этого листа"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_restart_all_bots",
      "section": "runtime",
      "description": "Перезапустить ВСЕ запущенные боты проекта. ТРЕБУЕТ confirm: true (затрагивает все боты). Возвращает сводку restarted/failed/results. История и UI обновляются автоматически.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "confirm": {
            "type": "boolean",
            "description": "Обязательное подтверждение перезапуска всех ботов проекта"
          }
        },
        "required": [
          "project_id",
          "confirm"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "runtime",
          "effect": "external",
          "destructive": true,
          "completionMode": "job",
          "pollAction": "db_bot_status",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "runtime",
        "effect": "external",
        "completionMode": "job",
        "pollAction": "db_bot_status",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "confirm": false
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_restart_bot",
      "section": "runtime",
      "description": "Перезапустить бот проекта (stop+start). Если token_id не указан — текущий/дефолтный бот; если указан — конкретный токен (для проектов с несколькими токенами). История запусков и UI обновляются в реальном времени автоматически. Запуск асинхронный — после проверь db_bot_status.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "ID проекта"
          },
          "token_id": {
            "type": "number",
            "description": "ID токена (по умолчанию — текущий/дефолтный бот проекта)"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "runtime",
          "effect": "external",
          "destructive": false,
          "completionMode": "job",
          "pollAction": "db_bot_status",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "runtime",
        "effect": "external",
        "completionMode": "job",
        "pollAction": "db_bot_status",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_restore_version",
      "section": "versions",
      "description": "Откатить проект к версии из истории в БД живого приложения с обновлением холста (live). Создаёт новый чекпоинт отката. Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "version_id": {
            "type": "number",
            "description": "ID версии из db_list_versions"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии-чекпоинту отката"
          },
          "skip_validation": {
            "type": "boolean",
            "description": "Пропустить валидацию (по умолчанию true для отката)"
          }
        },
        "required": [
          "project_id",
          "version_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "versions",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "versions",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "version_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_rewrite_button_navigation",
      "section": "scenario",
      "description": "Массово переключить кнопочную навигацию между новыми сообщениями и edit_message. Без confirm возвращает только план; запись выполняется одной версией.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "mode": {
            "type": "string",
            "enum": [
              "edit_current",
              "send_new"
            ],
            "description": "edit_current — менять текущее сообщение; send_new — отменить правки этого инструмента"
          },
          "confirm": {
            "type": "boolean",
            "default": false,
            "description": "true — применить показанный план"
          },
          "sheet_id": {
            "type": "string",
            "description": "Менять целевые экраны только этого листа"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии проекта"
          }
        },
        "required": [
          "project_id",
          "mode"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "example": {
        "project_id": 1,
        "mode": "edit_current",
        "confirm": false
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_save_analytics_link_budget",
      "section": "analytics",
      "description": "Сохранить бюджет простой start-метки одной транзакцией. requestId — постоянный UUID одной оплаты: при повторной доставке используйте тот же UUID и тело, сервер вернёт исходный расход; иное тело с тем же UUID даст 409. Квитанции хранятся до удаления проекта. Для новой оплаты создайте новый UUID. Не отправляет сообщения.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "data": {
            "type": "object",
            "properties": {
              "tokenId": {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              "marker": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,64}$"
              },
              "amount": {
                "type": "string",
                "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,2})?$"
              },
              "currency": {
                "type": "string",
                "enum": [
                  "RUB",
                  "USD"
                ]
              },
              "day": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "timezone": {
                "type": "string"
              },
              "exchangeRateRubPerUsd": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^(0|[1-9]\\d{0,11})(\\.\\d{1,8})?$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "exchangeRateDate": {
                "anyOf": [
                  {
                    "$ref": "#/properties/data/properties/day"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "note": {
                "type": "string",
                "maxLength": 2000,
                "default": ""
              },
              "untilDay": {
                "$ref": "#/properties/data/properties/day"
              },
              "allocation": {
                "type": "string",
                "enum": [
                  "single",
                  "equal"
                ],
                "default": "single"
              },
              "requestId": {
                "type": "string",
                "format": "uuid"
              }
            },
            "required": [
              "tokenId",
              "marker",
              "amount",
              "currency",
              "day",
              "timezone",
              "requestId"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "project_id",
          "data"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false,
        "idempotentHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_search_bot_logs",
      "section": "logs",
      "description": "Поиск сохранённых логов бота по ISO-периоду, тексту и типу. История ограничена сроком хранения.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "from": {
            "type": "string",
            "format": "date-time"
          },
          "to": {
            "type": "string",
            "format": "date-time"
          },
          "text": {
            "type": "string",
            "maxLength": 500
          },
          "type": {
            "type": "string",
            "enum": [
              "stdout",
              "stderr",
              "status"
            ]
          },
          "before_id": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000
          }
        },
        "required": [
          "project_id",
          "token_id",
          "from",
          "to"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "logs",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "logs",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "token_id": 1,
        "from": "2026-01-01T00:00:00Z",
        "to": "2026-01-01T00:00:00Z"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_search_dialog_messages",
      "section": "dialogs",
      "description": "Поиск буквальной подстроки без учёта регистра в сохранённых сообщениях выбранного бота. Без chat_id поиск идёт по всем чатам; для chat_id требуется chat_type. По умолчанию десять последних совпадений, порядок от новых к старым, курсор ведёт к более старым. Не вызывает Telegram; история ограничена сроком хранения.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "chat_id": {
            "type": "string",
            "pattern": "^-?[1-9]\\d{0,19}$"
          },
          "chat_type": {
            "type": "string",
            "enum": [
              "private",
              "group",
              "supergroup",
              "channel"
            ]
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 10
          },
          "cursor": {
            "type": "string",
            "maxLength": 2048
          }
        },
        "required": [
          "project_id",
          "token_id",
          "query"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "dialogs",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "dialogs",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "token_id": 1,
        "query": "1",
        "limit": 10
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_send_dialog_message",
      "section": "dialogs",
      "description": "Отправляет реальное сообщение пользователю Telegram и сохраняет его в истории. requestId обязателен: повтор той же заявки не отправляет сообщение повторно; неизвестный исход запрещает повторное исполнение.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "requestId": {
            "type": "string",
            "format": "uuid"
          },
          "user_id": {
            "type": "string",
            "pattern": "^[1-9]\\d{0,19}$"
          },
          "messageText": {
            "type": "string",
            "maxLength": 4096,
            "default": ""
          },
          "nodeId": {
            "type": "string"
          },
          "userData": {
            "type": "object",
            "additionalProperties": {}
          },
          "mediaUrls": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 16384
            },
            "maxItems": 10,
            "default": []
          },
          "buttons": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "goto",
                    "command",
                    "url",
                    "contact",
                    "location",
                    "selection",
                    "complete",
                    "default",
                    "copy_text",
                    "web_app",
                    "request_managed_bot",
                    "pay"
                  ],
                  "default": "goto"
                },
                "copyText": {
                  "type": "string"
                },
                "webAppUrl": {
                  "type": "string"
                },
                "target": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "requestContact": {
                  "type": "boolean"
                },
                "requestLocation": {
                  "type": "boolean"
                },
                "buttonType": {
                  "type": "string",
                  "enum": [
                    "normal",
                    "option",
                    "complete"
                  ],
                  "default": "normal"
                },
                "skipDataCollection": {
                  "type": "boolean",
                  "default": false
                },
                "hideAfterClick": {
                  "type": "boolean",
                  "default": false
                },
                "customCallbackData": {
                  "type": "string"
                },
                "style": {
                  "type": "string",
                  "enum": [
                    "primary",
                    "success",
                    "danger"
                  ]
                },
                "suggestedBotName": {
                  "type": "string"
                },
                "suggestedBotUsername": {
                  "type": "string"
                },
                "selectionGroup": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "text"
              ],
              "additionalProperties": false
            },
            "maxItems": 100,
            "default": []
          },
          "buttonsPerRow": {
            "type": "integer",
            "minimum": 0,
            "maximum": 8,
            "default": 0
          }
        },
        "required": [
          "project_id",
          "token_id",
          "requestId",
          "user_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true,
        "idempotentHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "dialogs",
          "effect": "external",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "dialogs",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_send_group_message",
      "section": "dialogs",
      "description": "Отправляет реальное сообщение в группу Telegram. requestId обязателен, используйте тот же ID при сверке результата.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "requestId": {
            "type": "string",
            "format": "uuid"
          },
          "group_id": {
            "type": "string",
            "pattern": "^-?[1-9]\\d{0,19}$"
          },
          "messageText": {
            "type": "string",
            "maxLength": 4096,
            "default": ""
          },
          "nodeId": {
            "type": "string"
          },
          "userData": {
            "type": "object",
            "additionalProperties": {}
          },
          "mediaUrls": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 16384
            },
            "maxItems": 10,
            "default": []
          },
          "buttons": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "goto",
                    "command",
                    "url",
                    "contact",
                    "location",
                    "selection",
                    "complete",
                    "default",
                    "copy_text",
                    "web_app",
                    "request_managed_bot",
                    "pay"
                  ],
                  "default": "goto"
                },
                "copyText": {
                  "type": "string"
                },
                "webAppUrl": {
                  "type": "string"
                },
                "target": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "requestContact": {
                  "type": "boolean"
                },
                "requestLocation": {
                  "type": "boolean"
                },
                "buttonType": {
                  "type": "string",
                  "enum": [
                    "normal",
                    "option",
                    "complete"
                  ],
                  "default": "normal"
                },
                "skipDataCollection": {
                  "type": "boolean",
                  "default": false
                },
                "hideAfterClick": {
                  "type": "boolean",
                  "default": false
                },
                "customCallbackData": {
                  "type": "string"
                },
                "style": {
                  "type": "string",
                  "enum": [
                    "primary",
                    "success",
                    "danger"
                  ]
                },
                "suggestedBotName": {
                  "type": "string"
                },
                "suggestedBotUsername": {
                  "type": "string"
                },
                "selectionGroup": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "text"
              ],
              "additionalProperties": false
            },
            "maxItems": 100,
            "default": []
          },
          "buttonsPerRow": {
            "type": "integer",
            "minimum": 0,
            "maximum": 8,
            "default": 0
          }
        },
        "required": [
          "project_id",
          "token_id",
          "requestId",
          "group_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true,
        "idempotentHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "dialogs",
          "effect": "external",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "dialogs",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_send_node_message",
      "section": "dialogs",
      "description": "Отправляет пользователю реальное сообщение из ноды. Не является предпросмотром; после неизвестного исхода не повторять автоматически.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "requestId": {
            "type": "string",
            "format": "uuid"
          },
          "user_id": {
            "type": "string",
            "pattern": "^[1-9]\\d{0,19}$"
          },
          "nodeId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "userData": {
            "type": "object",
            "additionalProperties": {}
          }
        },
        "required": [
          "project_id",
          "token_id",
          "requestId",
          "user_id",
          "nodeId"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true,
        "idempotentHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "dialogs",
          "effect": "external",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "dialogs",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_set_active_sheet",
      "section": "sheets",
      "description": "Сделать лист активным в проекте в БД живого приложения (live). Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "sheet_id": {
            "type": "string",
            "description": "ID листа, который сделать активным"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          }
        },
        "required": [
          "project_id",
          "sheet_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "sheets",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "sheets",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "example": {
        "project_id": 1,
        "sheet_id": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_set_bot_profile",
      "section": "bots",
      "description": "Изменяет публичный профиль бота через Telegram и сохраняет кеш профиля. Не меняет username.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "field": {
            "type": "string",
            "enum": [
              "name",
              "description",
              "shortDescription"
            ]
          },
          "value": {
            "type": "string",
            "maxLength": 512
          }
        },
        "required": [
          "project_id",
          "token_id",
          "field",
          "value"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "bots",
          "effect": "external",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "bots",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_set_bot_settings",
      "section": "bots",
      "description": "Сохраняет разрешённую настройку и подтверждает повторным чтением. Не перезапускает бота; сохранение и применение работающим процессом различаются.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "change": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "setting": {
                    "type": "string",
                    "const": "auto-restart"
                  },
                  "autoRestart": {
                    "type": "number",
                    "enum": [
                      0,
                      1
                    ]
                  },
                  "maxRestartAttempts": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10
                  }
                },
                "required": [
                  "setting",
                  "autoRestart",
                  "maxRestartAttempts"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "setting": {
                    "type": "string",
                    "const": "protect-content"
                  },
                  "protectContent": {
                    "$ref": "#/properties/change/anyOf/0/properties/autoRestart"
                  }
                },
                "required": [
                  "setting",
                  "protectContent"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "setting": {
                    "type": "string",
                    "const": "save-incoming-media"
                  },
                  "saveIncomingMedia": {
                    "$ref": "#/properties/change/anyOf/0/properties/autoRestart"
                  }
                },
                "required": [
                  "setting",
                  "saveIncomingMedia"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "setting": {
                    "type": "string",
                    "const": "catch-all-handlers"
                  },
                  "catchAllHandlers": {
                    "$ref": "#/properties/change/anyOf/0/properties/autoRestart"
                  }
                },
                "required": [
                  "setting",
                  "catchAllHandlers"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "setting": {
                    "type": "string",
                    "const": "track-user-blocks"
                  },
                  "trackUserBlocks": {
                    "$ref": "#/properties/change/anyOf/0/properties/autoRestart"
                  }
                },
                "required": [
                  "setting",
                  "trackUserBlocks"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "setting": {
                    "type": "string",
                    "const": "track-group-membership"
                  },
                  "trackGroupMembership": {
                    "$ref": "#/properties/change/anyOf/0/properties/autoRestart"
                  }
                },
                "required": [
                  "setting",
                  "trackGroupMembership"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "setting": {
                    "type": "string",
                    "const": "content-cache"
                  },
                  "contentCache": {
                    "$ref": "#/properties/change/anyOf/0/properties/autoRestart"
                  }
                },
                "required": [
                  "setting",
                  "contentCache"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "setting": {
                    "type": "string",
                    "const": "log-level"
                  },
                  "logLevel": {
                    "type": "string",
                    "enum": [
                      "DEBUG",
                      "INFO",
                      "WARNING",
                      "ERROR"
                    ]
                  }
                },
                "required": [
                  "setting",
                  "logLevel"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "setting": {
                    "type": "string",
                    "const": "launch-settings"
                  },
                  "launchMode": {
                    "type": "string",
                    "enum": [
                      "polling",
                      "webhook"
                    ]
                  },
                  "webhookBaseUrl": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uri"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "webhookSecretToken": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 256,
                        "pattern": "^[A-Za-z0-9_-]*$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "setting",
                  "launchMode"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "project_id",
          "token_id",
          "change"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "bots",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "bots",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_set_messages_retention",
      "section": "settings",
      "description": "Установить срок хранения сообщений диалога для токена (bot_messages). 0 = безлимит; иначе 7/30/60/90/180/365 дней. Сервер раз в час удаляет старые сообщения токена; агрегаты аналитики не трогаются. Перезапуск бота не нужен. token_id — из db_list_bot_tokens (там же текущее messagesRetentionDays).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "token_id": {
            "type": "number",
            "description": "ID токена из db_list_bot_tokens"
          },
          "messages_retention_days": {
            "type": "number",
            "description": "Срок в днях: 0, 7, 30, 60, 90, 180 или 365"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "messages_retention_days"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "settings",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "settings",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "example": {
        "project_id": 1,
        "token_id": 1,
        "messages_retention_days": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_set_table_column_settings",
      "section": "tables",
      "description": "Сохранить настройки пользовательского столбца: подпись, тип, обязательность, ограничения. Внутреннее имя не меняется. data заменяет настройки целиком, пропущенные поля получают defaults; _content недоступна.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "table_id": {
            "$ref": "#/properties/project_id"
          },
          "column_id": {
            "$ref": "#/properties/project_id"
          },
          "data": {
            "type": "object",
            "properties": {
              "displayName": {
                "type": "string",
                "maxLength": 255,
                "default": ""
              },
              "dataType": {
                "type": "string",
                "enum": [
                  "text",
                  "number",
                  "date",
                  "boolean",
                  "link"
                ],
                "default": "text"
              },
              "required": {
                "type": "boolean",
                "default": false
              },
              "min": {
                "type": "number"
              },
              "max": {
                "type": "number"
              },
              "maxLength": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10000,
                "default": 10000
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "project_id",
          "table_id",
          "column_id",
          "data"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false,
        "idempotentHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_set_user_database_enabled",
      "section": "users",
      "description": "Сохраняет включение базы пользователей проекта с обязательной ожидаемой ревизией. Не очищает существующие данные. Конфликт 409 требует перечитать проект.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "enabled": {
            "type": "boolean"
          },
          "expected_revision": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "project_id",
          "enabled",
          "expected_revision"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "users",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "users",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "enabled": false,
        "expected_revision": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_set_userbot_settings",
      "section": "settings",
      "description": "Настроить Telethon Userbot. Пропущенные поля не меняются; пустые и замаскированные секреты сохраняются. Настройки применятся при следующем запуске бота; автоматического перезапуска нет.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "ID проекта"
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "ID токена из db_list_bot_tokens"
          },
          "enabled": {
            "type": "number",
            "enum": [
              0,
              1
            ],
            "description": "Включить режим: 0 или 1"
          },
          "api_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "API ID; null или пустая строка очищают значение"
          },
          "api_hash": {
            "type": [
              "string",
              "null"
            ],
            "description": "API Hash; null, пустая строка или маска сохраняют секрет"
          },
          "session_string": {
            "type": [
              "string",
              "null"
            ],
            "description": "Готовая сессия; null, пустая строка или маска сохраняют секрет"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "enabled"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "settings",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "settings",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_start_bot",
      "section": "runtime",
      "description": "Запустить бота проекта в БД живого приложения. Запуск асинхронный — после успеха проверь db_bot_status. Старт пишется в историю запусков и обновляет UI в реальном времени автоматически. botToken сервер берёт сам.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "ID проекта"
          },
          "token_id": {
            "type": "number",
            "description": "ID токена (по умолчанию — дефолтный токен проекта)"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "runtime",
          "effect": "external",
          "destructive": false,
          "completionMode": "job",
          "pollAction": "db_bot_status",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "runtime",
        "effect": "external",
        "completionMode": "job",
        "pollAction": "db_bot_status",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_start_broadcast",
      "section": "broadcasts",
      "description": "СОЗДАЁТ И СРАЗУ ЗАПУСКАЕТ реальную рассылку. tokenIds создаёт кампанию по выбранным ботам. Это не черновик. requestId обязателен: повтор той же заявки не запускает новую очередь; новый ID означает новую рассылку.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "requestId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "maxLength": 200,
            "default": ""
          },
          "messageText": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "mediaUrls": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 16384
            },
            "maxItems": 10,
            "default": []
          },
          "buttons": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "goto",
                    "command",
                    "url",
                    "contact",
                    "location",
                    "selection",
                    "complete",
                    "default",
                    "copy_text",
                    "web_app",
                    "request_managed_bot",
                    "pay"
                  ],
                  "default": "goto"
                },
                "copyText": {
                  "type": "string"
                },
                "webAppUrl": {
                  "type": "string"
                },
                "target": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "requestContact": {
                  "type": "boolean"
                },
                "requestLocation": {
                  "type": "boolean"
                },
                "buttonType": {
                  "type": "string",
                  "enum": [
                    "normal",
                    "option",
                    "complete"
                  ],
                  "default": "normal"
                },
                "skipDataCollection": {
                  "type": "boolean",
                  "default": false
                },
                "hideAfterClick": {
                  "type": "boolean",
                  "default": false
                },
                "customCallbackData": {
                  "type": "string"
                },
                "style": {
                  "type": "string",
                  "enum": [
                    "primary",
                    "success",
                    "danger"
                  ]
                },
                "suggestedBotName": {
                  "type": "string"
                },
                "suggestedBotUsername": {
                  "type": "string"
                },
                "selectionGroup": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "text"
              ],
              "additionalProperties": false
            },
            "maxItems": 100,
            "default": []
          },
          "buttonsPerRow": {
            "type": "integer",
            "minimum": 0,
            "maximum": 8,
            "default": 0
          },
          "filters": {
            "type": "object",
            "properties": {
              "tags": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128
                },
                "maxItems": 50
              },
              "registeredFrom": {
                "type": "string"
              },
              "registeredTo": {
                "type": "string"
              },
              "activeFrom": {
                "type": "string"
              },
              "activeTo": {
                "type": "string"
              },
              "userIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 64
                },
                "maxItems": 10000
              },
              "groupIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 64
                },
                "maxItems": 200
              }
            },
            "additionalProperties": false,
            "default": {}
          },
          "tokenId": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "tokenIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "minItems": 1,
            "maxItems": 100
          },
          "groupsByTokenId": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 64
              },
              "maxItems": 200
            }
          }
        },
        "required": [
          "project_id",
          "requestId",
          "messageText"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true,
        "idempotentHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "broadcasts",
          "effect": "external",
          "completionMode": "job",
          "pollAction": "db_get_broadcast",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "broadcasts",
        "effect": "external",
        "completionMode": "job",
        "pollAction": "db_get_broadcast",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "requestId": "11111111-1111-4111-8111-111111111111",
        "name": "",
        "messageText": "1",
        "mediaUrls": [],
        "buttons": [],
        "buttonsPerRow": 0,
        "filters": {}
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_start_chat_access_check",
      "section": "dialogs",
      "description": "Запускает массовую проверку людей выбранного бота: у кого есть личное сообщение или ещё нет сообщений. Кто писал только в группе или канале, не входит. Для чатов групп и каналов — db_check_chat_access. Действие «печатает» без сообщений. Повторный запуск во время проверки вернёт ошибку. Отмена недоступна. Токен и сырые ответы Telegram не возвращаются.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "project_id",
          "token_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "dialogs",
          "effect": "external",
          "destructive": false,
          "completionMode": "job",
          "pollAction": "db_get_chat_access_check",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "dialogs",
        "effect": "external",
        "completionMode": "job",
        "pollAction": "db_get_chat_access_check",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "token_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_start_offline_bots",
      "section": "runtime",
      "description": "Запустить всех ОФЛАЙН ботов проекта (уже running и недействительные токены не трогает). ТРЕБУЕТ confirm: true. Последовательно вызывает startBot; UI обновляется live через WS bot-started и start-offline-progress. Эквивалент кнопки «Запустить офлайн» и POST /api/projects/:id/bot/start-offline-all.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "ID проекта"
          },
          "confirm": {
            "type": "boolean",
            "description": "Обязательное подтверждение массового запуска офлайн-ботов"
          }
        },
        "required": [
          "project_id",
          "confirm"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "runtime",
          "effect": "external",
          "destructive": false,
          "completionMode": "job",
          "pollAction": "db_bot_status",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "runtime",
        "effect": "external",
        "completionMode": "job",
        "pollAction": "db_bot_status",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "confirm": false
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_stop_bot",
      "section": "runtime",
      "description": "Остановить бота проекта. ТРЕБУЕТ confirm: true (останавливает работающего бота). Стоп пишется в историю запусков и обновляет UI в реальном времени автоматически.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "token_id": {
            "type": "number",
            "description": "ID токена (обязателен; из db_list_bot_tokens)"
          },
          "confirm": {
            "type": "boolean",
            "description": "Обязательное подтверждение остановки живого бота"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "confirm"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "runtime",
          "effect": "external",
          "destructive": true,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "runtime",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": true,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "token_id": 1,
        "confirm": false
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_stop_broadcast",
      "section": "broadcasts",
      "description": "Останавливает оставшуюся очередь отправки; уже отправленные сообщения остаются.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "resource_id": {
            "$ref": "#/properties/project_id"
          }
        },
        "required": [
          "project_id",
          "resource_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "broadcasts",
          "effect": "external",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "broadcasts",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_stop_campaign",
      "section": "broadcasts",
      "description": "Останавливает оставшуюся очередь отправки; уже отправленные сообщения остаются.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "resource_id": {
            "$ref": "#/properties/project_id"
          }
        },
        "required": [
          "project_id",
          "resource_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "broadcasts",
          "effect": "external",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "broadcasts",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_suggest_table_chart",
      "section": "tables",
      "description": "Предлагает столбцы, подсчёт и вид графика пользовательской таблицы. Объясняет, если значения категории почти не повторяются или подписи слишком длинные.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "table_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "project_id",
          "table_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_sync_dialog_group",
      "section": "dialogs",
      "description": "Обновляет сохранённые сведения о группе через Telegram. Не отправляет сообщение.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "group_id": {
            "type": "string",
            "pattern": "^-?[1-9]\\d{0,19}$"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "group_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "dialogs",
          "effect": "external",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "dialogs",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_unarchive_project",
      "section": "projects",
      "description": "Вернуть проект из личного архива владельца токена. Эквивалент POST /api/projects/:id/unarchive.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "projects",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "projects",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_update_analytics_expense",
      "section": "analytics",
      "description": "Исправить или архивировать: расходы. data совпадает с PATCH API; archived=true архивирует, false восстанавливает. Публичная метка и первоначальные связи не меняются; изменения сохраняются в аудите.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          },
          "resource_id": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "data": {
            "type": "object",
            "properties": {
              "amount": {
                "type": "string",
                "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,2})?$"
              },
              "currency": {
                "type": "string",
                "enum": [
                  "RUB",
                  "USD"
                ]
              },
              "day": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "exchangeRateRubPerUsd": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^(0|[1-9]\\d{0,11})(\\.\\d{1,8})?$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "exchangeRateDate": {
                "anyOf": [
                  {
                    "$ref": "#/properties/data/properties/day"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "note": {
                "type": "string",
                "maxLength": 2000
              },
              "archived": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "project_id",
          "resource_id",
          "data"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false,
        "idempotentHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "resource_id": 1,
        "data": {}
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_update_analytics_link",
      "section": "analytics",
      "description": "Исправить или архивировать: ссылки. data совпадает с PATCH API; archived=true архивирует, false восстанавливает. Публичная метка и первоначальные связи не меняются; изменения сохраняются в аудите.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          },
          "resource_id": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "data": {
            "type": "object",
            "properties": {
              "archived": {
                "type": "boolean"
              }
            },
            "required": [
              "archived"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "project_id",
          "resource_id",
          "data"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false,
        "idempotentHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "resource_id": 1,
        "data": {
          "archived": false
        }
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_update_analytics_placement",
      "section": "analytics",
      "description": "Исправить или архивировать: размещения. data совпадает с PATCH API; archived=true архивирует, false восстанавливает. Публичная метка и первоначальные связи не меняются; изменения сохраняются в аудите.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          },
          "resource_id": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "data": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "startsOn": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endsOn": {
                "anyOf": [
                  {
                    "$ref": "#/properties/data/properties/startsOn/anyOf/0"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "archived": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "project_id",
          "resource_id",
          "data"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false,
        "idempotentHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "resource_id": 1,
        "data": {}
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_update_analytics_source",
      "section": "analytics",
      "description": "Исправить или архивировать: источники. data совпадает с PATCH API; archived=true архивирует, false восстанавливает. Публичная метка и первоначальные связи не меняются; изменения сохраняются в аудите.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "ID проекта с доступом текущего агента."
          },
          "resource_id": {
            "type": "integer",
            "exclusiveMinimum": 0
          },
          "data": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "kind": {
                "type": "string",
                "enum": [
                  "telegram",
                  "website",
                  "social",
                  "other"
                ],
                "default": "other"
              },
              "url": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "archived": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "project_id",
          "resource_id",
          "data"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false,
        "idempotentHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "analytics",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "analytics",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "resource_id": 1,
        "data": {}
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_update_bot_env",
      "section": "bots",
      "description": "Изменяет существующую пользовательскую ENV выбранного бота. Значение не возвращается.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "variable_id": {
            "$ref": "#/properties/project_id"
          },
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[A-Z][A-Z0-9_]*$"
          },
          "value": {
            "type": "string",
            "maxLength": 65536
          },
          "isSecret": {
            "type": "number",
            "enum": [
              0,
              1
            ],
            "default": 1
          }
        },
        "required": [
          "project_id",
          "token_id",
          "variable_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "bots",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "bots",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_update_bot_token",
      "section": "runtime",
      "description": "Сменить Telegram-токен у существующей записи (TokenDisplayEdit). Эквивалент PUT /api/projects/:id/tokens/:tokenId. При новом token сервер ставит isActive=1 и шлёт WS token-updated. getMe при update не вызывается (botUsername может не обновиться). Ответ БЕЗ секрета token (только id/name/username/флаги). token_id — из db_list_bot_tokens.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "ID проекта из URL редактора"
          },
          "token_id": {
            "type": "number",
            "description": "ID записи токена из db_list_bot_tokens"
          },
          "token": {
            "type": "string",
            "description": "Новый токен от @BotFather, вид 123456789:AAH…"
          },
          "name": {
            "type": "string",
            "description": "Опционально новое имя записи токена"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "token"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "runtime",
          "effect": "external",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "runtime",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_update_file_metadata",
      "section": "files",
      "description": "Сохраняет описание, теги или публичность принадлежащего пользователю файла с подтверждением чтением. Путь, URL и владелец неизменяемы.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "media_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 100
            },
            "maxItems": 50
          },
          "isPublic": {
            "type": "number",
            "enum": [
              0,
              1
            ]
          }
        },
        "required": [
          "media_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "files",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "files",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "media_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_update_node",
      "section": "scenario",
      "description": "Обновить ноду по id в БД (live). Без sheet_id ищет по всем листам; если ноды нет — ошибка, не silent ok. Адресация по projectId из URL",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "node_id": {
            "type": "string"
          },
          "patch": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "start",
                  "message",
                  "command",
                  "command_trigger",
                  "text_trigger",
                  "incoming_message_trigger",
                  "incoming_callback_trigger",
                  "outgoing_message_trigger",
                  "group_message_trigger",
                  "member_trigger",
                  "callback_trigger",
                  "managed_bot_updated_trigger",
                  "schedule_trigger",
                  "api_trigger",
                  "sticker",
                  "voice",
                  "animation",
                  "location",
                  "contact",
                  "pin_message",
                  "unpin_message",
                  "delete_message",
                  "forward_message",
                  "ban_user",
                  "unban_user",
                  "mute_user",
                  "unmute_user",
                  "kick_user",
                  "promote_user",
                  "demote_user",
                  "admin_rights",
                  "photo",
                  "video",
                  "audio",
                  "document",
                  "keyboard",
                  "input",
                  "condition",
                  "broadcast",
                  "client_auth",
                  "media",
                  "create_forum_topic",
                  "http_request",
                  "get_managed_bot_token",
                  "answer_callback_query",
                  "edit_message",
                  "set_variable",
                  "psql_query",
                  "convert_file",
                  "loop",
                  "bot_table",
                  "delay",
                  "api_response",
                  "userbot_message",
                  "userbot_click_button",
                  "userbot_inline_query",
                  "userbot_edit_trigger",
                  "parallel_split",
                  "stop_processing",
                  "rate_counter",
                  "code",
                  "comment",
                  "send_invoice",
                  "create_invoice_link",
                  "refund_stars",
                  "edit_star_subscription",
                  "get_star_balance",
                  "successful_payment_trigger"
                ]
              },
              "position": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "data": {
                "type": "object",
                "properties": {
                  "userbotEntity": {
                    "type": "string"
                  },
                  "userbotEntitySource": {
                    "type": "string"
                  },
                  "userbotEntityVariable": {
                    "type": "string"
                  },
                  "userbotRecipients": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "messageId": {
                    "type": "string"
                  },
                  "clickMode": {
                    "type": "string",
                    "enum": [
                      "text",
                      "data",
                      "index"
                    ]
                  },
                  "clickDelivery": {
                    "type": "string",
                    "enum": [
                      "fire_and_forget",
                      "await"
                    ]
                  },
                  "clickValue": {
                    "type": "string"
                  },
                  "responseStrategy": {
                    "type": "string",
                    "enum": [
                      "first",
                      "longest",
                      "regex_match",
                      "last",
                      "edit",
                      "new_message"
                    ]
                  },
                  "responseWaitSeconds": {
                    "type": "number"
                  },
                  "responseFilterRegex": {
                    "type": "string"
                  },
                  "responseFloorMessageIdVar": {
                    "type": "string"
                  },
                  "saveAlertTo": {
                    "type": "string"
                  },
                  "saveButtonsTo": {
                    "type": "string"
                  },
                  "saveHasMediaTo": {
                    "type": "string"
                  },
                  "saveMediaTo": {
                    "type": "string"
                  },
                  "saveResponseIdTo": {
                    "type": "string"
                  },
                  "saveResponseTextTo": {
                    "type": "string"
                  },
                  "botUsername": {
                    "type": "string"
                  },
                  "targetChat": {
                    "type": "string"
                  },
                  "sendToSameChat": {
                    "type": "boolean"
                  },
                  "resultIndex": {
                    "type": "string"
                  },
                  "saveResultTitleTo": {
                    "type": "string"
                  },
                  "saveResultDescTo": {
                    "type": "string"
                  },
                  "filterType": {
                    "type": "string",
                    "enum": [
                      "any",
                      "contains",
                      "regex"
                    ]
                  },
                  "filterValue": {
                    "type": "string"
                  },
                  "saveTextTo": {
                    "type": "string"
                  },
                  "saveChatIdTo": {
                    "type": "string"
                  },
                  "saveSenderIdTo": {
                    "type": "string"
                  },
                  "command": {
                    "type": "string"
                  },
                  "deepLinkParam": {
                    "type": "string"
                  },
                  "deepLinkMatchMode": {
                    "type": "string",
                    "enum": [
                      "exact",
                      "startsWith"
                    ]
                  },
                  "deepLinkSaveToVar": {
                    "type": "boolean"
                  },
                  "deepLinkVarName": {
                    "type": "string"
                  },
                  "commentColor": {
                    "type": "string",
                    "enum": [
                      "yellow",
                      "blue",
                      "green",
                      "pink",
                      "gray"
                    ]
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "interval",
                            "weekday",
                            "monthday",
                            "cron"
                          ]
                        },
                        "intervalMinutes": {
                          "type": "number"
                        },
                        "days": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "hour": {
                          "type": "number"
                        },
                        "minute": {
                          "type": "number"
                        },
                        "monthDays": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        },
                        "cronExpression": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "mode"
                      ],
                      "additionalProperties": true
                    }
                  },
                  "timezone": {
                    "type": "string"
                  },
                  "runOnStart": {
                    "type": "boolean"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "description": {
                    "type": "string"
                  },
                  "messageText": {
                    "type": "string"
                  },
                  "imageUrl": {
                    "type": "string"
                  },
                  "videoUrl": {
                    "type": "string"
                  },
                  "audioUrl": {
                    "type": "string"
                  },
                  "documentUrl": {
                    "type": "string"
                  },
                  "documentName": {
                    "type": "string"
                  },
                  "mediaCaption": {
                    "type": "string"
                  },
                  "keyboardType": {
                    "type": "string",
                    "enum": [
                      "reply",
                      "inline",
                      "none"
                    ],
                    "default": "none"
                  },
                  "keyboardNodeId": {
                    "type": "string"
                  },
                  "seconds": {
                    "type": "string"
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "seconds",
                      "minutes",
                      "hours",
                      "days",
                      "weeks"
                    ]
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "blocking",
                      "background"
                    ]
                  },
                  "buttons": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "action": {
                          "type": "string",
                          "enum": [
                            "goto",
                            "command",
                            "url",
                            "contact",
                            "location",
                            "selection",
                            "complete",
                            "default",
                            "copy_text",
                            "web_app",
                            "request_managed_bot",
                            "pay"
                          ],
                          "default": "goto"
                        },
                        "copyText": {
                          "type": "string"
                        },
                        "webAppUrl": {
                          "type": "string"
                        },
                        "target": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "requestContact": {
                          "type": "boolean"
                        },
                        "requestLocation": {
                          "type": "boolean"
                        },
                        "buttonType": {
                          "type": "string",
                          "enum": [
                            "normal",
                            "option",
                            "complete"
                          ],
                          "default": "normal"
                        },
                        "skipDataCollection": {
                          "type": "boolean",
                          "default": false
                        },
                        "hideAfterClick": {
                          "type": "boolean",
                          "default": false
                        },
                        "customCallbackData": {
                          "type": "string"
                        },
                        "style": {
                          "type": "string",
                          "enum": [
                            "primary",
                            "success",
                            "danger"
                          ]
                        },
                        "suggestedBotName": {
                          "type": "string"
                        },
                        "suggestedBotUsername": {
                          "type": "string"
                        },
                        "selectionGroup": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "shuffleButtons": {
                    "type": "boolean",
                    "default": false
                  },
                  "enableDynamicButtons": {
                    "type": "boolean",
                    "default": false
                  },
                  "dynamicButtons": {
                    "type": "object",
                    "properties": {
                      "sourceVariable": {
                        "type": "string",
                        "default": ""
                      },
                      "arrayPath": {
                        "type": "string",
                        "default": ""
                      },
                      "textTemplate": {
                        "type": "string",
                        "default": ""
                      },
                      "callbackTemplate": {
                        "type": "string",
                        "default": ""
                      },
                      "styleMode": {
                        "type": "string",
                        "enum": [
                          "field",
                          "template",
                          "none"
                        ],
                        "default": "none"
                      },
                      "styleField": {
                        "type": "string",
                        "default": ""
                      },
                      "styleTemplate": {
                        "type": "string",
                        "default": ""
                      },
                      "columns": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 6,
                        "default": 2
                      }
                    },
                    "additionalProperties": true
                  },
                  "keyboardLayout": {
                    "type": "object",
                    "properties": {
                      "rows": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "buttonIds": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "buttonIds"
                          ],
                          "additionalProperties": false
                        },
                        "default": []
                      },
                      "columns": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 6,
                        "default": 2
                      },
                      "autoLayout": {
                        "type": "boolean",
                        "default": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "oneTimeKeyboard": {
                    "type": "boolean",
                    "default": false
                  },
                  "resizeKeyboard": {
                    "type": "boolean",
                    "default": true
                  },
                  "markdown": {
                    "type": "boolean",
                    "default": false
                  },
                  "formatMode": {
                    "type": "string",
                    "enum": [
                      "html",
                      "markdown",
                      "none"
                    ],
                    "default": "none"
                  },
                  "disableLinkPreview": {
                    "type": "boolean",
                    "default": false
                  },
                  "synonyms": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "matchMode": {
                    "type": "string",
                    "enum": [
                      "exact",
                      "contains",
                      "fuzzy"
                    ],
                    "default": "exact"
                  },
                  "adminOnly": {
                    "type": "boolean",
                    "default": false
                  },
                  "requiresAuth": {
                    "type": "boolean",
                    "default": false
                  },
                  "showInMenu": {
                    "type": "boolean",
                    "default": true
                  },
                  "saveCommandArgsTo": {
                    "type": "string",
                    "default": ""
                  },
                  "commandTimeout": {
                    "type": "number"
                  },
                  "cooldownTime": {
                    "type": "number"
                  },
                  "maxUsagesPerDay": {
                    "type": "number"
                  },
                  "customParameters": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "targetMessageId": {
                    "type": "string"
                  },
                  "sourceMessageId": {
                    "type": "string"
                  },
                  "messageIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "last_message",
                      "current_message",
                      "last_bot_message",
                      "reply_message",
                      "range_from_reply",
                      "last_n",
                      "custom",
                      "last"
                    ],
                    "default": "last_message"
                  },
                  "messageIdManual": {
                    "type": "string"
                  },
                  "lastNCount": {
                    "type": "string"
                  },
                  "chatIdSource": {
                    "type": "string",
                    "enum": [
                      "current_chat",
                      "custom"
                    ],
                    "default": "current_chat"
                  },
                  "chatIdManual": {
                    "type": "string"
                  },
                  "ignoreErrors": {
                    "type": "boolean"
                  },
                  "bulkDelete": {
                    "type": "boolean",
                    "default": false
                  },
                  "bulkMessageIdsVariable": {
                    "type": "string"
                  },
                  "sourceMessageIdSource": {
                    "type": "string",
                    "enum": [
                      "current_message",
                      "last_message",
                      "manual",
                      "variable"
                    ],
                    "default": "current_message"
                  },
                  "sourceMessageNodeId": {
                    "type": "string"
                  },
                  "sourceMessageVariableName": {
                    "type": "string"
                  },
                  "variableName": {
                    "type": "string"
                  },
                  "disableNotification": {
                    "type": "boolean",
                    "default": false
                  },
                  "hideAuthor": {
                    "type": "boolean",
                    "default": false
                  },
                  "targetChatId": {
                    "type": "string"
                  },
                  "targetChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "admin_ids"
                    ],
                    "default": "manual"
                  },
                  "targetChatVariableName": {
                    "type": "string"
                  },
                  "targetChatTargets": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "targetChatIdSource": {
                          "type": "string",
                          "enum": [
                            "manual",
                            "variable",
                            "admin_ids"
                          ],
                          "default": "manual"
                        },
                        "targetChatId": {
                          "type": "string"
                        },
                        "targetChatVariableName": {
                          "type": "string"
                        },
                        "targetChatType": {
                          "type": "string",
                          "enum": [
                            "user",
                            "group"
                          ]
                        },
                        "targetThreadId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "targetThreadId": {
                    "type": "string"
                  },
                  "targetThreadIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ]
                  },
                  "targetThreadIdVariable": {
                    "type": "string"
                  },
                  "targetUserId": {
                    "type": "string"
                  },
                  "userIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "last_message",
                      "current_user",
                      "reply_user",
                      "custom"
                    ],
                    "default": "last_message"
                  },
                  "userIdManual": {
                    "type": "string"
                  },
                  "userVariableName": {
                    "type": "string"
                  },
                  "targetGroupId": {
                    "type": "string"
                  },
                  "stickerUrl": {
                    "type": "string"
                  },
                  "stickerFileId": {
                    "type": "string"
                  },
                  "voiceUrl": {
                    "type": "string"
                  },
                  "animationUrl": {
                    "type": "string"
                  },
                  "latitude": {
                    "type": "number"
                  },
                  "longitude": {
                    "type": "number"
                  },
                  "title": {
                    "type": "string"
                  },
                  "address": {
                    "type": "string"
                  },
                  "foursquareId": {
                    "type": "string"
                  },
                  "foursquareType": {
                    "type": "string"
                  },
                  "mapService": {
                    "type": "string",
                    "enum": [
                      "yandex",
                      "google",
                      "2gis",
                      "custom"
                    ],
                    "default": "custom"
                  },
                  "yandexMapUrl": {
                    "type": "string"
                  },
                  "googleMapUrl": {
                    "type": "string"
                  },
                  "gisMapUrl": {
                    "type": "string"
                  },
                  "mapZoom": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 20,
                    "default": 15
                  },
                  "showDirections": {
                    "type": "boolean",
                    "default": false
                  },
                  "generateMapPreview": {
                    "type": "boolean",
                    "default": true
                  },
                  "phoneNumber": {
                    "type": "string"
                  },
                  "firstName": {
                    "type": "string"
                  },
                  "lastName": {
                    "type": "string"
                  },
                  "userId": {
                    "type": "number"
                  },
                  "vcard": {
                    "type": "string"
                  },
                  "question": {
                    "type": "string"
                  },
                  "options": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "allowsMultipleAnswers": {
                    "type": "boolean",
                    "default": false
                  },
                  "anonymousVoting": {
                    "type": "boolean",
                    "default": true
                  },
                  "emoji": {
                    "type": "string"
                  },
                  "mediaDuration": {
                    "type": "number"
                  },
                  "width": {
                    "type": "number"
                  },
                  "height": {
                    "type": "number"
                  },
                  "performer": {
                    "type": "string"
                  },
                  "fileSize": {
                    "type": "number"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "inputType": {
                    "type": "string",
                    "enum": [
                      "text",
                      "number",
                      "email",
                      "phone",
                      "photo",
                      "video",
                      "audio",
                      "document",
                      "location",
                      "contact",
                      "any"
                    ],
                    "default": "text"
                  },
                  "responseType": {
                    "type": "string",
                    "enum": [
                      "text",
                      "buttons"
                    ],
                    "default": "text"
                  },
                  "responseOptions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        },
                        "action": {
                          "type": "string",
                          "enum": [
                            "goto",
                            "command",
                            "url"
                          ],
                          "default": "goto"
                        },
                        "target": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "allowMultipleSelection": {
                    "type": "boolean",
                    "default": false
                  },
                  "multiSelectVariable": {
                    "type": "string"
                  },
                  "continueButtonText": {
                    "type": "string"
                  },
                  "continueButtonTarget": {
                    "type": "string"
                  },
                  "inputVariable": {
                    "type": "string"
                  },
                  "inputPrompt": {
                    "type": "string"
                  },
                  "inputValidation": {
                    "type": "string"
                  },
                  "inputRequired": {
                    "type": "boolean",
                    "default": true
                  },
                  "inputTimeout": {
                    "type": "number"
                  },
                  "inputTimeoutMessage": {
                    "type": "string"
                  },
                  "inputRetryMessage": {
                    "type": "string"
                  },
                  "inputSuccessMessage": {
                    "type": "string"
                  },
                  "enableConditionalMessages": {
                    "type": "boolean",
                    "default": false
                  },
                  "conditionalMessages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "condition": {
                          "type": "string",
                          "enum": [
                            "user_data_exists",
                            "user_data_equals",
                            "user_data_not_exists",
                            "user_data_contains",
                            "first_time",
                            "returning_user"
                          ],
                          "default": "user_data_exists"
                        },
                        "variableName": {
                          "type": "string"
                        },
                        "variableNames": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "default": []
                        },
                        "logicOperator": {
                          "type": "string",
                          "enum": [
                            "AND",
                            "OR"
                          ],
                          "default": "AND"
                        },
                        "expectedValue": {
                          "type": "string"
                        },
                        "messageText": {
                          "type": "string"
                        },
                        "formatMode": {
                          "type": "string",
                          "enum": [
                            "text",
                            "markdown",
                            "html"
                          ],
                          "default": "text"
                        },
                        "keyboardType": {
                          "type": "string",
                          "enum": [
                            "reply",
                            "inline",
                            "none"
                          ],
                          "default": "none"
                        },
                        "buttons": {
                          "type": "array",
                          "items": {
                            "$ref": "#/properties/patch/properties/data/properties/buttons/items"
                          },
                          "default": []
                        },
                        "resizeKeyboard": {
                          "type": "boolean",
                          "default": true
                        },
                        "oneTimeKeyboard": {
                          "type": "boolean",
                          "default": false
                        },
                        "collectUserInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableTextInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enablePhotoInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableVideoInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableAudioInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableDocumentInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "inputVariable": {
                          "type": "string"
                        },
                        "photoInputVariable": {
                          "type": "string"
                        },
                        "videoInputVariable": {
                          "type": "string"
                        },
                        "audioInputVariable": {
                          "type": "string"
                        },
                        "documentInputVariable": {
                          "type": "string"
                        },
                        "waitForTextInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "textInputVariable": {
                          "type": "string"
                        },
                        "nextNodeAfterInput": {
                          "type": "string"
                        },
                        "priority": {
                          "type": "number",
                          "default": 0
                        }
                      },
                      "required": [
                        "id",
                        "messageText"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "fallbackMessage": {
                    "type": "string"
                  },
                  "saveToDatabase": {
                    "type": "boolean",
                    "default": false
                  },
                  "allowSkip": {
                    "type": "boolean",
                    "default": false
                  },
                  "collectUserInput": {
                    "type": "boolean",
                    "default": false
                  },
                  "inputTargetNodeId": {
                    "type": "string"
                  },
                  "inputButtonType": {
                    "type": "string",
                    "enum": [
                      "inline",
                      "reply"
                    ],
                    "default": "inline"
                  },
                  "enableAutoTransition": {
                    "type": "boolean",
                    "default": false
                  },
                  "autoTransitionTo": {
                    "type": "string"
                  },
                  "sourceNodeId": {
                    "type": "string"
                  },
                  "minLength": {
                    "type": "number"
                  },
                  "maxLength": {
                    "type": "number"
                  },
                  "placeholder": {
                    "type": "string"
                  },
                  "defaultValue": {
                    "type": "string"
                  },
                  "appendVariable": {
                    "type": "boolean",
                    "default": false
                  },
                  "saveMediaMetadata": {
                    "type": "boolean",
                    "default": false
                  },
                  "mediaMetadataSuffixes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "mediaMetadataCustomNames": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "default": {}
                  },
                  "variableFilters": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "default": {}
                  },
                  "enableUserActions": {
                    "type": "boolean",
                    "default": false
                  },
                  "actionTrigger": {
                    "type": "string",
                    "enum": [
                      "join",
                      "leave",
                      "message",
                      "button_click",
                      "custom"
                    ]
                  },
                  "triggerText": {
                    "type": "string"
                  },
                  "userActionType": {
                    "type": "string",
                    "enum": [
                      "message",
                      "command",
                      "button",
                      "media"
                    ]
                  },
                  "actionTag": {
                    "type": "string"
                  },
                  "actionMessage": {
                    "type": "string"
                  },
                  "silentAction": {
                    "type": "boolean",
                    "default": false
                  },
                  "mimeType": {
                    "type": "string"
                  },
                  "stickerSetName": {
                    "type": "string"
                  },
                  "fileName": {
                    "type": "string"
                  },
                  "city": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "enableTextInput": {
                    "type": "boolean"
                  },
                  "enablePhotoInput": {
                    "type": "boolean"
                  },
                  "enableVideoInput": {
                    "type": "boolean"
                  },
                  "enableAudioInput": {
                    "type": "boolean"
                  },
                  "enableDocumentInput": {
                    "type": "boolean"
                  },
                  "photoInputVariable": {
                    "type": "string"
                  },
                  "videoInputVariable": {
                    "type": "string"
                  },
                  "audioInputVariable": {
                    "type": "string"
                  },
                  "documentInputVariable": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "checkmarkSymbol": {
                    "type": "string"
                  },
                  "multiSelectCheckmark": {
                    "type": "string"
                  },
                  "radioSelectedSymbol": {
                    "type": "string"
                  },
                  "radioUnselectedSymbol": {
                    "type": "string"
                  },
                  "duration": {
                    "type": "number"
                  },
                  "muteDuration": {
                    "type": "number"
                  },
                  "reason": {
                    "type": "string"
                  },
                  "canChangeInfo": {
                    "type": "boolean",
                    "default": false
                  },
                  "canDeleteMessages": {
                    "type": "boolean",
                    "default": false
                  },
                  "canBanUsers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canInviteUsers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canPinMessages": {
                    "type": "boolean",
                    "default": false
                  },
                  "canAddAdmins": {
                    "type": "boolean",
                    "default": false
                  },
                  "canRestrictMembers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canPromoteMembers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canManageVideoChats": {
                    "type": "boolean",
                    "default": false
                  },
                  "canManageTopics": {
                    "type": "boolean",
                    "default": false
                  },
                  "isAnonymous": {
                    "type": "boolean",
                    "default": false
                  },
                  "canManageChat": {
                    "type": "boolean"
                  },
                  "canPostMessages": {
                    "type": "boolean"
                  },
                  "canEditMessages": {
                    "type": "boolean"
                  },
                  "canManageDirectMessages": {
                    "type": "boolean"
                  },
                  "canManageTags": {
                    "type": "boolean"
                  },
                  "canSendWelcomeMessages": {
                    "type": "boolean"
                  },
                  "canSendMessages": {
                    "type": "boolean",
                    "default": true
                  },
                  "canSendAudios": {
                    "type": "boolean"
                  },
                  "canSendDocuments": {
                    "type": "boolean"
                  },
                  "canSendPhotos": {
                    "type": "boolean"
                  },
                  "canSendVideos": {
                    "type": "boolean"
                  },
                  "canSendVideoNotes": {
                    "type": "boolean"
                  },
                  "canSendVoiceNotes": {
                    "type": "boolean"
                  },
                  "canReactToMessages": {
                    "type": "boolean"
                  },
                  "canSendPolls": {
                    "type": "boolean",
                    "default": true
                  },
                  "canSendOtherMessages": {
                    "type": "boolean",
                    "default": true
                  },
                  "canAddWebPagePreviews": {
                    "type": "boolean",
                    "default": true
                  },
                  "canChangeGroupInfo": {
                    "type": "boolean",
                    "default": true
                  },
                  "canInviteUsers2": {
                    "type": "boolean",
                    "default": true
                  },
                  "canPinMessages2": {
                    "type": "boolean",
                    "default": true
                  },
                  "untilDate": {
                    "type": "number"
                  },
                  "adminTargetUserId": {
                    "type": "string"
                  },
                  "adminUserIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "last_message"
                    ],
                    "default": "last_message"
                  },
                  "adminUserVariableName": {
                    "type": "string"
                  },
                  "can_manage_chat": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_post_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_edit_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_delete_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_post_stories": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_edit_stories": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_delete_stories": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_manage_video_chats": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_restrict_members": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_promote_members": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_change_info": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_invite_users": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_pin_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_manage_topics": {
                    "type": "boolean",
                    "default": false
                  },
                  "is_anonymous": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_manage_direct_messages": {
                    "type": "boolean"
                  },
                  "can_manage_tags": {
                    "type": "boolean"
                  },
                  "can_send_welcome_messages": {
                    "type": "boolean"
                  },
                  "adminChatId": {
                    "type": "string"
                  },
                  "adminChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "current_chat"
                    ],
                    "default": "current_chat"
                  },
                  "adminChatVariableName": {
                    "type": "string"
                  },
                  "attachedMedia": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "sendAsGifUrls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "text": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string"
                  },
                  "waitForTextInput": {
                    "type": "boolean"
                  },
                  "broadcastApiType": {
                    "type": "string",
                    "enum": [
                      "bot",
                      "client"
                    ],
                    "default": "bot"
                  },
                  "broadcastTargetNode": {
                    "type": "string"
                  },
                  "enableBroadcast": {
                    "type": "boolean",
                    "default": false
                  },
                  "enableConfirmation": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmationText": {
                    "type": "string"
                  },
                  "successMessage": {
                    "type": "string"
                  },
                  "errorMessage": {
                    "type": "string"
                  },
                  "sessionName": {
                    "type": "string",
                    "default": "user_session"
                  },
                  "sessionCreated": {
                    "type": "boolean",
                    "default": false
                  },
                  "textSynonyms": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "textMatchType": {
                    "type": "string",
                    "enum": [
                      "exact",
                      "contains"
                    ],
                    "default": "exact"
                  },
                  "variable": {
                    "type": "string"
                  },
                  "forumChatId": {
                    "type": "string"
                  },
                  "forumChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ],
                    "default": "manual"
                  },
                  "forumChatVariableName": {
                    "type": "string"
                  },
                  "topicName": {
                    "type": "string"
                  },
                  "topicIconColor": {
                    "type": "string"
                  },
                  "saveThreadIdTo": {
                    "type": "string"
                  },
                  "saveMessageIdTo": {
                    "type": "string"
                  },
                  "saveBotIdTo": {
                    "type": "string"
                  },
                  "saveBotUsernameTo": {
                    "type": "string"
                  },
                  "saveBotNameTo": {
                    "type": "string"
                  },
                  "saveCreatorIdTo": {
                    "type": "string"
                  },
                  "saveCreatorUsernameTo": {
                    "type": "string"
                  },
                  "filterByUserId": {
                    "type": "string"
                  },
                  "skipIfExists": {
                    "type": "boolean",
                    "default": false
                  },
                  "imtChatTypeFilter": {
                    "type": "string",
                    "enum": [
                      "any",
                      "private",
                      "group"
                    ],
                    "default": "any"
                  },
                  "imtGroupChatId": {
                    "type": "string"
                  },
                  "imtGroupChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ]
                  },
                  "imtStopOnFlag": {
                    "type": "boolean",
                    "default": true
                  },
                  "groupChatId": {
                    "type": "string"
                  },
                  "groupChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ]
                  },
                  "groupChatVariableName": {
                    "type": "string"
                  },
                  "threadIdVariable": {
                    "type": "string"
                  },
                  "resolvedUserIdVariable": {
                    "type": "string"
                  },
                  "memberEventType": {
                    "type": "string",
                    "enum": [
                      "join",
                      "leave",
                      "both"
                    ],
                    "default": "join"
                  },
                  "saveJoinedUserIdTo": {
                    "type": "string"
                  },
                  "saveJoinedUsernameTo": {
                    "type": "string"
                  },
                  "saveLeftUserIdTo": {
                    "type": "string"
                  },
                  "saveLeftUsernameTo": {
                    "type": "string"
                  },
                  "branches": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string",
                          "default": ""
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "filled",
                            "empty",
                            "equals",
                            "not_equals",
                            "contains",
                            "not_contains",
                            "starts_with",
                            "ends_with",
                            "matches_regex",
                            "greater_than",
                            "less_than",
                            "between",
                            "is_even",
                            "is_odd",
                            "divisible_by",
                            "else",
                            "is_private",
                            "is_group",
                            "is_channel",
                            "is_admin",
                            "is_premium",
                            "is_bot",
                            "is_subscribed",
                            "is_not_subscribed"
                          ]
                        },
                        "value": {
                          "type": "string"
                        },
                        "value2": {
                          "type": "string"
                        },
                        "valueRegex": {
                          "type": "string"
                        },
                        "target": {
                          "type": "string"
                        },
                        "subscriptionMode": {
                          "type": "string",
                          "enum": [
                            "all",
                            "any"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "operator",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "parallelBranches": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string",
                          "default": ""
                        },
                        "target": {
                          "type": "string"
                        },
                        "onErrorTarget": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "maxConcurrent": {
                    "type": "number",
                    "default": 5
                  },
                  "awaitAll": {
                    "type": "boolean",
                    "default": false
                  },
                  "skipIfRunning": {
                    "type": "boolean",
                    "default": true
                  },
                  "counterKey": {
                    "type": "string"
                  },
                  "windowSeconds": {
                    "type": "string"
                  },
                  "messageSendRecipients": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "user",
                            "chat_id",
                            "admin_ids"
                          ],
                          "default": "user"
                        },
                        "chatId": {
                          "type": "string"
                        },
                        "threadId": {
                          "type": "string"
                        },
                        "isGroup": {
                          "type": "boolean",
                          "default": false
                        },
                        "botToken": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "messageSendTarget": {
                    "type": "string"
                  },
                  "messageSendChatId": {
                    "type": "string"
                  },
                  "messageSendThreadId": {
                    "type": "string"
                  },
                  "httpRequestUrl": {
                    "type": "string"
                  },
                  "httpRequestMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST",
                      "PUT",
                      "PATCH",
                      "DELETE"
                    ],
                    "default": "GET"
                  },
                  "httpRequestHeaders": {
                    "type": "string"
                  },
                  "httpRequestBody": {
                    "type": "string"
                  },
                  "httpRequestTimeout": {
                    "type": "number",
                    "default": 30
                  },
                  "httpRequestResponseVariable": {
                    "type": "string"
                  },
                  "httpRequestResponseJsonPath": {
                    "type": "string"
                  },
                  "httpRequestResponseExtractTo": {
                    "type": "string"
                  },
                  "httpRequestStatusVariable": {
                    "type": "string"
                  },
                  "botIdSource": {
                    "type": "string"
                  },
                  "botIdVariable": {
                    "type": "string"
                  },
                  "botIdManual": {
                    "type": "string"
                  },
                  "saveTokenTo": {
                    "type": "string"
                  },
                  "saveErrorTo": {
                    "type": "string"
                  },
                  "httpRequestQueryParams": {
                    "type": "string"
                  },
                  "httpRequestBodyFormat": {
                    "type": "string",
                    "enum": [
                      "json",
                      "form-urlencoded",
                      "raw"
                    ],
                    "default": "json"
                  },
                  "httpRequestAuthType": {
                    "type": "string",
                    "enum": [
                      "none",
                      "basic",
                      "bearer",
                      "header",
                      "query"
                    ],
                    "default": "none"
                  },
                  "httpRequestAuthBearerToken": {
                    "type": "string"
                  },
                  "httpRequestAuthBasicUsername": {
                    "type": "string"
                  },
                  "httpRequestAuthBasicPassword": {
                    "type": "string"
                  },
                  "httpRequestAuthHeaderName": {
                    "type": "string"
                  },
                  "httpRequestAuthHeaderValue": {
                    "type": "string"
                  },
                  "httpRequestAuthQueryName": {
                    "type": "string"
                  },
                  "httpRequestAuthQueryValue": {
                    "type": "string"
                  },
                  "httpRequestResponseFormat": {
                    "type": "string",
                    "enum": [
                      "autodetect",
                      "json",
                      "text",
                      "file"
                    ],
                    "default": "autodetect"
                  },
                  "httpRequestIgnoreHttpErrors": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestIgnoreSsl": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestFollowRedirects": {
                    "type": "boolean",
                    "default": true
                  },
                  "httpRequestEnablePagination": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestPaginationMode": {
                    "type": "string",
                    "enum": [
                      "interactive",
                      "fetch_all"
                    ],
                    "default": "interactive"
                  },
                  "httpRequestPaginationOffsetVar": {
                    "type": "string"
                  },
                  "httpRequestPaginationTotalField": {
                    "type": "string",
                    "default": "count"
                  },
                  "httpRequestPaginationItemsField": {
                    "type": "string",
                    "default": "items"
                  },
                  "httpRequestPaginationLimit": {
                    "type": "number",
                    "default": 10
                  },
                  "httpRequestPaginationMaxPages": {
                    "type": "number",
                    "default": 20
                  },
                  "httpRequestBatchEnabled": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestBatchSource": {
                    "type": "string"
                  },
                  "httpRequestBatchItemVar": {
                    "type": "string",
                    "default": "item"
                  },
                  "httpRequestBatchResultVariable": {
                    "type": "string"
                  },
                  "httpRequestBatchResultFields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "key",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "attachedMediaThumbnails": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "default": {}
                  },
                  "query": {
                    "type": "string",
                    "default": ""
                  },
                  "connectionSource": {
                    "type": "string",
                    "enum": [
                      "builtin",
                      "env",
                      "custom"
                    ]
                  },
                  "connectionEnvVar": {
                    "type": "string"
                  },
                  "connectionString": {
                    "type": "string"
                  },
                  "saveResultTo": {
                    "type": "string",
                    "default": ""
                  },
                  "resultFormat": {
                    "type": "string",
                    "enum": [
                      "json",
                      "text",
                      "first_row",
                      "affected",
                      "all_rows",
                      "scalar",
                      "count",
                      "random_row"
                    ],
                    "default": "first_row"
                  },
                  "textTemplate": {
                    "type": "string",
                    "default": ""
                  },
                  "assignments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "variable": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "text",
                            "expression",
                            "lookup",
                            "str_replace",
                            "json_push",
                            "json_format",
                            "random",
                            "random_item",
                            "array_item",
                            "timestamp",
                            "format_duration",
                            "format_number",
                            "regex_extract",
                            "extract_number",
                            "split_get",
                            "json_get",
                            "substring",
                            "conditional",
                            "lowercase",
                            "uppercase",
                            "trim",
                            "length",
                            "array_concat"
                          ],
                          "default": "text"
                        },
                        "lookupTable": {
                          "type": "string",
                          "default": ""
                        },
                        "lookupField": {
                          "type": "string",
                          "default": ""
                        },
                        "lookupWhere": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "field",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          "default": []
                        },
                        "replaceWith": {
                          "type": "string",
                          "default": ""
                        },
                        "pattern": {
                          "type": "string",
                          "default": ""
                        },
                        "regexGroup": {
                          "type": "string",
                          "default": "0"
                        },
                        "maxValue": {
                          "type": "string",
                          "default": ""
                        },
                        "separator": {
                          "type": "string",
                          "default": ""
                        },
                        "jsonPath": {
                          "type": "string",
                          "default": ""
                        },
                        "startIndex": {
                          "type": "string",
                          "default": "0"
                        },
                        "endIndex": {
                          "type": "string",
                          "default": ""
                        },
                        "conditionVariable": {
                          "type": "string",
                          "default": ""
                        },
                        "conditionOperator": {
                          "type": "string",
                          "default": "equals"
                        },
                        "conditionValue": {
                          "type": "string",
                          "default": ""
                        },
                        "trueValue": {
                          "type": "string",
                          "default": ""
                        },
                        "falseValue": {
                          "type": "string",
                          "default": ""
                        },
                        "concatWith": {
                          "type": "string",
                          "default": ""
                        },
                        "skipIfEmpty": {
                          "type": "string",
                          "default": ""
                        },
                        "persistToDb": {
                          "type": "boolean",
                          "default": true
                        }
                      },
                      "required": [
                        "id",
                        "variable",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "convertFileMode": {
                    "type": "string",
                    "enum": [
                      "toFile"
                    ],
                    "default": "toFile"
                  },
                  "convertFileInputVariable": {
                    "type": "string",
                    "default": ""
                  },
                  "convertFileFormat": {
                    "type": "string",
                    "enum": [
                      "csv",
                      "json"
                    ],
                    "default": "csv"
                  },
                  "convertFileFileName": {
                    "type": "string",
                    "default": "export_{date}.csv"
                  },
                  "convertFileCsvDelimiter": {
                    "type": "string",
                    "default": ","
                  },
                  "convertFileIncludeHeaderRow": {
                    "type": "boolean",
                    "default": true
                  },
                  "convertFileOutputVariable": {
                    "type": "string",
                    "default": ""
                  },
                  "code": {
                    "type": "string",
                    "default": ""
                  },
                  "apiMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST",
                      "PUT",
                      "PATCH",
                      "DELETE"
                    ],
                    "default": "POST"
                  },
                  "apiPath": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSecretToken": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSaveBodyTo": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSaveQueryTo": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSaveHeadersTo": {
                    "type": "string",
                    "default": ""
                  },
                  "apiParseJson": {
                    "type": "boolean",
                    "default": true
                  },
                  "apiResponseStatusCode": {
                    "type": "number",
                    "default": 200
                  },
                  "apiResponseBody": {
                    "type": "string",
                    "default": "{\"ok\":true}"
                  },
                  "apiResponseContentType": {
                    "type": "string",
                    "enum": [
                      "application/json",
                      "text/plain",
                      "text/html"
                    ],
                    "default": "application/json"
                  },
                  "apiResponseHeaders": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "key",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "invoiceTitle": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceDescription": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceAmount": {
                    "type": "string",
                    "default": "1"
                  },
                  "invoicePrices": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "amount": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "label",
                        "amount"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "invoiceCurrency": {
                    "type": "string",
                    "default": "XTR"
                  },
                  "invoiceProviderSource": {
                    "type": "string",
                    "default": "inline"
                  },
                  "invoiceProviderToken": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceProviderTokenEnv": {
                    "type": "string",
                    "default": "PAYMENT_PROVIDER_TOKEN"
                  },
                  "invoiceNeedName": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceNeedEmail": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceNeedPhone": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceNeedShipping": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceIsFlexible": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceSendPhoneToProvider": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceSendEmailToProvider": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceProtectContent": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceMaxTipAmount": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceSuggestedTipAmounts": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceProviderData": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceStartParameter": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceSubscription": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoicePhotoUrl": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePhotoSize": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePhotoWidth": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePhotoHeight": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceMessageThreadId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceDirectMessagesTopicId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceDisableNotification": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceReplyToMessageId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceMessageEffectId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceAllowPaidBroadcast": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceSuggestedPostParams": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePayload": {
                    "type": "string",
                    "default": ""
                  },
                  "savePaymentAmountTo": {
                    "type": "string",
                    "default": ""
                  },
                  "savePaymentChargeIdTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveOrderNameTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveOrderEmailTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveOrderPhoneTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveInvoiceLinkTo": {
                    "type": "string",
                    "default": ""
                  },
                  "afterPaymentTo": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutMode": {
                    "type": "string",
                    "default": "always"
                  },
                  "preCheckoutVariable": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutOperator": {
                    "type": "string",
                    "default": "filled"
                  },
                  "preCheckoutValue": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutValue2": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutErrorMessage": {
                    "type": "string",
                    "default": ""
                  },
                  "refundUserSource": {
                    "type": "string",
                    "default": "current_user"
                  },
                  "refundUserId": {
                    "type": "string",
                    "default": ""
                  },
                  "refundChargeId": {
                    "type": "string",
                    "default": ""
                  },
                  "refundMsgEmpty": {
                    "type": "string",
                    "default": "Пожалуйста, укажите код покупки: /back КОД"
                  },
                  "refundMsgNotFound": {
                    "type": "string",
                    "default": "Такой код покупки не найден. Проверьте данные и попробуйте снова."
                  },
                  "refundMsgAlreadyRefunded": {
                    "type": "string",
                    "default": "За эту покупку уже ранее был произведён возврат."
                  },
                  "refundEmptyTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "refundNotFoundTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "refundAlreadyRefundedTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionUserSource": {
                    "type": "string",
                    "default": "current_user"
                  },
                  "subscriptionUserId": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionChargeId": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionAction": {
                    "type": "string",
                    "default": "cancel"
                  },
                  "subscriptionMsgEmpty": {
                    "type": "string",
                    "default": "Укажите код покупки подписки"
                  },
                  "subscriptionMsgError": {
                    "type": "string",
                    "default": "Не удалось изменить автопродление. Проверьте код покупки."
                  },
                  "subscriptionEmptyTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionErrorTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "saveStarBalanceTo": {
                    "type": "string",
                    "default": "star_balance"
                  },
                  "balanceMsgError": {
                    "type": "string",
                    "default": "Не удалось получить баланс звёзд"
                  },
                  "balanceErrorTarget": {
                    "type": "string",
                    "default": ""
                  }
                },
                "additionalProperties": true
              }
            },
            "additionalProperties": false,
            "description": "Только изменяемые поля: position, data, type"
          },
          "sheet_id": {
            "type": "string",
            "description": "ID листа (иначе автопоиск по всем листам)"
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          }
        },
        "required": [
          "project_id",
          "node_id",
          "patch"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_update_table_row",
      "section": "tables",
      "description": "Полностью заменить ячейки строки.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number"
          },
          "table_id": {
            "type": "number"
          },
          "row_id": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Ключ — числовой id столбца строкой, значение — текст, пустая строка допустима"
          }
        },
        "required": [
          "project_id",
          "table_id",
          "row_id",
          "data"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "tables",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "tables",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1,
        "table_id": 1,
        "row_id": 1,
        "data": {}
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_update_template",
      "section": "templates",
      "description": "Сохраняет изменения собственного шаблона. Чужие шаблоны сервер запрещает изменять.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "template_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "data": {},
          "category": {
            "type": "string",
            "enum": [
              "custom",
              "business",
              "entertainment",
              "education",
              "utility",
              "games",
              "official",
              "community"
            ],
            "default": "custom"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "isPublic": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "default": 0
          },
          "difficulty": {
            "type": "string",
            "enum": [
              "easy",
              "medium",
              "hard"
            ],
            "default": "easy"
          },
          "authorId": {
            "type": [
              "string",
              "null"
            ]
          },
          "authorName": {
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "type": "string",
            "default": "1.0.0"
          },
          "previewImage": {
            "type": [
              "string",
              "null"
            ]
          },
          "language": {
            "type": "string",
            "enum": [
              "ru",
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "zh",
              "ja",
              "ko"
            ],
            "default": "ru"
          },
          "requiresToken": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "default": 0
          },
          "complexity": {
            "type": "number",
            "minimum": 1,
            "maximum": 10,
            "default": 1
          },
          "estimatedTime": {
            "type": "number",
            "minimum": 1,
            "maximum": 120,
            "default": 5
          }
        },
        "required": [
          "template_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "templates",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "templates",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "template_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_update_user",
      "section": "users",
      "description": "Сохраняет isActive пользователя выбранного бота. Другие переменные сервер этим действием не изменяет.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "token_id": {
            "$ref": "#/properties/project_id"
          },
          "user_id": {
            "type": "string",
            "pattern": "^[1-9]\\d{0,19}$"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "user_id",
          "isActive"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "users",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "users",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_upload_project_file",
      "section": "files",
      "description": "Загружает переданные байты base64, максимум 2 МиБ. Не принимает пути файлов компьютера или сервера; имя без каталогов.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "file_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160,
            "pattern": "^[^\\\\/\\x00-\\x1f]+$"
          },
          "mime_type": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "base64": {
            "type": "string",
            "minLength": 4,
            "maxLength": 2796204,
            "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
          }
        },
        "required": [
          "project_id",
          "file_name",
          "mime_type",
          "base64"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false,
        "idempotentHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "files",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "files",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_use_template",
      "section": "templates",
      "description": "Копирует доступный шаблон в новый проект и личную коллекцию. Повторный вызов создаёт новую копию.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "template_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "requestId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "template_id",
          "requestId"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false,
        "idempotentHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "templates",
          "effect": "write",
          "completionMode": "immediate",
          "destructive": false,
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "templates",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "template_id": 1,
        "requestId": "11111111-1111-4111-8111-111111111111"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_userbot_send_code",
      "section": "settings",
      "description": "Шаг 1: отправить код входа Telethon. Без api_hash используется сохранённый API Hash. Сначала сохраните API ID и Hash через db_set_userbot_settings; затем вызовите db_userbot_sign_in для того же токена.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "ID проекта"
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "ID токена из db_list_bot_tokens"
          },
          "api_id": {
            "type": "string",
            "minLength": 1,
            "description": "API ID приложения Telegram"
          },
          "phone": {
            "type": "string",
            "minLength": 1,
            "description": "Телефон аккаунта с кодом страны"
          },
          "api_hash": {
            "type": "string",
            "description": "API Hash; можно пропустить, если сохранён"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "api_id",
          "phone"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "settings",
          "effect": "external",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "settings",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_userbot_sign_in",
      "section": "settings",
      "description": "Шаг 2: вход по коду после db_userbot_send_code. При needs_2fa=true вызовите db_userbot_sign_in_2fa. Успешный вход сохраняет сессию и включает режим; затем нужен запуск или перезапуск бота.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "ID проекта"
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "ID токена из db_list_bot_tokens"
          },
          "phone": {
            "type": "string",
            "minLength": 1,
            "description": "Телефон из шага отправки кода"
          },
          "code": {
            "type": "string",
            "minLength": 1,
            "description": "Код входа из Telegram"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "phone",
          "code"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "settings",
          "effect": "external",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "settings",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "db_userbot_sign_in_2fa",
      "section": "settings",
      "description": "Шаг 3: пароль 2FA после needs_2fa=true. Сессия сохраняется сервером, режим включается. Для применения нужен запуск или перезапуск бота; автоматически он не выполняется.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "ID проекта"
          },
          "token_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "ID токена из db_list_bot_tokens"
          },
          "password": {
            "type": "string",
            "minLength": 1,
            "description": "Пароль второго фактора Telegram"
          }
        },
        "required": [
          "project_id",
          "token_id",
          "password"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "settings",
          "effect": "external",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "settings",
        "effect": "external",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "generate_bot_code",
      "section": "scenario",
      "description": "Генерация bot.py из валидного project.json",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_json": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "additionalProperties": {}
              }
            ],
            "description": "project.json"
          },
          "bot_name": {
            "type": "string",
            "description": "Имя бота для генерации"
          },
          "skip_validation": {
            "type": "boolean",
            "description": "Пропустить validate_bot_project"
          }
        },
        "required": [
          "project_json"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "prepare",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "prepare",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_json": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "get_node_docs",
      "section": "reference",
      "description": "Возвращает подробное руководство по поведению ноды для человека и ИИ-агента",
      "inputSchema": {
        "type": "object",
        "properties": {
          "node_type": {
            "type": "string",
            "minLength": 1,
            "description": "Тип ноды, например input или code"
          }
        },
        "required": [
          "node_type"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "reference",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "reference",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "node_type": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "get_node_example",
      "section": "reference",
      "description": "Эталонный пример ноды — копируй формат data отсюда",
      "inputSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Тип ноды"
          }
        },
        "required": [
          "type"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "reference",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "reference",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "type": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "get_node_schema",
      "section": "reference",
      "description": "Схема и правила формата ноды по типу (обязательно перед созданием нод)",
      "inputSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Тип ноды, например condition, message, command_trigger"
          }
        },
        "required": [
          "type"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "reference",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "reference",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "type": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "get_project_db",
      "section": "scenario",
      "description": "Прочитать весь сценарий проекта из БД живого приложения (тяжёлый: возвращает полный BotDataWithSheets). Адресация по числовому projectId из URL редактора",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          }
        },
        "required": [
          "project_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_id": 1
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "get_prompt_guide",
      "section": "reference",
      "description": "Полный гайд project.json (docs/bot-json-prompt.md). В т.ч. правило: команды только латиницей (не /купить)",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "reference",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "reference",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {},
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "get_rule_docs",
      "section": "reference",
      "description": "Возвращает тематические правила Bot Builder",
      "inputSchema": {
        "type": "object",
        "properties": {
          "rule_name": {
            "type": "string",
            "minLength": 1,
            "description": "Имя правила, например variables"
          }
        },
        "required": [
          "rule_name"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "reference",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "reference",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "rule_name": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "get_tool_docs",
      "section": "reference",
      "description": "Карточка MCP-инструмента: назначение, момент вызова, ограничения и связанные тулы",
      "inputSchema": {
        "type": "object",
        "properties": {
          "tool_name": {
            "type": "string",
            "description": "Имя MCP-инструмента"
          }
        },
        "required": [
          "tool_name"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "reference",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "reference",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "tool_name": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "get_workflow_docs",
      "section": "reference",
      "description": "Возвращает рекомендуемую последовательность MCP-инструментов для задачи",
      "inputSchema": {
        "type": "object",
        "properties": {
          "task": {
            "type": "string",
            "minLength": 1,
            "description": "Описание задачи обычным языком"
          }
        },
        "required": [
          "task"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "reference",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "reference",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "task": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "list_commands",
      "section": "reference",
      "description": "Стандартные и допустимые команды Telegram (/start, /help, /paysupport…). Свои command_trigger — только латиница a-z0-9_ (/buy, /refund); кириллица в команде запрещена",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "reference",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "reference",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {},
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "list_node_types",
      "section": "reference",
      "description": "Список всех типов нод конструктора с кратким описанием",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "reference",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "reference",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {},
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "list_operators",
      "section": "reference",
      "description": "Допустимые операторы condition-ноды (белый список)",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "reference",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "reference",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {},
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "load_project",
      "section": "projects",
      "description": "Прочитать project.json бота с диска (из каталога bots/)",
      "inputSchema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "Путь к папке бота или project.json внутри bots/, напр. \"сценарий/бот\" или \"exchanger-monitor\""
          }
        },
        "required": [
          "path"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "projects",
          "effect": "file",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "projects",
        "effect": "file",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "path": "1"
      },
      "transports": [
        "stdio"
      ]
    },
    {
      "id": "remove_node",
      "section": "scenario",
      "description": "Удалить ноду из project.json. Без sheet_id ищет ноду по всем листам; если не найдена — ошибка",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_json": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "additionalProperties": {}
              }
            ]
          },
          "node_id": {
            "type": "string"
          },
          "sheet_id": {
            "type": "string",
            "description": "ID листа (иначе автопоиск по всем листам)"
          }
        },
        "required": [
          "project_json",
          "node_id"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "prepare",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "prepare",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_json": "1",
        "node_id": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "save_project",
      "section": "projects",
      "description": "Записать project.json на диск в каталог bots/ (с валидацией перед записью)",
      "inputSchema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "Путь к папке бота или project.json внутри bots/"
          },
          "project_json": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "additionalProperties": {}
              }
            ],
            "description": "project.json"
          },
          "skip_validation": {
            "type": "boolean",
            "description": "Пропустить валидацию перед записью"
          }
        },
        "required": [
          "path",
          "project_json"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "projects",
          "effect": "file",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "projects",
        "effect": "file",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "path": "1",
        "project_json": "1"
      },
      "transports": [
        "stdio"
      ]
    },
    {
      "id": "scaffold_minimal_project",
      "section": "scenario",
      "description": "Создать пустой project.json v2 со стартовой парой /start → message (или переданными нодами)",
      "inputSchema": {
        "type": "object",
        "properties": {
          "sheet_name": {
            "type": "string",
            "description": "Имя листа"
          },
          "nodes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            },
            "description": "Массив готовых нод"
          }
        },
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "prepare",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "prepare",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {},
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "search_docs",
      "section": "reference",
      "description": "Ищет по карточкам MCP, руководствам нод, правилам и workflow",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 1,
            "description": "Поисковый запрос"
          }
        },
        "required": [
          "query"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "reference",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "reference",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "query": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "search_tool_docs",
      "section": "reference",
      "description": "Ищет карточки MCP-инструментов по имени, назначению и ограничениям",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 1,
            "description": "Поисковый запрос"
          }
        },
        "required": [
          "query"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "reference",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "reference",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "query": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "update_node",
      "section": "scenario",
      "description": "Обновить ноду в project.json по id. Без sheet_id ищет ноду по всем листам; если не найдена — ошибка (не silent ok)",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_json": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "additionalProperties": {}
              }
            ]
          },
          "node_id": {
            "type": "string"
          },
          "patch": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "start",
                  "message",
                  "command",
                  "command_trigger",
                  "text_trigger",
                  "incoming_message_trigger",
                  "incoming_callback_trigger",
                  "outgoing_message_trigger",
                  "group_message_trigger",
                  "member_trigger",
                  "callback_trigger",
                  "managed_bot_updated_trigger",
                  "schedule_trigger",
                  "api_trigger",
                  "sticker",
                  "voice",
                  "animation",
                  "location",
                  "contact",
                  "pin_message",
                  "unpin_message",
                  "delete_message",
                  "forward_message",
                  "ban_user",
                  "unban_user",
                  "mute_user",
                  "unmute_user",
                  "kick_user",
                  "promote_user",
                  "demote_user",
                  "admin_rights",
                  "photo",
                  "video",
                  "audio",
                  "document",
                  "keyboard",
                  "input",
                  "condition",
                  "broadcast",
                  "client_auth",
                  "media",
                  "create_forum_topic",
                  "http_request",
                  "get_managed_bot_token",
                  "answer_callback_query",
                  "edit_message",
                  "set_variable",
                  "psql_query",
                  "convert_file",
                  "loop",
                  "bot_table",
                  "delay",
                  "api_response",
                  "userbot_message",
                  "userbot_click_button",
                  "userbot_inline_query",
                  "userbot_edit_trigger",
                  "parallel_split",
                  "stop_processing",
                  "rate_counter",
                  "code",
                  "comment",
                  "send_invoice",
                  "create_invoice_link",
                  "refund_stars",
                  "edit_star_subscription",
                  "get_star_balance",
                  "successful_payment_trigger"
                ]
              },
              "position": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "data": {
                "type": "object",
                "properties": {
                  "userbotEntity": {
                    "type": "string"
                  },
                  "userbotEntitySource": {
                    "type": "string"
                  },
                  "userbotEntityVariable": {
                    "type": "string"
                  },
                  "userbotRecipients": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "messageId": {
                    "type": "string"
                  },
                  "clickMode": {
                    "type": "string",
                    "enum": [
                      "text",
                      "data",
                      "index"
                    ]
                  },
                  "clickDelivery": {
                    "type": "string",
                    "enum": [
                      "fire_and_forget",
                      "await"
                    ]
                  },
                  "clickValue": {
                    "type": "string"
                  },
                  "responseStrategy": {
                    "type": "string",
                    "enum": [
                      "first",
                      "longest",
                      "regex_match",
                      "last",
                      "edit",
                      "new_message"
                    ]
                  },
                  "responseWaitSeconds": {
                    "type": "number"
                  },
                  "responseFilterRegex": {
                    "type": "string"
                  },
                  "responseFloorMessageIdVar": {
                    "type": "string"
                  },
                  "saveAlertTo": {
                    "type": "string"
                  },
                  "saveButtonsTo": {
                    "type": "string"
                  },
                  "saveHasMediaTo": {
                    "type": "string"
                  },
                  "saveMediaTo": {
                    "type": "string"
                  },
                  "saveResponseIdTo": {
                    "type": "string"
                  },
                  "saveResponseTextTo": {
                    "type": "string"
                  },
                  "botUsername": {
                    "type": "string"
                  },
                  "targetChat": {
                    "type": "string"
                  },
                  "sendToSameChat": {
                    "type": "boolean"
                  },
                  "resultIndex": {
                    "type": "string"
                  },
                  "saveResultTitleTo": {
                    "type": "string"
                  },
                  "saveResultDescTo": {
                    "type": "string"
                  },
                  "filterType": {
                    "type": "string",
                    "enum": [
                      "any",
                      "contains",
                      "regex"
                    ]
                  },
                  "filterValue": {
                    "type": "string"
                  },
                  "saveTextTo": {
                    "type": "string"
                  },
                  "saveChatIdTo": {
                    "type": "string"
                  },
                  "saveSenderIdTo": {
                    "type": "string"
                  },
                  "command": {
                    "type": "string"
                  },
                  "deepLinkParam": {
                    "type": "string"
                  },
                  "deepLinkMatchMode": {
                    "type": "string",
                    "enum": [
                      "exact",
                      "startsWith"
                    ]
                  },
                  "deepLinkSaveToVar": {
                    "type": "boolean"
                  },
                  "deepLinkVarName": {
                    "type": "string"
                  },
                  "commentColor": {
                    "type": "string",
                    "enum": [
                      "yellow",
                      "blue",
                      "green",
                      "pink",
                      "gray"
                    ]
                  },
                  "rules": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": [
                            "interval",
                            "weekday",
                            "monthday",
                            "cron"
                          ]
                        },
                        "intervalMinutes": {
                          "type": "number"
                        },
                        "days": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "hour": {
                          "type": "number"
                        },
                        "minute": {
                          "type": "number"
                        },
                        "monthDays": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        },
                        "cronExpression": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "mode"
                      ],
                      "additionalProperties": true
                    }
                  },
                  "timezone": {
                    "type": "string"
                  },
                  "runOnStart": {
                    "type": "boolean"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "description": {
                    "type": "string"
                  },
                  "messageText": {
                    "type": "string"
                  },
                  "imageUrl": {
                    "type": "string"
                  },
                  "videoUrl": {
                    "type": "string"
                  },
                  "audioUrl": {
                    "type": "string"
                  },
                  "documentUrl": {
                    "type": "string"
                  },
                  "documentName": {
                    "type": "string"
                  },
                  "mediaCaption": {
                    "type": "string"
                  },
                  "keyboardType": {
                    "type": "string",
                    "enum": [
                      "reply",
                      "inline",
                      "none"
                    ],
                    "default": "none"
                  },
                  "keyboardNodeId": {
                    "type": "string"
                  },
                  "seconds": {
                    "type": "string"
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "seconds",
                      "minutes",
                      "hours",
                      "days",
                      "weeks"
                    ]
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "blocking",
                      "background"
                    ]
                  },
                  "buttons": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "action": {
                          "type": "string",
                          "enum": [
                            "goto",
                            "command",
                            "url",
                            "contact",
                            "location",
                            "selection",
                            "complete",
                            "default",
                            "copy_text",
                            "web_app",
                            "request_managed_bot",
                            "pay"
                          ],
                          "default": "goto"
                        },
                        "copyText": {
                          "type": "string"
                        },
                        "webAppUrl": {
                          "type": "string"
                        },
                        "target": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "requestContact": {
                          "type": "boolean"
                        },
                        "requestLocation": {
                          "type": "boolean"
                        },
                        "buttonType": {
                          "type": "string",
                          "enum": [
                            "normal",
                            "option",
                            "complete"
                          ],
                          "default": "normal"
                        },
                        "skipDataCollection": {
                          "type": "boolean",
                          "default": false
                        },
                        "hideAfterClick": {
                          "type": "boolean",
                          "default": false
                        },
                        "customCallbackData": {
                          "type": "string"
                        },
                        "style": {
                          "type": "string",
                          "enum": [
                            "primary",
                            "success",
                            "danger"
                          ]
                        },
                        "suggestedBotName": {
                          "type": "string"
                        },
                        "suggestedBotUsername": {
                          "type": "string"
                        },
                        "selectionGroup": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "shuffleButtons": {
                    "type": "boolean",
                    "default": false
                  },
                  "enableDynamicButtons": {
                    "type": "boolean",
                    "default": false
                  },
                  "dynamicButtons": {
                    "type": "object",
                    "properties": {
                      "sourceVariable": {
                        "type": "string",
                        "default": ""
                      },
                      "arrayPath": {
                        "type": "string",
                        "default": ""
                      },
                      "textTemplate": {
                        "type": "string",
                        "default": ""
                      },
                      "callbackTemplate": {
                        "type": "string",
                        "default": ""
                      },
                      "styleMode": {
                        "type": "string",
                        "enum": [
                          "field",
                          "template",
                          "none"
                        ],
                        "default": "none"
                      },
                      "styleField": {
                        "type": "string",
                        "default": ""
                      },
                      "styleTemplate": {
                        "type": "string",
                        "default": ""
                      },
                      "columns": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 6,
                        "default": 2
                      }
                    },
                    "additionalProperties": true
                  },
                  "keyboardLayout": {
                    "type": "object",
                    "properties": {
                      "rows": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "buttonIds": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "buttonIds"
                          ],
                          "additionalProperties": false
                        },
                        "default": []
                      },
                      "columns": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 6,
                        "default": 2
                      },
                      "autoLayout": {
                        "type": "boolean",
                        "default": true
                      }
                    },
                    "additionalProperties": false
                  },
                  "oneTimeKeyboard": {
                    "type": "boolean",
                    "default": false
                  },
                  "resizeKeyboard": {
                    "type": "boolean",
                    "default": true
                  },
                  "markdown": {
                    "type": "boolean",
                    "default": false
                  },
                  "formatMode": {
                    "type": "string",
                    "enum": [
                      "html",
                      "markdown",
                      "none"
                    ],
                    "default": "none"
                  },
                  "disableLinkPreview": {
                    "type": "boolean",
                    "default": false
                  },
                  "synonyms": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "matchMode": {
                    "type": "string",
                    "enum": [
                      "exact",
                      "contains",
                      "fuzzy"
                    ],
                    "default": "exact"
                  },
                  "adminOnly": {
                    "type": "boolean",
                    "default": false
                  },
                  "requiresAuth": {
                    "type": "boolean",
                    "default": false
                  },
                  "showInMenu": {
                    "type": "boolean",
                    "default": true
                  },
                  "saveCommandArgsTo": {
                    "type": "string",
                    "default": ""
                  },
                  "commandTimeout": {
                    "type": "number"
                  },
                  "cooldownTime": {
                    "type": "number"
                  },
                  "maxUsagesPerDay": {
                    "type": "number"
                  },
                  "customParameters": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "targetMessageId": {
                    "type": "string"
                  },
                  "sourceMessageId": {
                    "type": "string"
                  },
                  "messageIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "last_message",
                      "current_message",
                      "last_bot_message",
                      "reply_message",
                      "range_from_reply",
                      "last_n",
                      "custom",
                      "last"
                    ],
                    "default": "last_message"
                  },
                  "messageIdManual": {
                    "type": "string"
                  },
                  "lastNCount": {
                    "type": "string"
                  },
                  "chatIdSource": {
                    "type": "string",
                    "enum": [
                      "current_chat",
                      "custom"
                    ],
                    "default": "current_chat"
                  },
                  "chatIdManual": {
                    "type": "string"
                  },
                  "ignoreErrors": {
                    "type": "boolean"
                  },
                  "bulkDelete": {
                    "type": "boolean",
                    "default": false
                  },
                  "bulkMessageIdsVariable": {
                    "type": "string"
                  },
                  "sourceMessageIdSource": {
                    "type": "string",
                    "enum": [
                      "current_message",
                      "last_message",
                      "manual",
                      "variable"
                    ],
                    "default": "current_message"
                  },
                  "sourceMessageNodeId": {
                    "type": "string"
                  },
                  "sourceMessageVariableName": {
                    "type": "string"
                  },
                  "variableName": {
                    "type": "string"
                  },
                  "disableNotification": {
                    "type": "boolean",
                    "default": false
                  },
                  "hideAuthor": {
                    "type": "boolean",
                    "default": false
                  },
                  "targetChatId": {
                    "type": "string"
                  },
                  "targetChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "admin_ids"
                    ],
                    "default": "manual"
                  },
                  "targetChatVariableName": {
                    "type": "string"
                  },
                  "targetChatTargets": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "targetChatIdSource": {
                          "type": "string",
                          "enum": [
                            "manual",
                            "variable",
                            "admin_ids"
                          ],
                          "default": "manual"
                        },
                        "targetChatId": {
                          "type": "string"
                        },
                        "targetChatVariableName": {
                          "type": "string"
                        },
                        "targetChatType": {
                          "type": "string",
                          "enum": [
                            "user",
                            "group"
                          ]
                        },
                        "targetThreadId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "targetThreadId": {
                    "type": "string"
                  },
                  "targetThreadIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ]
                  },
                  "targetThreadIdVariable": {
                    "type": "string"
                  },
                  "targetUserId": {
                    "type": "string"
                  },
                  "userIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "last_message",
                      "current_user",
                      "reply_user",
                      "custom"
                    ],
                    "default": "last_message"
                  },
                  "userIdManual": {
                    "type": "string"
                  },
                  "userVariableName": {
                    "type": "string"
                  },
                  "targetGroupId": {
                    "type": "string"
                  },
                  "stickerUrl": {
                    "type": "string"
                  },
                  "stickerFileId": {
                    "type": "string"
                  },
                  "voiceUrl": {
                    "type": "string"
                  },
                  "animationUrl": {
                    "type": "string"
                  },
                  "latitude": {
                    "type": "number"
                  },
                  "longitude": {
                    "type": "number"
                  },
                  "title": {
                    "type": "string"
                  },
                  "address": {
                    "type": "string"
                  },
                  "foursquareId": {
                    "type": "string"
                  },
                  "foursquareType": {
                    "type": "string"
                  },
                  "mapService": {
                    "type": "string",
                    "enum": [
                      "yandex",
                      "google",
                      "2gis",
                      "custom"
                    ],
                    "default": "custom"
                  },
                  "yandexMapUrl": {
                    "type": "string"
                  },
                  "googleMapUrl": {
                    "type": "string"
                  },
                  "gisMapUrl": {
                    "type": "string"
                  },
                  "mapZoom": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 20,
                    "default": 15
                  },
                  "showDirections": {
                    "type": "boolean",
                    "default": false
                  },
                  "generateMapPreview": {
                    "type": "boolean",
                    "default": true
                  },
                  "phoneNumber": {
                    "type": "string"
                  },
                  "firstName": {
                    "type": "string"
                  },
                  "lastName": {
                    "type": "string"
                  },
                  "userId": {
                    "type": "number"
                  },
                  "vcard": {
                    "type": "string"
                  },
                  "question": {
                    "type": "string"
                  },
                  "options": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "allowsMultipleAnswers": {
                    "type": "boolean",
                    "default": false
                  },
                  "anonymousVoting": {
                    "type": "boolean",
                    "default": true
                  },
                  "emoji": {
                    "type": "string"
                  },
                  "mediaDuration": {
                    "type": "number"
                  },
                  "width": {
                    "type": "number"
                  },
                  "height": {
                    "type": "number"
                  },
                  "performer": {
                    "type": "string"
                  },
                  "fileSize": {
                    "type": "number"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "inputType": {
                    "type": "string",
                    "enum": [
                      "text",
                      "number",
                      "email",
                      "phone",
                      "photo",
                      "video",
                      "audio",
                      "document",
                      "location",
                      "contact",
                      "any"
                    ],
                    "default": "text"
                  },
                  "responseType": {
                    "type": "string",
                    "enum": [
                      "text",
                      "buttons"
                    ],
                    "default": "text"
                  },
                  "responseOptions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        },
                        "action": {
                          "type": "string",
                          "enum": [
                            "goto",
                            "command",
                            "url"
                          ],
                          "default": "goto"
                        },
                        "target": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "allowMultipleSelection": {
                    "type": "boolean",
                    "default": false
                  },
                  "multiSelectVariable": {
                    "type": "string"
                  },
                  "continueButtonText": {
                    "type": "string"
                  },
                  "continueButtonTarget": {
                    "type": "string"
                  },
                  "inputVariable": {
                    "type": "string"
                  },
                  "inputPrompt": {
                    "type": "string"
                  },
                  "inputValidation": {
                    "type": "string"
                  },
                  "inputRequired": {
                    "type": "boolean",
                    "default": true
                  },
                  "inputTimeout": {
                    "type": "number"
                  },
                  "inputTimeoutMessage": {
                    "type": "string"
                  },
                  "inputRetryMessage": {
                    "type": "string"
                  },
                  "inputSuccessMessage": {
                    "type": "string"
                  },
                  "enableConditionalMessages": {
                    "type": "boolean",
                    "default": false
                  },
                  "conditionalMessages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "condition": {
                          "type": "string",
                          "enum": [
                            "user_data_exists",
                            "user_data_equals",
                            "user_data_not_exists",
                            "user_data_contains",
                            "first_time",
                            "returning_user"
                          ],
                          "default": "user_data_exists"
                        },
                        "variableName": {
                          "type": "string"
                        },
                        "variableNames": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "default": []
                        },
                        "logicOperator": {
                          "type": "string",
                          "enum": [
                            "AND",
                            "OR"
                          ],
                          "default": "AND"
                        },
                        "expectedValue": {
                          "type": "string"
                        },
                        "messageText": {
                          "type": "string"
                        },
                        "formatMode": {
                          "type": "string",
                          "enum": [
                            "text",
                            "markdown",
                            "html"
                          ],
                          "default": "text"
                        },
                        "keyboardType": {
                          "type": "string",
                          "enum": [
                            "reply",
                            "inline",
                            "none"
                          ],
                          "default": "none"
                        },
                        "buttons": {
                          "type": "array",
                          "items": {
                            "$ref": "#/properties/patch/properties/data/properties/buttons/items"
                          },
                          "default": []
                        },
                        "resizeKeyboard": {
                          "type": "boolean",
                          "default": true
                        },
                        "oneTimeKeyboard": {
                          "type": "boolean",
                          "default": false
                        },
                        "collectUserInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableTextInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enablePhotoInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableVideoInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableAudioInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "enableDocumentInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "inputVariable": {
                          "type": "string"
                        },
                        "photoInputVariable": {
                          "type": "string"
                        },
                        "videoInputVariable": {
                          "type": "string"
                        },
                        "audioInputVariable": {
                          "type": "string"
                        },
                        "documentInputVariable": {
                          "type": "string"
                        },
                        "waitForTextInput": {
                          "type": "boolean",
                          "default": false
                        },
                        "textInputVariable": {
                          "type": "string"
                        },
                        "nextNodeAfterInput": {
                          "type": "string"
                        },
                        "priority": {
                          "type": "number",
                          "default": 0
                        }
                      },
                      "required": [
                        "id",
                        "messageText"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "fallbackMessage": {
                    "type": "string"
                  },
                  "saveToDatabase": {
                    "type": "boolean",
                    "default": false
                  },
                  "allowSkip": {
                    "type": "boolean",
                    "default": false
                  },
                  "collectUserInput": {
                    "type": "boolean",
                    "default": false
                  },
                  "inputTargetNodeId": {
                    "type": "string"
                  },
                  "inputButtonType": {
                    "type": "string",
                    "enum": [
                      "inline",
                      "reply"
                    ],
                    "default": "inline"
                  },
                  "enableAutoTransition": {
                    "type": "boolean",
                    "default": false
                  },
                  "autoTransitionTo": {
                    "type": "string"
                  },
                  "sourceNodeId": {
                    "type": "string"
                  },
                  "minLength": {
                    "type": "number"
                  },
                  "maxLength": {
                    "type": "number"
                  },
                  "placeholder": {
                    "type": "string"
                  },
                  "defaultValue": {
                    "type": "string"
                  },
                  "appendVariable": {
                    "type": "boolean",
                    "default": false
                  },
                  "saveMediaMetadata": {
                    "type": "boolean",
                    "default": false
                  },
                  "mediaMetadataSuffixes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "mediaMetadataCustomNames": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "default": {}
                  },
                  "variableFilters": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "default": {}
                  },
                  "enableUserActions": {
                    "type": "boolean",
                    "default": false
                  },
                  "actionTrigger": {
                    "type": "string",
                    "enum": [
                      "join",
                      "leave",
                      "message",
                      "button_click",
                      "custom"
                    ]
                  },
                  "triggerText": {
                    "type": "string"
                  },
                  "userActionType": {
                    "type": "string",
                    "enum": [
                      "message",
                      "command",
                      "button",
                      "media"
                    ]
                  },
                  "actionTag": {
                    "type": "string"
                  },
                  "actionMessage": {
                    "type": "string"
                  },
                  "silentAction": {
                    "type": "boolean",
                    "default": false
                  },
                  "mimeType": {
                    "type": "string"
                  },
                  "stickerSetName": {
                    "type": "string"
                  },
                  "fileName": {
                    "type": "string"
                  },
                  "city": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "enableTextInput": {
                    "type": "boolean"
                  },
                  "enablePhotoInput": {
                    "type": "boolean"
                  },
                  "enableVideoInput": {
                    "type": "boolean"
                  },
                  "enableAudioInput": {
                    "type": "boolean"
                  },
                  "enableDocumentInput": {
                    "type": "boolean"
                  },
                  "photoInputVariable": {
                    "type": "string"
                  },
                  "videoInputVariable": {
                    "type": "string"
                  },
                  "audioInputVariable": {
                    "type": "string"
                  },
                  "documentInputVariable": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "checkmarkSymbol": {
                    "type": "string"
                  },
                  "multiSelectCheckmark": {
                    "type": "string"
                  },
                  "radioSelectedSymbol": {
                    "type": "string"
                  },
                  "radioUnselectedSymbol": {
                    "type": "string"
                  },
                  "duration": {
                    "type": "number"
                  },
                  "muteDuration": {
                    "type": "number"
                  },
                  "reason": {
                    "type": "string"
                  },
                  "canChangeInfo": {
                    "type": "boolean",
                    "default": false
                  },
                  "canDeleteMessages": {
                    "type": "boolean",
                    "default": false
                  },
                  "canBanUsers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canInviteUsers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canPinMessages": {
                    "type": "boolean",
                    "default": false
                  },
                  "canAddAdmins": {
                    "type": "boolean",
                    "default": false
                  },
                  "canRestrictMembers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canPromoteMembers": {
                    "type": "boolean",
                    "default": false
                  },
                  "canManageVideoChats": {
                    "type": "boolean",
                    "default": false
                  },
                  "canManageTopics": {
                    "type": "boolean",
                    "default": false
                  },
                  "isAnonymous": {
                    "type": "boolean",
                    "default": false
                  },
                  "canManageChat": {
                    "type": "boolean"
                  },
                  "canPostMessages": {
                    "type": "boolean"
                  },
                  "canEditMessages": {
                    "type": "boolean"
                  },
                  "canManageDirectMessages": {
                    "type": "boolean"
                  },
                  "canManageTags": {
                    "type": "boolean"
                  },
                  "canSendWelcomeMessages": {
                    "type": "boolean"
                  },
                  "canSendMessages": {
                    "type": "boolean",
                    "default": true
                  },
                  "canSendAudios": {
                    "type": "boolean"
                  },
                  "canSendDocuments": {
                    "type": "boolean"
                  },
                  "canSendPhotos": {
                    "type": "boolean"
                  },
                  "canSendVideos": {
                    "type": "boolean"
                  },
                  "canSendVideoNotes": {
                    "type": "boolean"
                  },
                  "canSendVoiceNotes": {
                    "type": "boolean"
                  },
                  "canReactToMessages": {
                    "type": "boolean"
                  },
                  "canSendPolls": {
                    "type": "boolean",
                    "default": true
                  },
                  "canSendOtherMessages": {
                    "type": "boolean",
                    "default": true
                  },
                  "canAddWebPagePreviews": {
                    "type": "boolean",
                    "default": true
                  },
                  "canChangeGroupInfo": {
                    "type": "boolean",
                    "default": true
                  },
                  "canInviteUsers2": {
                    "type": "boolean",
                    "default": true
                  },
                  "canPinMessages2": {
                    "type": "boolean",
                    "default": true
                  },
                  "untilDate": {
                    "type": "number"
                  },
                  "adminTargetUserId": {
                    "type": "string"
                  },
                  "adminUserIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "last_message"
                    ],
                    "default": "last_message"
                  },
                  "adminUserVariableName": {
                    "type": "string"
                  },
                  "can_manage_chat": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_post_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_edit_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_delete_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_post_stories": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_edit_stories": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_delete_stories": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_manage_video_chats": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_restrict_members": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_promote_members": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_change_info": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_invite_users": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_pin_messages": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_manage_topics": {
                    "type": "boolean",
                    "default": false
                  },
                  "is_anonymous": {
                    "type": "boolean",
                    "default": false
                  },
                  "can_manage_direct_messages": {
                    "type": "boolean"
                  },
                  "can_manage_tags": {
                    "type": "boolean"
                  },
                  "can_send_welcome_messages": {
                    "type": "boolean"
                  },
                  "adminChatId": {
                    "type": "string"
                  },
                  "adminChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable",
                      "current_chat"
                    ],
                    "default": "current_chat"
                  },
                  "adminChatVariableName": {
                    "type": "string"
                  },
                  "attachedMedia": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "sendAsGifUrls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "text": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string"
                  },
                  "waitForTextInput": {
                    "type": "boolean"
                  },
                  "broadcastApiType": {
                    "type": "string",
                    "enum": [
                      "bot",
                      "client"
                    ],
                    "default": "bot"
                  },
                  "broadcastTargetNode": {
                    "type": "string"
                  },
                  "enableBroadcast": {
                    "type": "boolean",
                    "default": false
                  },
                  "enableConfirmation": {
                    "type": "boolean",
                    "default": false
                  },
                  "confirmationText": {
                    "type": "string"
                  },
                  "successMessage": {
                    "type": "string"
                  },
                  "errorMessage": {
                    "type": "string"
                  },
                  "sessionName": {
                    "type": "string",
                    "default": "user_session"
                  },
                  "sessionCreated": {
                    "type": "boolean",
                    "default": false
                  },
                  "textSynonyms": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  },
                  "textMatchType": {
                    "type": "string",
                    "enum": [
                      "exact",
                      "contains"
                    ],
                    "default": "exact"
                  },
                  "variable": {
                    "type": "string"
                  },
                  "forumChatId": {
                    "type": "string"
                  },
                  "forumChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ],
                    "default": "manual"
                  },
                  "forumChatVariableName": {
                    "type": "string"
                  },
                  "topicName": {
                    "type": "string"
                  },
                  "topicIconColor": {
                    "type": "string"
                  },
                  "saveThreadIdTo": {
                    "type": "string"
                  },
                  "saveMessageIdTo": {
                    "type": "string"
                  },
                  "saveBotIdTo": {
                    "type": "string"
                  },
                  "saveBotUsernameTo": {
                    "type": "string"
                  },
                  "saveBotNameTo": {
                    "type": "string"
                  },
                  "saveCreatorIdTo": {
                    "type": "string"
                  },
                  "saveCreatorUsernameTo": {
                    "type": "string"
                  },
                  "filterByUserId": {
                    "type": "string"
                  },
                  "skipIfExists": {
                    "type": "boolean",
                    "default": false
                  },
                  "imtChatTypeFilter": {
                    "type": "string",
                    "enum": [
                      "any",
                      "private",
                      "group"
                    ],
                    "default": "any"
                  },
                  "imtGroupChatId": {
                    "type": "string"
                  },
                  "imtGroupChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ]
                  },
                  "imtStopOnFlag": {
                    "type": "boolean",
                    "default": true
                  },
                  "groupChatId": {
                    "type": "string"
                  },
                  "groupChatIdSource": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "variable"
                    ]
                  },
                  "groupChatVariableName": {
                    "type": "string"
                  },
                  "threadIdVariable": {
                    "type": "string"
                  },
                  "resolvedUserIdVariable": {
                    "type": "string"
                  },
                  "memberEventType": {
                    "type": "string",
                    "enum": [
                      "join",
                      "leave",
                      "both"
                    ],
                    "default": "join"
                  },
                  "saveJoinedUserIdTo": {
                    "type": "string"
                  },
                  "saveJoinedUsernameTo": {
                    "type": "string"
                  },
                  "saveLeftUserIdTo": {
                    "type": "string"
                  },
                  "saveLeftUsernameTo": {
                    "type": "string"
                  },
                  "branches": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string",
                          "default": ""
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "filled",
                            "empty",
                            "equals",
                            "not_equals",
                            "contains",
                            "not_contains",
                            "starts_with",
                            "ends_with",
                            "matches_regex",
                            "greater_than",
                            "less_than",
                            "between",
                            "is_even",
                            "is_odd",
                            "divisible_by",
                            "else",
                            "is_private",
                            "is_group",
                            "is_channel",
                            "is_admin",
                            "is_premium",
                            "is_bot",
                            "is_subscribed",
                            "is_not_subscribed"
                          ]
                        },
                        "value": {
                          "type": "string"
                        },
                        "value2": {
                          "type": "string"
                        },
                        "valueRegex": {
                          "type": "string"
                        },
                        "target": {
                          "type": "string"
                        },
                        "subscriptionMode": {
                          "type": "string",
                          "enum": [
                            "all",
                            "any"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "operator",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "parallelBranches": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string",
                          "default": ""
                        },
                        "target": {
                          "type": "string"
                        },
                        "onErrorTarget": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "maxConcurrent": {
                    "type": "number",
                    "default": 5
                  },
                  "awaitAll": {
                    "type": "boolean",
                    "default": false
                  },
                  "skipIfRunning": {
                    "type": "boolean",
                    "default": true
                  },
                  "counterKey": {
                    "type": "string"
                  },
                  "windowSeconds": {
                    "type": "string"
                  },
                  "messageSendRecipients": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "user",
                            "chat_id",
                            "admin_ids"
                          ],
                          "default": "user"
                        },
                        "chatId": {
                          "type": "string"
                        },
                        "threadId": {
                          "type": "string"
                        },
                        "isGroup": {
                          "type": "boolean",
                          "default": false
                        },
                        "botToken": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "messageSendTarget": {
                    "type": "string"
                  },
                  "messageSendChatId": {
                    "type": "string"
                  },
                  "messageSendThreadId": {
                    "type": "string"
                  },
                  "httpRequestUrl": {
                    "type": "string"
                  },
                  "httpRequestMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST",
                      "PUT",
                      "PATCH",
                      "DELETE"
                    ],
                    "default": "GET"
                  },
                  "httpRequestHeaders": {
                    "type": "string"
                  },
                  "httpRequestBody": {
                    "type": "string"
                  },
                  "httpRequestTimeout": {
                    "type": "number",
                    "default": 30
                  },
                  "httpRequestResponseVariable": {
                    "type": "string"
                  },
                  "httpRequestResponseJsonPath": {
                    "type": "string"
                  },
                  "httpRequestResponseExtractTo": {
                    "type": "string"
                  },
                  "httpRequestStatusVariable": {
                    "type": "string"
                  },
                  "botIdSource": {
                    "type": "string"
                  },
                  "botIdVariable": {
                    "type": "string"
                  },
                  "botIdManual": {
                    "type": "string"
                  },
                  "saveTokenTo": {
                    "type": "string"
                  },
                  "saveErrorTo": {
                    "type": "string"
                  },
                  "httpRequestQueryParams": {
                    "type": "string"
                  },
                  "httpRequestBodyFormat": {
                    "type": "string",
                    "enum": [
                      "json",
                      "form-urlencoded",
                      "raw"
                    ],
                    "default": "json"
                  },
                  "httpRequestAuthType": {
                    "type": "string",
                    "enum": [
                      "none",
                      "basic",
                      "bearer",
                      "header",
                      "query"
                    ],
                    "default": "none"
                  },
                  "httpRequestAuthBearerToken": {
                    "type": "string"
                  },
                  "httpRequestAuthBasicUsername": {
                    "type": "string"
                  },
                  "httpRequestAuthBasicPassword": {
                    "type": "string"
                  },
                  "httpRequestAuthHeaderName": {
                    "type": "string"
                  },
                  "httpRequestAuthHeaderValue": {
                    "type": "string"
                  },
                  "httpRequestAuthQueryName": {
                    "type": "string"
                  },
                  "httpRequestAuthQueryValue": {
                    "type": "string"
                  },
                  "httpRequestResponseFormat": {
                    "type": "string",
                    "enum": [
                      "autodetect",
                      "json",
                      "text",
                      "file"
                    ],
                    "default": "autodetect"
                  },
                  "httpRequestIgnoreHttpErrors": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestIgnoreSsl": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestFollowRedirects": {
                    "type": "boolean",
                    "default": true
                  },
                  "httpRequestEnablePagination": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestPaginationMode": {
                    "type": "string",
                    "enum": [
                      "interactive",
                      "fetch_all"
                    ],
                    "default": "interactive"
                  },
                  "httpRequestPaginationOffsetVar": {
                    "type": "string"
                  },
                  "httpRequestPaginationTotalField": {
                    "type": "string",
                    "default": "count"
                  },
                  "httpRequestPaginationItemsField": {
                    "type": "string",
                    "default": "items"
                  },
                  "httpRequestPaginationLimit": {
                    "type": "number",
                    "default": 10
                  },
                  "httpRequestPaginationMaxPages": {
                    "type": "number",
                    "default": 20
                  },
                  "httpRequestBatchEnabled": {
                    "type": "boolean",
                    "default": false
                  },
                  "httpRequestBatchSource": {
                    "type": "string"
                  },
                  "httpRequestBatchItemVar": {
                    "type": "string",
                    "default": "item"
                  },
                  "httpRequestBatchResultVariable": {
                    "type": "string"
                  },
                  "httpRequestBatchResultFields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "key",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "attachedMediaThumbnails": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "default": {}
                  },
                  "query": {
                    "type": "string",
                    "default": ""
                  },
                  "connectionSource": {
                    "type": "string",
                    "enum": [
                      "builtin",
                      "env",
                      "custom"
                    ]
                  },
                  "connectionEnvVar": {
                    "type": "string"
                  },
                  "connectionString": {
                    "type": "string"
                  },
                  "saveResultTo": {
                    "type": "string",
                    "default": ""
                  },
                  "resultFormat": {
                    "type": "string",
                    "enum": [
                      "json",
                      "text",
                      "first_row",
                      "affected",
                      "all_rows",
                      "scalar",
                      "count",
                      "random_row"
                    ],
                    "default": "first_row"
                  },
                  "textTemplate": {
                    "type": "string",
                    "default": ""
                  },
                  "assignments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "variable": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "text",
                            "expression",
                            "lookup",
                            "str_replace",
                            "json_push",
                            "json_format",
                            "random",
                            "random_item",
                            "array_item",
                            "timestamp",
                            "format_duration",
                            "format_number",
                            "regex_extract",
                            "extract_number",
                            "split_get",
                            "json_get",
                            "substring",
                            "conditional",
                            "lowercase",
                            "uppercase",
                            "trim",
                            "length",
                            "array_concat"
                          ],
                          "default": "text"
                        },
                        "lookupTable": {
                          "type": "string",
                          "default": ""
                        },
                        "lookupField": {
                          "type": "string",
                          "default": ""
                        },
                        "lookupWhere": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "field": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "field",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          "default": []
                        },
                        "replaceWith": {
                          "type": "string",
                          "default": ""
                        },
                        "pattern": {
                          "type": "string",
                          "default": ""
                        },
                        "regexGroup": {
                          "type": "string",
                          "default": "0"
                        },
                        "maxValue": {
                          "type": "string",
                          "default": ""
                        },
                        "separator": {
                          "type": "string",
                          "default": ""
                        },
                        "jsonPath": {
                          "type": "string",
                          "default": ""
                        },
                        "startIndex": {
                          "type": "string",
                          "default": "0"
                        },
                        "endIndex": {
                          "type": "string",
                          "default": ""
                        },
                        "conditionVariable": {
                          "type": "string",
                          "default": ""
                        },
                        "conditionOperator": {
                          "type": "string",
                          "default": "equals"
                        },
                        "conditionValue": {
                          "type": "string",
                          "default": ""
                        },
                        "trueValue": {
                          "type": "string",
                          "default": ""
                        },
                        "falseValue": {
                          "type": "string",
                          "default": ""
                        },
                        "concatWith": {
                          "type": "string",
                          "default": ""
                        },
                        "skipIfEmpty": {
                          "type": "string",
                          "default": ""
                        },
                        "persistToDb": {
                          "type": "boolean",
                          "default": true
                        }
                      },
                      "required": [
                        "id",
                        "variable",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "convertFileMode": {
                    "type": "string",
                    "enum": [
                      "toFile"
                    ],
                    "default": "toFile"
                  },
                  "convertFileInputVariable": {
                    "type": "string",
                    "default": ""
                  },
                  "convertFileFormat": {
                    "type": "string",
                    "enum": [
                      "csv",
                      "json"
                    ],
                    "default": "csv"
                  },
                  "convertFileFileName": {
                    "type": "string",
                    "default": "export_{date}.csv"
                  },
                  "convertFileCsvDelimiter": {
                    "type": "string",
                    "default": ","
                  },
                  "convertFileIncludeHeaderRow": {
                    "type": "boolean",
                    "default": true
                  },
                  "convertFileOutputVariable": {
                    "type": "string",
                    "default": ""
                  },
                  "code": {
                    "type": "string",
                    "default": ""
                  },
                  "apiMethod": {
                    "type": "string",
                    "enum": [
                      "GET",
                      "POST",
                      "PUT",
                      "PATCH",
                      "DELETE"
                    ],
                    "default": "POST"
                  },
                  "apiPath": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSecretToken": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSaveBodyTo": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSaveQueryTo": {
                    "type": "string",
                    "default": ""
                  },
                  "apiSaveHeadersTo": {
                    "type": "string",
                    "default": ""
                  },
                  "apiParseJson": {
                    "type": "boolean",
                    "default": true
                  },
                  "apiResponseStatusCode": {
                    "type": "number",
                    "default": 200
                  },
                  "apiResponseBody": {
                    "type": "string",
                    "default": "{\"ok\":true}"
                  },
                  "apiResponseContentType": {
                    "type": "string",
                    "enum": [
                      "application/json",
                      "text/plain",
                      "text/html"
                    ],
                    "default": "application/json"
                  },
                  "apiResponseHeaders": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "key",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "invoiceTitle": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceDescription": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceAmount": {
                    "type": "string",
                    "default": "1"
                  },
                  "invoicePrices": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "amount": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "label",
                        "amount"
                      ],
                      "additionalProperties": false
                    },
                    "default": []
                  },
                  "invoiceCurrency": {
                    "type": "string",
                    "default": "XTR"
                  },
                  "invoiceProviderSource": {
                    "type": "string",
                    "default": "inline"
                  },
                  "invoiceProviderToken": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceProviderTokenEnv": {
                    "type": "string",
                    "default": "PAYMENT_PROVIDER_TOKEN"
                  },
                  "invoiceNeedName": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceNeedEmail": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceNeedPhone": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceNeedShipping": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceIsFlexible": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceSendPhoneToProvider": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceSendEmailToProvider": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceProtectContent": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceMaxTipAmount": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceSuggestedTipAmounts": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceProviderData": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceStartParameter": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceSubscription": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoicePhotoUrl": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePhotoSize": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePhotoWidth": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePhotoHeight": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceMessageThreadId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceDirectMessagesTopicId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceDisableNotification": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceReplyToMessageId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceMessageEffectId": {
                    "type": "string",
                    "default": ""
                  },
                  "invoiceAllowPaidBroadcast": {
                    "type": "boolean",
                    "default": false
                  },
                  "invoiceSuggestedPostParams": {
                    "type": "string",
                    "default": ""
                  },
                  "invoicePayload": {
                    "type": "string",
                    "default": ""
                  },
                  "savePaymentAmountTo": {
                    "type": "string",
                    "default": ""
                  },
                  "savePaymentChargeIdTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveOrderNameTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveOrderEmailTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveOrderPhoneTo": {
                    "type": "string",
                    "default": ""
                  },
                  "saveInvoiceLinkTo": {
                    "type": "string",
                    "default": ""
                  },
                  "afterPaymentTo": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutMode": {
                    "type": "string",
                    "default": "always"
                  },
                  "preCheckoutVariable": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutOperator": {
                    "type": "string",
                    "default": "filled"
                  },
                  "preCheckoutValue": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutValue2": {
                    "type": "string",
                    "default": ""
                  },
                  "preCheckoutErrorMessage": {
                    "type": "string",
                    "default": ""
                  },
                  "refundUserSource": {
                    "type": "string",
                    "default": "current_user"
                  },
                  "refundUserId": {
                    "type": "string",
                    "default": ""
                  },
                  "refundChargeId": {
                    "type": "string",
                    "default": ""
                  },
                  "refundMsgEmpty": {
                    "type": "string",
                    "default": "Пожалуйста, укажите код покупки: /back КОД"
                  },
                  "refundMsgNotFound": {
                    "type": "string",
                    "default": "Такой код покупки не найден. Проверьте данные и попробуйте снова."
                  },
                  "refundMsgAlreadyRefunded": {
                    "type": "string",
                    "default": "За эту покупку уже ранее был произведён возврат."
                  },
                  "refundEmptyTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "refundNotFoundTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "refundAlreadyRefundedTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionUserSource": {
                    "type": "string",
                    "default": "current_user"
                  },
                  "subscriptionUserId": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionChargeId": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionAction": {
                    "type": "string",
                    "default": "cancel"
                  },
                  "subscriptionMsgEmpty": {
                    "type": "string",
                    "default": "Укажите код покупки подписки"
                  },
                  "subscriptionMsgError": {
                    "type": "string",
                    "default": "Не удалось изменить автопродление. Проверьте код покупки."
                  },
                  "subscriptionEmptyTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "subscriptionErrorTarget": {
                    "type": "string",
                    "default": ""
                  },
                  "saveStarBalanceTo": {
                    "type": "string",
                    "default": "star_balance"
                  },
                  "balanceMsgError": {
                    "type": "string",
                    "default": "Не удалось получить баланс звёзд"
                  },
                  "balanceErrorTarget": {
                    "type": "string",
                    "default": ""
                  }
                },
                "additionalProperties": true
              }
            },
            "additionalProperties": false,
            "description": "Только изменяемые поля: position, data, type"
          },
          "sheet_id": {
            "type": "string",
            "description": "ID листа (иначе автопоиск по всем листам)"
          }
        },
        "required": [
          "project_json",
          "node_id",
          "patch"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "prepare",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "prepare",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "update_project_db",
      "section": "scenario",
      "description": "Записать сценарий проекта и получить квитанцию сохранения. Передайте expected_revision из чтения проекта для защиты от перезаписи конкурентных правок. Без неё сохраняется совместимый безусловный режим. Рассылка обновления холста не подтверждает применение интерфейсом.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "number",
            "description": "Числовой ID проекта из URL редактора"
          },
          "project_json": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "additionalProperties": {}
              }
            ],
            "description": "project.json"
          },
          "expected_revision": {
            "type": "integer",
            "minimum": 0,
            "description": "Ревизия прочитанного проекта; при конфликте сохранение отклоняется."
          },
          "commit_message": {
            "type": "string",
            "description": "Заметка к версии (ручной чекпоинт)"
          },
          "skip_validation": {
            "type": "boolean",
            "description": "Пропустить валидацию перед записью"
          }
        },
        "required": [
          "project_id",
          "project_json"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "write",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "separate"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "write",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "separate"
      },
      "example": {
        "project_id": 1,
        "project_json": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "validate_bot_project",
      "section": "scenario",
      "description": "Валидация project.json: zod-схема + доменные правила (битые target, condition branches, дубли id)",
      "inputSchema": {
        "type": "object",
        "properties": {
          "project_json": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "additionalProperties": {}
              }
            ],
            "description": "Объект project.json или JSON-строка"
          }
        },
        "required": [
          "project_json"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "project_json": "1"
      },
      "transports": [
        "http",
        "stdio"
      ]
    },
    {
      "id": "validate_node",
      "section": "scenario",
      "description": "Валидация одной ноды",
      "inputSchema": {
        "type": "object",
        "properties": {
          "node": {
            "type": "object",
            "additionalProperties": {},
            "description": "Объект ноды { id, type, position, data }"
          },
          "type": {
            "type": "string",
            "description": "Ожидаемый тип для сверки"
          }
        },
        "required": [
          "node"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "execution": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "effect": {
                "type": "string",
                "enum": [
                  "read",
                  "prepare",
                  "write",
                  "file",
                  "external",
                  "unknown"
                ]
              },
              "destructive": {
                "type": "boolean"
              },
              "runtimeApply": {
                "type": "string",
                "enum": [
                  "not_applicable",
                  "separate"
                ]
              },
              "completionMode": {
                "type": "string",
                "enum": [
                  "immediate",
                  "job"
                ]
              },
              "pollAction": {
                "type": "string"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "prepared",
                  "read",
                  "saved",
                  "pending",
                  "partial",
                  "unknown",
                  "error",
                  "unverified",
                  "file_result"
                ]
              },
              "persistence": {
                "type": "object",
                "properties": {
                  "confirmed": {
                    "type": "boolean"
                  },
                  "projectId": {
                    "type": "integer",
                    "exclusiveMinimum": 0
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "confirmed"
                ],
                "additionalProperties": false
              },
              "sideEffects": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "section",
              "effect",
              "destructive",
              "runtimeApply",
              "completionMode",
              "outcome",
              "persistence"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "execution"
        ],
        "additionalProperties": false,
        "$schema": "http://json-schema.org/draft-07/schema#"
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "execution": {
        "taskSupport": "forbidden"
      },
      "_meta": {
        "botcraft": {
          "section": "scenario",
          "effect": "read",
          "destructive": false,
          "completionMode": "immediate",
          "runtimeApply": "not_applicable"
        }
      },
      "policy": {
        "section": "scenario",
        "effect": "read",
        "completionMode": "immediate",
        "destructive": false,
        "runtimeApply": "not_applicable"
      },
      "example": {
        "node": {}
      },
      "transports": [
        "http",
        "stdio"
      ]
    }
  ]
}