Upload data
upload_dataUpload arbitrary text to Swarm as an immutable, content-addressed blob and get a permanent reference hash. Use when storing data without a feed or topic.
Instructions
Upload arbitrary text data to Swarm as an immutable, content-addressed blob. Returns a Swarm reference hash that permanently identifies the uploaded bytes. Use this tool whenever the user asks to "upload data", "upload text", "store data", or similar, without mentioning a feed, topic, or memory. This is NOT a feed operation — if the user wants mutable, topic-indexed storage (i.e. mentions a feed, topic, or memory name), use update_feed instead. Only data is required. redundancyLevel and postageBatchId are optional — use their defaults and do NOT ask the user for them unless the user explicitly brings them up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The literal string content to upload, taken verbatim from the user's message. Pass the exact text the user provided (typically the text after phrases like "upload data:", "upload:", "store:", or similar), even if the value looks like a short identifier, a placeholder name (e.g. 'Text1', 'Message1', 'foo'), or otherwise seems like a variable — it is the content itself. Do not ask the user to clarify or expand the content; do not substitute your own text. | |
| postageBatchId | No | Optional. The id of the batch which will be used to perform the upload. Do not ask the user for this value; only set it if the user explicitly provides a batch id. | |
| redundancyLevel | No | Optional 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. Default is 0. Do not ask the user for this value; only set it if the user explicitly requests a redundancy level. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to access uploaded data. | |
| message | No | Upload response message. | |
| reference | Yes | Swarm reference hash for uploaded data. |