send_private_msg
Deliver a private QQ message to a specified user by QQ number; include a source group_id for temporary sessions. Returns the sent message ID.
Instructions
发送私聊消息 替换目标好友 QQ 号;临时会话需另传来源 group_id。 Returns: { message_id: number }
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_id": "<user_id>",
"message": "<message>"
},
"name": "send_private_msg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | OneBot message: string | segment[] | object. In segment arrays, text segments whose text field is exactly "" are compatibility placeholders and do not count as sendable segments; missing, null, and whitespace-only text remain subject to normal validation. | |
| user_id | Yes | ||
| group_id | No | ||
| auto_escape | No |