send_msg
Sends QQ chat messages by automatically routing to a group or private conversation based on message_type and target ID. Provide message content plus group_id for groups or user_id for private chats.
Instructions
发送消息(按 message_type/群号 自动路由群聊或私聊) 必须提供对应目标;私聊使用 message_type=private 和 user_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": {
"message": "<message>"
},
"name": "send_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 | No | ||
| group_id | No | ||
| auto_escape | No | ||
| message_type | No |