save_data
Export a dataset (target series and exogenous features) from a data handle to a local file in CSV, Parquet, or JSON format.
Instructions
Persist the target series (y) and any exogenous features (X) behind a data handle to a local file. Combines y and X into one table. Creates parent directories as needed. Supported formats: csv (default, writes index as first column), parquet, json (records orient, ISO dates).
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": {
"data_handle": "<data_handle>",
"path": "<path>"
},
"name": "save_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Destination file path. Format is controlled by the format argument, not the file extension. | |
| format | No | Output format: csv (default), parquet, or json. | csv |
| data_handle | Yes | Data handle ID to export (from load_data_source, split_data, or transform_data). |