Pair Google Messages (QR)
gmsg_pairPair the server's browser profile with your phone via QR code or manual Google sign-in, and wait for pairing to complete.
Instructions
Pair this server's browser profile with the phone (needs the user). method "auto" (default): opens a VISIBLE browser on the pairing page; if Google offers a QR code it turns on "Remember this computer", saves the QR to ~/.google-messages-mcp/qr.png and returns it as an image (scan: Messages app > profile picture > Device pairing > QR code scanner). If no QR is offered (current Google behaviour: Google-account sign-in only), it opens a plain non-automated browser window on the same profile for the user to sign in by hand and approve on the phone; the server detects completion and closes it. Waits up to wait_seconds (default 120); wait_seconds=0 returns right away (then call gmsg_pair again to keep waiting, or gmsg_status check=true). Relay the returned instructions to the user.
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": "gmsg_pair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | auto (default) | qr (QR page only) | signin (manual Google sign-in window) | cancel (close an open sign-in window). | |
| wait_seconds | No | Seconds to wait for pairing. Default 120; 0 = return right away. |