Get a link to upload image files
create_media_upload_linkGet a short-lived upload link for putting image files that are on disk into a media source, without the bytes passing through your context. Use this instead of upload_media_file whenever you can run a shell command (curl) and the images are files — a folder of product photos, an unzipped archive. One PUT per image; the response says exactly how. The link allows as many files as the workspace's plan has room for (capped at 500), uploads into one folder, and expires after 30 minutes. Archives are not accepted: unzip locally first and upload each image. No GIFs.
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": {
"mediaSourceId": "<mediaSourceId>",
"llm_model": "<llm_model>"
},
"name": "create_media_upload_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Folder path inside the library, e.g. "/products/". Created if missing. Defaults to the root. | |
| files | No | How many files you plan to upload. The link allows no more than this, nor more than the plan has room for. Defaults to everything the plan allows. | |
| llm_model | Yes | The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess. | |
| mediaSourceId | Yes | The library to upload into, from list_workspace_sources. | |
| conversation_id | No | Pass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request. |