Attach a spreadsheet to a catalogue
attach_data_sourceAttach a data source to a catalogue under a variable, or change the variable of one already attached. data.transform.js then reads it as files[""]. If the spreadsheet's cells hold image references, the library they point into is attached automatically and the result says so — without it every one of those images resolves to nothing and the catalogue prints without its pictures, silently.
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": {
"documentId": "<documentId>",
"dataSourceId": "<dataSourceId>",
"variable": "<variable>",
"llm_model": "<llm_model>"
},
"name": "attach_data_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variable | Yes | The name data.transform.js reads it under — files["products"] or mediaSources["photos"]. Keep it stable: changing it breaks every transform already reading the old name. | |
| 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. | |
| documentId | Yes | The catalogue's id. | |
| dataSourceId | Yes | The data source to attach, from list_workspace_sources. | |
| 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. |