files_upload
Upload a file to RetailCRM by providing filename and content (UTF-8 text or base64). Returns success status and uploaded file.
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) |