login_request_code
Request a Telegram login code for a phone number to start authentication, then submit the received code to complete sign-in.
Instructions
Start logging in: ask Telegram to send a login code.
Telegram delivers the code in the Telegram app itself if the user is signed in elsewhere, otherwise by SMS. Follow with login_submit_code.
Ask the user for their phone number rather than guessing it.
Args: phone: phone number in international format, e.g. +14155550123. session: which session to log in — 'watcher' (default, the one monitoring needs) or 'mcp' (for this server's read tools).
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": {
"phone": "<phone>"
},
"name": "login_request_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | ||
| session | No | watcher |