Download data
download_dataUse to retrieve raw text data from a Swarm reference as a string when users explicitly ask for text content or raw data, not for files or folders.
Instructions
Download raw text data from a Swarm reference and return it as a string. Use this tool ONLY when the user explicitly asks for the text content, string content, or raw data behind a reference, or when the reference is known to have been uploaded via upload_data. If the user mentions "file", "files", "folder", or asks to "download" without specifying that they want the raw text content, use download_files instead. When in doubt about the reference type, prefer download_files — it handles both single files and folder manifests and can be saved to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reference | Yes | Swarm reference hash. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| textData | Yes | The downloaded data for the given reference. |