Prepare a media upload
create_media_uploadUse when uploading a local image, video, document, audio or voice file from any MCP client. Returns a short-lived PUT URL, headers and uploadIntentId. Upload the actual bytes, then call finalize_media_upload. A local filesystem path cannot be read by the server.
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": {
"fileName": "<fileName>",
"contentType": "<contentType>",
"sizeBytes": "<sizeBytes>"
},
"name": "create_media_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Media kind: image, animation, video, audio, voice or document. Omit to infer from MIME type. | |
| fileName | Yes | Original filename including extension, e.g. report.pdf. | |
| sizeBytes | Yes | Exact positive file size in bytes; upload those bytes before finalizing. | |
| contentType | Yes | Actual file MIME type, e.g. image/png or application/pdf. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| message | Yes |