upload_media_chunk
Uploads a media file in Base64 chunks (1 MB to 4 MB per chunk) directly through MCP tool calls. Use this when you do not have access to bash/curl in your environment. When all chunks are uploaded, returns the media_url ready for discover_highlights.
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": {
"file_name": "<file_name>",
"chunk_index": "<chunk_index>",
"total_chunks": "<total_chunks>",
"chunk_base64": "<chunk_base64>"
},
"name": "upload_media_chunk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | Name of the file with extension (e.g. 'video.mp4'). | |
| upload_id | No | Upload session identifier. Leave empty on the first chunk to automatically generate one. | |
| chunk_index | Yes | 0-based index of this chunk. | |
| chunk_base64 | Yes | Base64-encoded binary chunk data. | |
| total_chunks | Yes | Total number of chunks to upload. |