List, upload, download, or delete private Data files
filesLists, uploads, downloads, or deletes private files on one Data project this account owns. Actions are list, upload, download, and delete. Use files for file bytes. Use database for tables and records and export for a JSON snapshot. Uploads are base64, at most 1 MB, within 100 files and 50 MB per account. This is the existing private bucket, not a public Supabase Storage bucket.
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": {
"projectId": "<projectId>"
},
"name": "files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name for upload. Slashes and control characters are replaced. At most 180 characters. Default file. | |
| action | No | list, upload, download, or delete. Omitted means list. download and delete require fileId. delete removes the private file. | |
| fileId | No | File UUID for download and delete. | |
| mimeType | No | Upload media type. Known types are kept: text/plain, text/csv, application/json, application/pdf, image/png, image/jpeg, image/gif, image/webp, audio/mpeg, audio/wav, video/mp4, application/zip, and application/octet-stream. Any other value is stored as application/octet-stream. | |
| projectId | Yes | UUID of a Data project this account owns. | |
| contentBase64 | No | File bytes for upload, standard base64, 1 to 1,000,000 decoded bytes. Not returned on upload. |