Предметные инструменты · pull
Операции модуля pull
pull_site_pull_m116_writeИзменениеДействия модуля pull.
Действия
В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.
Действия модуля pull.
expected_revision- строка · обязательный параметр
request_id- строка · обязательный параметр
confirm- логическое значение · обязательный параметр
{
"type": "object",
"properties": {
"expected_revision": {
"type": "string",
"maxLength": 64,
"pattern": "^[a-f0-9]{64}$"
},
"request_id": {
"type": "string",
"maxLength": 32,
"pattern": "^[a-f0-9]{32}$"
},
"confirm": {
"type": "boolean"
}
},
"required": [
"expected_revision",
"request_id",
"confirm"
],
"additionalProperties": false
}Действия модуля pull.
message- строка · обязательный параметр
expected_revision- строка · обязательный параметр
request_id- строка · обязательный параметр
confirm- логическое значение · обязательный параметр
{
"type": "object",
"properties": {
"message": {
"type": "string",
"maxLength": 500,
"minLength": 1
},
"expected_revision": {
"type": "string",
"maxLength": 64,
"pattern": "^[a-f0-9]{64}$"
},
"request_id": {
"type": "string",
"maxLength": 32,
"pattern": "^[a-f0-9]{32}$"
},
"confirm": {
"type": "boolean"
}
},
"required": [
"message",
"expected_revision",
"request_id",
"confirm"
],
"additionalProperties": false
}Действия модуля pull.
expected_revision- строка · обязательный параметр
request_id- строка · обязательный параметр
confirm- логическое значение · обязательный параметр
{
"type": "object",
"properties": {
"expected_revision": {
"type": "string",
"maxLength": 64,
"pattern": "^[a-f0-9]{64}$"
},
"request_id": {
"type": "string",
"maxLength": 32,
"pattern": "^[a-f0-9]{32}$"
},
"confirm": {
"type": "boolean"
}
},
"required": [
"expected_revision",
"request_id",
"confirm"
],
"additionalProperties": false
}Действия модуля pull.
expected_revision- строка · обязательный параметр
request_id- строка · обязательный параметр
confirm- логическое значение · обязательный параметр
{
"type": "object",
"properties": {
"expected_revision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$"
},
"confirm": {
"type": "boolean"
}
},
"required": [
"expected_revision",
"request_id",
"confirm"
],
"additionalProperties": false
}Действия модуля pull.
enabled- логическое значение · обязательный параметр
expected_revision- строка · обязательный параметр
request_id- строка · обязательный параметр
confirm- логическое значение · обязательный параметр
{
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"expected_revision": {
"type": "string",
"maxLength": 64,
"pattern": "^[a-f0-9]{64}$"
},
"request_id": {
"type": "string",
"maxLength": 32,
"pattern": "^[a-f0-9]{32}$"
},
"confirm": {
"type": "boolean"
}
},
"required": [
"enabled",
"expected_revision",
"request_id",
"confirm"
],
"additionalProperties": false
}Действия модуля pull.
token_id- целое число · обязательный параметр
expected_revision- строка · обязательный параметр
request_id- строка · обязательный параметр
confirm- логическое значение · обязательный параметр
{
"type": "object",
"properties": {
"token_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"expected_revision": {
"type": "string",
"maxLength": 64,
"pattern": "^[a-f0-9]{64}$"
},
"request_id": {
"type": "string",
"maxLength": 32,
"pattern": "^[a-f0-9]{32}$"
},
"confirm": {
"type": "boolean"
}
},
"required": [
"token_id",
"expected_revision",
"request_id",
"confirm"
],
"additionalProperties": false
}Действия модуля pull.
device_id- строка · обязательный параметр
device_name- строка · обязательный параметр
device_type- строка · обязательный параметр
device_token- строка · обязательный параметр
expected_revision- строка · обязательный параметр
request_id- строка · обязательный параметр
confirm- логическое значение · обязательный параметр
{
"type": "object",
"properties": {
"device_id": {
"type": "string",
"maxLength": 50,
"pattern": "^[a-zA-Z0-9_-]{1,50}$"
},
"device_name": {
"type": "string",
"maxLength": 50,
"minLength": 1
},
"device_type": {
"type": "string",
"enum": [
"APPLE",
"GOOGLE",
"GOOGLE/REV2",
"HUAWEI"
]
},
"device_token": {
"type": "string",
"maxLength": 255,
"minLength": 16
},
"expected_revision": {
"type": "string",
"maxLength": 64,
"pattern": "^[a-f0-9]{64}$"
},
"request_id": {
"type": "string",
"maxLength": 32,
"pattern": "^[a-f0-9]{32}$"
},
"confirm": {
"type": "boolean"
}
},
"required": [
"device_id",
"device_name",
"device_type",
"device_token",
"expected_revision",
"request_id",
"confirm"
],
"additionalProperties": false
}