Upload local media
upload_fileUpload local audio or video files to obtain a file reference for transcription via Pepys API. Supports base64 bytes or file path input.
Instructions
Upload local audio/video the agent is holding (as base64 bytes or a file path) and get back a file_ref to pass to transcribe. Use this when the media has no public URL. Requires the Pepys R2 storage backend.
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_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path to a local audio/video file. Provide EITHER path OR bytes_base64. | |
| filename | No | Original filename (used to infer content type when mime_type is omitted). | |
| mime_type | No | audio/* or video/* content type. Inferred from the filename/path extension if omitted. | |
| bytes_base64 | No | Base64-encoded media bytes. Provide EITHER path OR bytes_base64. |