b24_disk_file_upload
Upload a base64-encoded file to a Bitrix24 Disk folder and return the created file object, with automatic unique naming on filename collisions.
Instructions
Upload a file into a Disk folder (disk.folder.uploadfile).
Returns the created file object. Content must be base64; the fileContent parameter is sent as [name, base64] with a unique name generated on collision.
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": {
"folder_id": "<folder_id>",
"name": "<name>",
"content_base64": "<content_base64>"
},
"name": "b24_disk_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name including extension, e.g. 'report.pdf'. | |
| folder_id | Yes | Target folder id. | |
| webhook_url | No | Override the default incoming webhook for this call (https://<portal>/rest/<user_id>/<token>/). If omitted, uses personal_webhook, then the X-B24-Webhook HTTP header, then the BITRIX_WEBHOOK_URL env default. | |
| content_base64 | Yes | Base64-encoded file content. | |
| personal_webhook | No | Act as a specific user (their personal incoming webhook). Takes precedence over webhook_url. Required to write to the portal under that user's permissions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |