manage_attachment

Manage file attachments on records. Filenames can include paths for folder structure (e.g. 'docs/guide.md', 'src/index.ts'). Upload returns a presigned URL — the agent uploads bytes directly.

Parameters

NameTypeRequiredDescription
actionenum: upload | get_url | list | deleteYes
workspace_idstringYesTarget workspace ID
collectionstringYesCollection name or ID
record_idstringYesRecord the attachment belongs to
filenamestringNoRequired for upload, get_url, delete. Supports paths (e.g. 'docs/guide.md')
content_typestringNoMIME type, required for upload
prefixstringNoFilter list results by path prefix (e.g. 'docs/' to list only files in docs folder)