Replace a spreadsheet's file
replace_data_sourceReplace the file behind an existing data source, keeping its id. Every catalogue already reading it keeps its attachment and its variable, so a transform reading files['products'] goes on working — which is the whole reason to use this rather than creating a second source. Same base64 limits and the same cell-image caveat as create_data_source. The old stored file is deleted; previous cell-image bindings are cleared and their deletion locks are released.
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": {
"dataSourceId": "<dataSourceId>",
"filename": "<filename>",
"contentBase64": "<contentBase64>",
"llm_model": "<llm_model>"
},
"name": "replace_data_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | The new file's name, including extension. | |
| 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. | |
| dataSourceId | Yes | The data source to repoint, from list_workspace_sources. | |
| contentBase64 | Yes | The new file's bytes, base64-encoded. | |
| 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. |