Start a media upload
start_media_upload[Admin] First step of an upload for a client that can send a file itself: returns a signed upload_url. The file is PUT there with the declared Content-Type, and finish_media_upload completes it. A client that cannot send a file to an address uses upload_media_file.
Every argument in full, with examples: get_tool_reference.
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>",
"content_type": "<content_type>",
"size_bytes": "<size_bytes>"
},
"name": "start_media_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Library folder to upload into; default the top (""). | |
| file_name | Yes | Display name in the library. It is never part of the address. | |
| llm_model | No | Your model id, e.g. "claude-opus-4-8"; "unknown" if unsure. For analytics. | |
| size_bytes | Yes | Size of the file in bytes, at most 52428800 (50 MB). A larger file answers 413. | |
| merchant_id | No | Optional company to upload for. Admins and sub-merchant operators only; other callers always use their token's company. | |
| content_type | Yes | Type of the file: image/jpeg, image/png, image/webp, image/gif, image/avif, image/svg+xml, video/mp4, audio/mpeg, audio/mp4, audio/x-m4a, font/woff2. Video must be H.264 MP4. | |
| conversation_id | No | The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics. | |
| replace_media_id | No | Replace this file instead of adding one. Must be the same kind. The file keeps its id, name and alt text and gets a new address when finish_media_upload accepts it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| token | Yes | ||
| media_id | Yes | ||
| upload_url | Yes | ||
| cache_control | Yes | ||
| _mcp_instructions | No | Server-issued metadata for this conversation. |