tg_login_code
Submit a Telegram login confirmation code during headless authentication; if 2FA is required, it returns password_needed so you can continue with the password step.
Instructions
Headless login step 2: submit the confirmation code. May return password_needed for 2FA accounts (then call tg_login_password).
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": "tg_login_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |