action | string | Yes | Operation to perform. Values: start, append, complete, cancel. |
path | string | No | Destination file path within the workspace (for example ‘music/track.wav’). Required for ‘start’. |
mode | string | No | Use ‘write’ to create-or-update, or ‘create’ to fail if the path already exists. Only used with ‘start’. Values: write, create. |
expected_bytes | integer | No | Optional final file size in raw bytes. If provided, ‘complete’ verifies it exactly. Only used with ‘start’. |
mime_type | string | No | Optional MIME type hint for the upload session (for example ‘audio/wav’). Only used with ‘start’. |
upload_id | string | No | Upload ID returned by the ‘start’ action. Required for ‘append’, ‘complete’, and ‘cancel’. |
part_number | integer | No | Zero-based chunk index. Send chunks in strict order: 0, 1, 2, … Required for ‘append’. |
content | string | No | Base64-encoded chunk bytes. Keep each chunk under 1 MB (approx. 1.3 MB base64-encoded) to fit within standard MCP message limits. Use the size guidance from the ‘start’ response. Required for ‘append’. |