get_login_info

get_login_info只读信息

Call via POST http://127.0.0.1:3000/get_login_info (JSON params as the body) or WebSocket.

Parameters

This action takes no parameters.

Returns (data)

当前登录账号的 QQ 号与昵称。

Every response is wrapped in the standard envelope: { "status": "ok", "retcode": 0, "data": ... }. The table below describes data.

Field Type Required Description
user_id integer 登录 QQ 号
nickname string 登录昵称
Raw JSON Schema
{
  "type": "object",
  "properties": {
    "user_id": {
      "type": "integer",
      "description": "登录 QQ 号"
    },
    "nickname": {
      "type": "string",
      "description": "登录昵称"
    }
  },
  "required": [
    "user_id",
    "nickname"
  ]
}

Examples

curl
Python
JavaScript
Go
SnowLuma SDK
curl -X POST http://127.0.0.1:3000/get_login_info \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <access-token>' \
  -d '{}'
Using an AI assistant?

MCP-capable clients can discover and call this action directly — no hand-written HTTP. See MCP.