uploadAndAttachFile
Upload files to RSpace documents and attach them as proper file attachments in one step. Supports all file types including images, PDFs, and data files.
Instructions
Uploads a file to RSpace and attaches it to a document as a proper file attachment
Usage: One-step process to upload any file and attach it to an RSpace document File types: Supports all file types (images, PDFs, data files, protocols, etc.) Attachment: Creates proper RSpace file attachment, not just a link
Parameters:
document_id: RSpace document ID (numeric or global ID like "SD12345")
file_path: Path to the file to upload (e.g., "data/results.pdf")
caption: Optional caption that appears with the attachment
description: Optional description for the uploaded file
Returns: Upload confirmation and document update information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | ||
| file_path | Yes | ||
| caption | No | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||