Upload Attachment
upload_attachmentUpload a file (up to 5 MB) as base64 to an existing Airtable record's attachment field; for larger files, use a public URL.
Instructions
Upload a file directly to an attachment field on an existing record using Airtable's upload API. Supports files up to 5 MB. For larger files, use create_record or update_records with a public URL. The record must already exist.
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": {
"baseId": "<baseId>",
"recordId": "<recordId>",
"attachmentFieldIdOrName": "<attachmentFieldIdOrName>",
"file": "<file>",
"filename": "<filename>",
"contentType": "<contentType>"
},
"name": "upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Raw base64-encoded file content (no data URL prefix) | |
| baseId | Yes | The ID of the base | |
| filename | Yes | Filename for the attachment (e.g. "image.jpg") | |
| recordId | Yes | The ID of the existing record (e.g. recXXXXXXXXXXXXXX) | |
| contentType | Yes | MIME type of the file (e.g. "image/jpeg", "image/png", "application/pdf") | |
| attachmentFieldIdOrName | Yes | The ID or name of the attachment field (e.g. fldXXXXXXXXXXXXXX or "Images") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| fields | Yes |