send_message
Sends text, image, voice, video, or file messages to a specified platform target (user, group, channel, guild, or thread) via the configured adapter.
Instructions
向指定平台发送消息(经平台适配器 SendDSL)。
Args: platform: 平台名(如 onebot11,先用 list_adapters 确认) target_type: 目标类型:user(私聊)/ group(群聊)/ channel / guild / thread(private 也可,自动转为 user) target_id: 目标 ID(用户 ID / 群号,字符串,≤128 字符) method: 发送方法名:Text(文本)/ Image / Voice / Video / File(后四者为 URL 或 base64) content: 消息内容(Text 为文本字符串;媒体类为 URL 或 base64 字符串) account: 可选,指定发送账户 ID(多 bot 部署时区分用哪个账户发;缺省用适配器默认账户)
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": {
"platform": "<platform>",
"target_type": "<target_type>",
"target_id": "<target_id>",
"method": "<method>",
"content": "<content>"
},
"name": "send_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| account | No | ||
| content | Yes | ||
| platform | Yes | ||
| target_id | Yes | ||
| target_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |