send_file
Sends a file to an existing open chat session using either a chat ID or phone number. Specify media type, filename, and optional caption to deliver images, video, audio, or documents.
Instructions
Send a file to an existing chat. (Only if the dialogue has an Open Session). Only one of two parameters is needed to determine the destination - chatId or phone.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| phone | No | ||
| voice | No | ||
| chatId | No | ||
| caption | No | ||
| mediaId | No | ||
| filename | No | ||
| mediaType | No | ||
| quotedMsgId | No |