import_survey
Import a survey from .lss, .csv, .txt, or .lsa files into LimeSurvey. Pass a file path or base64 content, with optional new survey ID and name.
Instructions
Import a survey from a .lss/.csv/.txt/.lsa file. Returns the new survey ID. Pass file_path with the local path to the .lss (recommended) OR sImportData in base64.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "import_survey"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Local path to a file. If given, the server reads it and base64-encodes it automatically (alternative to passing the content directly). | |
| sImportData | No | File content in BASE64. Not needed if using `file_path`. | |
| DestSurveyID | No | Optional. Desired ID (if in use, another is assigned). | |
| sNewSurveyName | No | Optional. New name for the imported survey. | |
| sImportDataType | No | Type: 'lss', 'csv', 'txt', or 'lsa'. Inferred from the extension if using `file_path`. |