files
List, upload, download, validate, detach, or delete KeyCRM order attachments and files, including base64 uploads up to 250 MB per order.
Instructions
Files and attachments (файли) of orders.
actions: list_order - attachments of an order (GET /orders/{id}, field attachments) validate - size limit check before upload: order_id + path attach_order - upload a file to an order: order_id + path (local file) or content_base64, optional filename/mime; multipart, single chunk, limit 250 MB per order download - save a file by file_id into keycrm-mcp/exports/, returns local path, size and content type detach - remove attachment from its entity (attachment_id) delete_file - delete file itself (file_id), cascades attachments
Note: deleting an order does NOT delete its files, remove orphans with delete_file explicitly.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | ||
| path | No | ||
| action | No | list_order | |
| file_id | No | ||
| filename | No | ||
| order_id | No | ||
| attachment_id | No | ||
| content_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |