Create file upload URL
layerz_create_upload_urlIssues a signed Storage URL for an Excel/CSV file and returns file_id, signed_url, upload_expires_at, expires_at. signed_url accepts one HTTP PUT of the file body with the declared content type within 2 h of issue (upload_expires_at): create the URL right before the PUT (a shell curl -X PUT --data-binary @file; the binary stays out of the conversation); after that a new call issues a fresh URL and file_id. The uploaded file_id is the identifier the file-consuming tools take, readable for 24 h (expires_at). Limits: 25 MB, MIME whitelist (xlsx, xls, csv, json, txt). Mints no model data, so it stays available to read-only keys.
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>",
"size": "<size>",
"content_type": "<content_type>"
},
"name": "layerz_create_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | File size in bytes (max 25 MB). | |
| filename | Yes | Original filename, e.g. "actuals_q1.csv". | |
| content_type | Yes | MIME type, e.g. "text/csv" or the xlsx content type. |