Upload a spreadsheet
create_data_sourceCreate a data source from a CSV or spreadsheet you provide as base64. Best for data you have generated — a CSV you assembled from a transform, an export you built. The bytes travel through your own context, roughly four characters per three bytes, so keep it under about 256 KB; a spreadsheet that already exists on disk is far cheaper to upload in the app. Hard limit 4.0 MB. Creating it does not attach it — call attach_data_source next. NOTE: pictures embedded in spreadsheet cells are NOT extracted on this path; that only happens when a workbook is uploaded through the app.
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": {
"filename": "<filename>",
"contentBase64": "<contentBase64>",
"llm_model": "<llm_model>"
},
"name": "create_data_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name. Defaults to the file name. | |
| filename | Yes | The file name including extension — .csv, .xlsx, .xlsm or .xls. The extension decides how it is parsed. | |
| llm_model | Yes | The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess. | |
| contentBase64 | Yes | The file's bytes, base64-encoded, with no data: prefix. | |
| conversation_id | No | Pass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request. |