upload_file_route
Upload an image or PDF to a conversation for speech-to-text or voice cloning, using a local path or Base64 content.
Instructions
Upload File
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": {
"conversation_id": "<conversation_id>"
},
"name": "upload_file_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Image or PDF file to upload Local path. Required for this call. | |
| file_base64 | No | Base64 contents for "file". Use this when the server cannot read your local disk. | |
| file_filename | No | Filename to send for "file". Some endpoints infer the audio format from it. | |
| conversation_id | Yes |