upload_data
Register a JSON dataset under a name for later use in Vega-Lite visualizations. Call this before visualizing data.
Instructions
A tool to upload and register a JSON dataset by name for use in subsequent visualizations. When to use this tool:
When the user asks to visualize data, call this tool first to register the dataset, then call visualize_data. How to use this tool:
Provide a short, descriptive name and the dataset as a list of JSON objects (records).
Each object should share a consistent set of keys (fields).
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": {
"name": "<name>",
"data": "<data>"
},
"name": "upload_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |