Служебные инструменты · blog

Блоги и обсуждения · изменения · Изменение

blog_site_blog_m001_writeИзменение

Действия модуля blog.

Действия

В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.

Поставить уведомление блога в очередь

blog_notification_enqueue

Действия модуля blog.

blog_id
целое число · обязательный параметр
post_id
целое число · обязательный параметр
profile
строка · обязательный параметр
recipient_ids
массив · обязательный параметр
comment_id
целое число
request_id
строка · обязательный параметр
expected_revision
строка · обязательный параметр
confirm
логическое значение · обязательный параметр
acknowledge_native_queue
логическое значение · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "blog_id": {
      "type": "integer",
      "minimum": 1,
      "maximum": 2147483647
    },
    "post_id": {
      "type": "integer",
      "minimum": 1,
      "maximum": 2147483647
    },
    "profile": {
      "type": "string",
      "enum": [
        "owner_post",
        "email_post",
        "email_share",
        "email_comment"
      ]
    },
    "recipient_ids": {
      "type": "array",
      "maxItems": 20,
      "uniqueItems": true,
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 2147483647
      }
    },
    "comment_id": {
      "type": "integer",
      "minimum": 1,
      "maximum": 2147483647
    },
    "request_id": {
      "type": "string",
      "pattern": "^[a-f0-9]{32}$"
    },
    "expected_revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "confirm": {
      "type": "boolean"
    },
    "acknowledge_native_queue": {
      "type": "boolean"
    }
  },
  "required": [
    "blog_id",
    "post_id",
    "profile",
    "recipient_ids",
    "request_id",
    "expected_revision",
    "confirm",
    "acknowledge_native_queue"
  ],
  "additionalProperties": false
}

Скачать исходное примечание