Skip to main content
Glama
rspace-os

RSpace MCP Server

Official
by rspace-os

downloadFile

Download file attachments from RSpace documents to your local system. Retrieve images, data files, or other attachments by specifying the file ID and save location.

Instructions

Downloads file attachments from RSpace documents

Usage: Retrieve images, data files, or other attachments Parameters:

  • file_id: Numeric ID of the file attachment

  • file_path: Local filesystem path where file should be saved

Returns: Download status and file information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYes
file_pathYes

Implementation Reference

  • main.py:633-650 (handler)
    The primary handler function for the 'downloadFile' MCP tool. It is decorated with @mcp.tool to register it and implements the core logic by calling the RSpace ELN client's download_file method to save the specified file attachment to the local filesystem.
    @mcp.tool(tags={"rspace"}, name="downloadFile") def download_file( file_id: int, file_path: str ) -> Dict[str, any]: """ Downloads file attachments from RSpace documents Usage: Retrieve images, data files, or other attachments Parameters: - file_id: Numeric ID of the file attachment - file_path: Local filesystem path where file should be saved Returns: Download status and file information """ resp = eln_cli.download_file(file_id=file_id, filename=file_path, chunk_size=1024) return resp

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rspace-os/rspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server