You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add upload_attachment tool for direct file uploads (#86)
* Add upload_attachment tool for Airtable API
Co-authored-by: Cursor <cursoragent@cursor.com>
* Deduplicate AirtableRecordSchema and clarify upload_attachment file description
- Extract shared AirtableRecordSchema in types.ts, replacing 5 inline
copies across airtableService.ts
- Reuse AirtableRecordSchema for upload-attachment.ts outputSchema
- Clarify that the file parameter expects raw base64 (no data URL prefix)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: David <david@example.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
'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.',
17
+
inputSchema: {
18
+
...baseId,
19
+
recordId: z.string().describe('The ID of the existing record (e.g. recXXXXXXXXXXXXXX)'),
20
+
attachmentFieldIdOrName: z
21
+
.string()
22
+
.describe('The ID or name of the attachment field (e.g. fldXXXXXXXXXXXXXX or "Images")'),
23
+
file: z.string().describe('Raw base64-encoded file content (no data URL prefix)'),
24
+
filename: z.string().describe('Filename for the attachment (e.g. "image.jpg")'),
25
+
contentType: z
26
+
.string()
27
+
.describe('MIME type of the file (e.g. "image/jpeg", "image/png", "application/pdf")'),
0 commit comments