Save data
save_dataSave workspace variables to MDF, MAT, H5, or ASCII files at a specified path; optionally select variables, or omit selection to save all (H5 may require names).
Instructions
Save workspace variables to a file. Use project_action(save) to save the .sim project.
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": {
"kind": "<kind>",
"file_path": "<file_path>"
},
"name": "save_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Save format: mdf / mat / h5 / ascii. | |
| file_path | Yes | Destination path. | |
| var_names | No | Variables to save; omit = all (except h5 may require names). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |