Ask your user to sign in
request_loginYour user signs in for you. Call it as soon as the phone shows a login (a password field, a sign-in page, a 2FA code) that you have no saved login for. Mobilebox prompts your user where they are (email, their dashboard, a notification) and shows them this phone live; they finish the login in a tap or two with their own browser's login or their password manager. You never see the password. The call waits up to 25 s and returns signed_in (observe, then carry on) or waiting (call it again with the same phone_id: it waits again and sends nothing new). Never ask your user for a password in chat.
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_id": "<phone_id>"
},
"name": "request_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | The site to sign in to, e.g. "github.com"; default: the one in the phone's browser | |
| phone_id | Yes | Phone id, ph_… |