Import question
limesurvey_import_questionImport a question into a survey group. Use import_data_path for files at or above roughly 50 KB instead of inline import_data.
Instructions
Import a question into a survey group. Use import_data_path for files at or above roughly 50 KB instead of inline import_data.
Calls LimeSurvey RemoteControl method import_question. Authentication uses the configured service account; do not provide a session key.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"survey_id": "<survey_id>",
"group_id": "<group_id>",
"import_data_type": "<import_data_type>"
},
"name": "limesurvey_import_question"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group_id | Yes | Numeric question-group ID. | |
| mandatory | No | Whether the imported question is mandatory. | |
| survey_id | Yes | Numeric LimeSurvey survey ID. | |
| import_data | No | Base64-encoded question file contents; omit when using import_data_path. | |
| response_format | No | Output format. JSON preserves the complete structured result; Markdown is optimized for reading. | json |
| import_data_path | No | Local file path to a question file. The server reads and base64-encodes it, so use this instead of inline import_data for files at or above roughly 50 KB. The file must live inside LIMESURVEY_IMPORT_DIR (or LIMESURVEY_EXPORT_DIR as a fallback). Exactly one of import_data or import_data_path must be set. | |
| import_data_type | Yes | Import type supported by the LimeSurvey instance, normally lsq. | |
| new_question_help | No | Optional replacement help text. | |
| new_question_text | No | Optional replacement question text. | |
| new_question_title | No | Optional replacement question code/title. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| result | Yes | ||
| warnings | No | ||
| truncated | No | ||
| truncation_message | No |