import_group
Add a question group to a LimeSurvey survey by importing a file, enabling structured data collection for research or feedback forms.
Instructions
Import a group to a LimeSurvey survey.
Args:
sid: The survey ID.
group_file: The group file content (base64 encoded).
group_name: The name for the imported group.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | Yes | ||
| group_file | Yes | ||
| group_name | No |
Implementation Reference
- main.py:473-484 (handler)The main handler function for the 'import_group' tool. It is registered via the @mcp.tool() decorator, which FastMCP uses to expose it as an MCP tool. The function imports a group into a LimeSurvey survey by delegating to the underlying client library.@mcp.tool() def import_group(sid: int, group_file: str, group_name: str = None) -> int: """Import a group to a LimeSurvey survey. Args: sid: The survey ID. group_file: The group file content (base64 encoded). group_name: The name for the imported group. """ with get_client() as client: return client.import_group(sid, group_file, group_name)