Skip to main content
Glama

upload_file

Upload a file to a LimeSurvey survey by providing the survey ID, base64-encoded file content, and file name. Facilitates adding files directly to survey data.

Instructions

Upload a file to a LimeSurvey survey.

Args: sid: The survey ID. file_content: The file content (base64 encoded). file_name: The file name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_contentYes
file_nameYes
sidYes

Implementation Reference

  • main.py:669-680 (handler)
    The 'upload_file' tool handler, registered via @mcp.tool() decorator. It takes survey ID, base64-encoded file content, and filename, then delegates to the citric Client's upload_file method.
    @mcp.tool() def upload_file(sid: int, file_content: str, file_name: str) -> dict[str, Any]: """Upload a file to a LimeSurvey survey. Args: sid: The survey ID. file_content: The file content (base64 encoded). file_name: The file name. """ with get_client() as client: return client.upload_file(sid, file_content, file_name)

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/edgarrmondragon/limesurvey-mcp'

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