tb_login
Authenticate with TestingBot via browser authorization to save credentials for later tool calls; use the device-code flow when the browser cannot reach your machine.
Instructions
Authenticate with TestingBot — no API key or secret to copy or paste. By default it opens your browser, you click Authorize, and the credentials are captured automatically and saved to ~/.testingbot/credentials (used by every later tool call this session — no restart). If your browser can't reach this machine (SSH / remote / dev container / web), it falls back to a short URL + code you enter in any browser; pass mode:"device" to force that. After authorizing in the browser, call tb_login again to finish. Call this whenever credentials are missing.
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": "tb_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | How to authenticate. "auto" (default): open the browser and capture the callback on a local port; falls back to a copy-paste code on headless/remote machines. "loopback": force the browser flow. "device": force the copy-paste code flow (use this on SSH/remote/dev-container/web setups where the browser can't reach this machine). |