download_files
Download survey files from LimeSurvey by specifying a survey ID and optional file ID to retrieve specific or all associated files.
Instructions
Download files from a LimeSurvey survey.
Args:
sid: The survey ID.
file_id: The file ID. If None, download all files.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | Yes | ||
| file_id | No |
Implementation Reference
- main.py:682-692 (handler)The MCP tool handler for 'download_files'. Decorated with @mcp.tool(), it defines the input schema via type hints and docstring, registers the tool, and implements the logic by delegating to the citric Client's download_files method via a context manager.@mcp.tool() def download_files(sid: int, file_id: int = None) -> dict[str, Any]: """Download files from a LimeSurvey survey. Args: sid: The survey ID. file_id: The file ID. If None, download all files. """ with get_client() as client: return client.download_files(sid, file_id)