Download File from Kintone
kintone-download-fileDownload a file from kintone using its fileKey, automatically detect extension, and save to the configured download directory. Returns the absolute path to the saved file.
Instructions
Download a file from kintone using its fileKey and save it to the configured download directory. Returns the absolute path to the saved file. Requires KINTONE_ATTACHMENTS_DIR environment variable to be set, app record viewing permission, and permission to view the field containing the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileKey | Yes | The unique file key to download (obtained from record retrieval or file upload) | |
| fileName | Yes | The filename (without extension) to use when downloading to local storage. The extension will be automatically detected and added based on the file's MIME type |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the downloaded file | |
| mimeType | Yes | MIME type of the downloaded file | |
| fileSize | Yes | File size in bytes |