Export survey structure to a file (experimental)
limesurvey_export_survey_to_fileExport a LimeSurvey survey structure as .lss file to a specified directory. Requires experimental methods enabled.
Instructions
Attempt to export a survey's structure as .lss and write it inside LIMESURVEY_EXPORT_DIR, returning a path instead of base64. Core LimeSurvey RemoteControl2 has no export_survey method (verified 2026-07-24 against api.limesurvey.org and the LimeSurvey source); this tool only works if a custom plugin exposes an equivalent RPC method, so it requires LIMESURVEY_ENABLE_EXPERIMENTAL_METHODS=true and otherwise always fails with a clear EXPORT_UNSUPPORTED error. Prefer property-based verification (list_groups, list_questions, get_survey_properties, get_group_properties, get_question_properties) over round-trip diffing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | No | Optional output file name without a directory. | |
| overwrite | No | Allow replacing an existing file. | |
| survey_id | Yes | Numeric LimeSurvey survey ID. | |
| document_type | No | Structure export format. | lss |
| confirm_overwrite | No | Required acknowledgement when overwrite is true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | ||
| workflow | Yes |