Upload folder
upload_folderUpload a local directory and its contents to Swarm decentralized storage. For large folders, starts a background upload and returns a tag ID to track progress until the manifest reference is ready.
Instructions
Upload a folder (directory). Use this tool whenever the user mentions "folder", "directory", "the contents of", or asks to upload a path that refers to a directory rather than one file — including phrasings like "upload to Swarm folder ", where is the folder to upload, not a destination. Prefer this tool over upload_file when it is unclear whether a given path is a file or a directory: upload_file cannot upload a directory. folderPath is REQUIRED — pass the folder path from the user's message verbatim. Small folders upload synchronously and return the manifest reference. Large folders (over the server's deferred-upload threshold) upload in the background and return only a tagId; unlike upload_file, a folder's reference cannot be computed up front, so retrieve it by polling query_upload_progress with that tagId until processedPercentage is 100. Optional options (ignore if they are not requested): redundancyLevel: redundancy level for fault tolerance. Optional, value is 0 if not requested. postageBatchId: The postage stamp batch ID which will be used to perform the upload, if it is provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folderPath | Yes | Required. Path to the local folder to upload, taken verbatim from the user's message. Do not ask the user to confirm or re-enter the path when one was already given. | |
| postageBatchId | No | The id of the batch which will be used to perform the upload. | |
| redundancyLevel | No | redundancy level for fault tolerance (higher values provide better fault tolerance but increase storage overhead) 0 - none, 1 - medium, 2 - strong, 3 - insane, 4 - paranoid |