Skip to main content
All MCP tools

MCP tools · CRM

crm_attach_document

Attaches a file to a record, optionally under a document type. It adds a new file and never replaces or removes one. Mark it verified afterwards with crm_set_document_status.

Scope needed
crm:docs:write
Changes data
Yes
Held for approval
No
Available to
Every organization

Inputs

NameTypeDescription
org_idstringOrganization id from list_orgs. Leave out only when the user belongs to one organization.
phonerequiredstringThe contact's phone number in E.164 form (e.g. +919812345678); it is the record's id.
file_namerequiredstringFile name with extension, e.g. passport.pdf.
content_base64requiredstringThe file's bytes, base64-encoded. At most 5 MB. PDF, images, Office files, CSV or text.
mime_typestringe.g. application/pdf. The bytes are checked either way.
doc_typestringDocument type key from crm_list_documents, to file it under.