deploy_upload_chunk
Upload one chunk of a large file to an already-deployed agent site (for files that don't fit in a single deploy_site call). Chunks are appended in order; set is_last on the final chunk to publish the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Site path, e.g. assets/video.mp4 | |
| agent | Yes | The agent's ICP principal (must own the site). | |
| is_last | Yes | True on the final chunk: assembles and publishes the file. | |
| canister | Yes | The site canister principal returned by deploy_site. | |
| chunk_index | Yes | 0-based chunk number. 0 starts a new upload for this path. | |
| total_bytes | No | Total file size in bytes, as a decimal string (only used on the first chunk). | |
| chunk_base64 | Yes | Chunk bytes, base64-encoded. | |
| content_type | No | MIME type (only used on the first chunk). |