Prepare a file upload
assets_upload_preparePrepare a direct single-PUT or multipart media upload. The returned signed URLs are used by the host; file bytes never pass through MCP. Free.
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": {
"projectId": "<projectId>",
"fileName": "<fileName>",
"mimeType": "<mimeType>",
"sizeBytes": "<sizeBytes>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "assets_upload_prepare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lane | No | ||
| tags | No | ||
| title | No | ||
| sha256 | No | Lower- or upper-case hexadecimal SHA-256 of the complete file. | |
| fileName | Yes | ||
| mimeType | Yes | ||
| platform | No | ||
| projectId | Yes | ||
| sizeBytes | Yes | ||
| workspace | No | Workspace slug. Omit to use the workspace your credential is bound to. An API key names its own workspace, and a value that disagrees with it is refused rather than ignored. | |
| idempotencyKey | Yes | Required for anything that spends or creates durable state. Generate a unique id per logical call. Retrying with the SAME id and the SAME arguments returns the stored result instead of doing — and charging for — the work twice; the same id with different arguments is refused with `conflict`. | |
| durationSeconds | No | ||
| restartUploadId | No | Expired/failed authority for the same unchanged file. Use a new idempotencyKey. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||