rename_variables
Rename variables or change their long names in STATISTICA .sta/.stw files by current name or index, optionally saving results or editing a live session.
Instructions
Rename variables and/or change their long names, keyed by current variable name or index.
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": {
"path": "<path>",
"renames": "<renames>"
},
"name": "rename_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the source file. | |
| save | No | Optional destination path to persist the result as .sta. | |
| sheet | No | ||
| attach | No | Attach to the already-running STATISTICA instance and edit it live (no new process, the app is not closed). | |
| renames | Yes | Map of old name or index -> new short name. | |
| longNames | No | Map of current name or index -> new long name. |