Install widget
widgets_installУстановка виджета в аккаунт. code из widgets_list или nova_widgets_list. settings — поля из settings_template, ключи уходят в amo как есть. Перед установкой проверьте обязательные поля через widgets_get. confirm true обязателен. Пароль из ответа скрыт.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>",
"confirm": "<confirm>"
},
"name": "widgets_install"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| confirm | Yes | Обязательно true. Данные удаляются, восстановить их нельзя. | |
| settings | No | Поля settings_template. Пустой объект, если полей нет. |