deployment_image_upload
Adds one chunk of a docker save archive to a deployment that was started with a local build. Chunks go in order: offset must equal what has been received so far, which makes a retry after a dropped connection safe, and the response says how many bytes are held. Finish with deployment_image_finish. The CLI does this for you.
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": {
"productId": "<productId>",
"deploymentId": "<deploymentId>",
"offset": "<offset>",
"data": "<data>"
},
"name": "deployment_image_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | This chunk, base64-encoded. Keep each chunk to the chunk_bytes the deploy returned. | |
| offset | Yes | Bytes already uploaded. Start at 0. | |
| productId | Yes | Product identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d. | |
| deploymentId | Yes |