load_data
Load datasets from files, URLs, CSV text, or JSON rows and get a reusable data_id handle with shape, dtypes, missing counts, and summary stats for later analysis.
Instructions
Load a dataset into the server and get a data_id handle. Source: data_path (file or URL), data_records (JSON rows) or data_csv (CSV text). Returns the handle plus shape, dtypes, missing counts, the first rows and a numeric summary. Pass data_id to any later tool instead of re-sending the file; chain transform_data to filter / reshape / winsorise / impute and get a new handle whose lineage is recorded in every result's data_provenance.
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": "load_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional label recorded with the handle. | |
| detail | No | Payload depth; agent is the fullest. | agent |
| data_id | No | Data handle (d_...) from load_data; replaces data_path. | |
| dataset | No | Built-in example by name (sp.list_datasets). | |
| data_csv | No | Small inline table as CSV text. | |
| as_handle | No | Cache the fit and return its result_id. | |
| data_path | No | Absolute path of a data file on the server. | |
| result_id | No | Handle of an earlier fit made with as_handle=true. | |
| data_columns | No | Load only these columns. | |
| data_records | No | Small inline table as row objects. | |
| data_sample_n | No | Uniform random subsample of this many rows (seed 0). | |
| max_output_bytes | No | Result byte budget (default 262144; 0 = none). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||