run_macro
Execute STATISTICA BASIC (SVB) macros or .svb files on the active spreadsheet to run custom models (DWLS/Lowess/EWPR), with optional result saving.
Instructions
Execute STATISTICA BASIC (SVB) source code (or a .svb file) with the opened spreadsheet as ActiveSpreadsheet, then optionally save the result. Use it for custom recurrent models (DWLS/Lowess/EWPR) supplied as SVB macros.
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": "run_macro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | SVB source code, e.g. "Sub Main ... End Sub". | |
| path | No | Spreadsheet to expose as ActiveSpreadsheet inside the macro. | |
| save | No | Optional destination .sta path to persist the modified sheet. | |
| sheet | No | ||
| attach | No | Attach to the already-running STATISTICA instance and edit it live (no new process, the app is not closed). | |
| source | No | Path to a .svb file (alternative to code). |