send_platform_message_direct
Send messages directly to platform groups or users, bypassing LLM processing, with support for text, images, files, videos, and audio attachments.
Instructions
Directly send a message chain to a platform group/user (bypass LLM).
This calls AstrBot dashboard endpoint: POST /api/platform/send_message
Notes:
This is for sending to a real platform target (group/user), not WebChat.
Media parts:
If
file_pathis a local path, this tool will upload it to AstrBot first, then send it as an AstrBot-hosted URL.If
file_path/urlis an http(s) URL, it will be forwarded as-is.
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_id": "<platform_id>",
"target_id": "<target_id>"
},
"name": "send_platform_message_direct"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform_id | Yes | ||
| target_id | Yes | ||
| message_chain | No | ||
| message | No | ||
| images | No | ||
| files | No | ||
| videos | No | ||
| records | No | ||
| message_type | No | GroupMessage |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||