Prepare a file upload
prepare_uploadGet a short-lived signed URL to upload a file from your own shell, so the bytes never pass through your context. Then run the returned next_step command (a curl PUT of the file) and pass the upload_id to upload_voicemail_greeting_audio or upload_knowledge. The URL accepts one PUT of exactly size_bytes within 15 minutes; the received file is kept one hour for the tool that uses it. Prefer this over content_base64 for anything beyond a few kilobytes.
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": {
"purpose": "<purpose>",
"filename": "<filename>",
"size_bytes": "<size_bytes>"
},
"name": "prepare_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | Yes | What the file is for; the limits of that tool apply (greeting 5 MB MP3/WAV, knowledge 20 MB PDF/DOCX/text/Markdown/CSV/HTML). | |
| filename | Yes | The file name with its extension. | |
| size_bytes | Yes | Exact size of the file in bytes; the PUT must match it. | |
| content_type | No | Optional media type for the Content-Type header of the PUT. |