files_upload
Upload UTF-8 text or base64 binary files to RetailCRM. Specify filename and content; optionally set base64 flag and MIME type.
Instructions
Upload a file (UTF-8 text or base64 binary). Returns {success, file}.
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": {
"filename": "<filename>",
"content": "<content>"
},
"name": "files_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base64 | No | Set true if `content` is base64-encoded binary | |
| content | Yes | File content (UTF-8 text, or base64 when base64=true) | |
| filename | Yes | Filename for the uploaded file | |
| content_type | No | MIME type (default application/octet-stream) |