Sign in with a code
login_codeSigns in on machines where no browser can open, such as containers or remote hosts. Returns a short code and URL, then waits to store the token after approval.
Instructions
Signs in where no browser can be opened on this machine — a container, a remote host. The first call returns a short code and a URL to enter it at, which the person opens anywhere; call it again to wait for the approval and store the token.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "login_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replace | No | Sign in even though a token is already stored. | |
| waitSeconds | No | How long a waiting call polls before answering. Default 120. |