send_audio
Sends E2EE audio to a LINE conversation immediately from a local file or base64 payload, with optional duration for recipient playback.
Instructions
Sends an E2EE audio message to a LINE conversation immediately (same pipeline as send_file). Provide exactly one of file_path or audio_base64; optional duration_ms sets the recipient player length. Works for 1:1/group/room. One send per call.
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": {
"chat_id": "<chat_id>"
},
"name": "send_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | LINE chat/group/room MID to send to, as returned by list_conversations. | |
| file_name | No | Optional original filename (used for the upload name; defaults to the basename of file_path or audio.m4a). | |
| file_path | No | Local filesystem path to the audio file. Mutually exclusive with audio_base64. | |
| duration_ms | No | Optional audio duration in milliseconds, for the recipient player progress bar. | |
| audio_base64 | No | Base64-encoded audio bytes. Mutually exclusive with file_path. |