Start a Sheet Import
createImportStart importing a CSV or .xlsx file (at most 5 MB, 10 sheets, 2,000 rows per sheet, 5,000 rows in all). Takes fileName, contentType (text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) and sizeBytes (the exact size). Returns the import (status awaiting_upload), uploadUrl and uploadExpiresAt: PUT the file bytes to uploadUrl within 300 seconds with the same Content-Type and Content-Length, then call getImport. The import and its file are deleted after 30 days. Use when: the user has a spreadsheet of things to test and you can upload it.
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>",
"contentType": "<contentType>",
"sizeBytes": "<sizeBytes>"
},
"name": "createImport"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | ||
| sizeBytes | Yes | The file's exact size. The upload URL is signed for it. | |
| contentType | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| import | Yes | A sheet upload and what has been done with it. Kept for 30 days. | |
| uploadUrl | Yes | A presigned `PUT` for the file. Send the bytes with the same `Content-Type` and `Content-Length` as in the request. Valid for 300 seconds. | |
| uploadExpiresAt | Yes |