auth_submit_code
Complete Telegram login by submitting the 5-digit SMS code and optional 2FA password to authenticate the session.
Instructions
Шаг 2: отправить код (и опц. пароль 2FA).
Args: code: 5-значный SMS-код из Telegram. password_2fa: пароль cloud-2FA если включён. Если опущен и 2FA требуется — вернётся ошибка с просьбой повторить.
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>"
},
"name": "auth_submit_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| password_2fa | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||