wechat_login
Authenticates with WeChat, reusing saved sessions or displaying a QR code for manual login, and returns the account ID.
Instructions
Log into WeChat. If a session is already saved (persisted across restarts), this returns silently. Otherwise it triggers a QR code flow: the PNG is auto-opened on the user's screen and an ASCII copy is saved to ~/.wechatbot/mcp/qr-latest.txt. Returns the account id on success.
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": "wechat_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force a new QR code even if credentials exist on disk. |