Create media upload
create_media_uploadRequest an upload URL for media (no token required). By default, upload the whole file with a single PUT; the URL is valid for 15 minutes and the maximum size is 100MB. For files over 100MB, pass multipart:true to use multipart upload (valid for 2 hours; the size limit depends on the plan) and follow the returned instructions. The returned media.id is used as mediaIds in create_draft. (Required scope: cd.media.write)
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>",
"mime": "<mime>",
"size": "<size>"
},
"name": "create_media_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | Yes | ||
| size | Yes | ||
| width | No | ||
| height | No | ||
| filename | Yes | ||
| multipart | No | Multipart upload; must be true when the file is larger than 100MB | |
| workspaceId | No | Optional: id of the workspace to operate on (look it up with list_workspaces); if omitted, the default personal workspace is used. A developer API key can only use the workspace it is bound to. | |
| durationSeconds | No |