Upload audio
upload_audioUpload local MP3, WAV, M4A, or OGG files or import them from a public URL, with visibility, deletion TTL, folder, metadata, and private URL expiry controls.
Instructions
Upload a local MP3, WAV, M4A, or OGG path or securely import a public HTTP(S) URL. Supports public/private access, deletion TTL, folder, collection, metadata, private URL expiry, and replay-safe idempotency. The server validates actual container/codec bytes. Originals are limited to the approved global 25,000,000-byte maximum, not a plan allowance.
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": "upload_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a local MP3, WAV, M4A, or OGG. Provide exactly one of path or source_url. Originals are limited to the approved global maximum of 25,000,000 bytes. | |
| folder | No | ||
| filename | No | Original filename override. For URL imports, include a supported extension when the response MIME type is ambiguous. | |
| metadata | No | ||
| expires_in | No | Asset deletion TTL in seconds. Omit for permanent storage. | |
| source_url | No | Public HTTP(S) MP3, WAV, M4A, or OGG URL for secure server-side import. Provide exactly one of path or source_url. | |
| visibility | No | ||
| collection_id | No | ||
| idempotency_key | No | Replay-safe upload key. Reuse only with identical input and lifecycle settings. | |
| sign_expires_in | No | Private URL lifetime in seconds. |