Message: Send voice note
message_send_voice_noteSend an audio attachment as a native/playable voice note where the connected provider supports it (notably WhatsApp/Telegram). Resolve chat_id first. Provide padded base64 content + exact MIME type/filename. Uploads use multipart when the complete JSON exceeds 1 MiB; provider file limits still apply. Do not send the same voice note repeatedly after an uncertain timeout; read chat state first.
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>",
"content_base64": "<content_base64>",
"content_type": "<content_type>",
"filename": "<filename>"
},
"name": "message_send_voice_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Optional caption/text only when supported/requested. | |
| chat_id | Yes | Exact chat.id resolved/listed for the destination conversation; never pass a person name/user_id here. | |
| filename | Yes | ||
| account_id | No | Optional Nilyo connection ID (unipile_account_id from list_connected_accounts). Omit when the user has one account for this provider. When several exist, Nilyo never guesses: list them (display name, identifier, provider user ID), choose the one the user named or ask, and pass its ID here. | |
| content_type | Yes | Audio MIME type. WhatsApp voice notes expect Opus in OGG: audio/ogg (codecs=opus); MP3 is sent as a regular audio file. | |
| content_base64 | Yes | Base64-encoded audio bytes, not a URL/path. | |
| duration_seconds | No | Duration of the audio in seconds when known (shown by the provider on the voice note). |