b24_disk_file_get
Retrieve metadata and a download URL for a Bitrix24 Disk file by file ID. Use a participant's personal webhook when accessing task or chat attachments that return ACCESS_DENIED.
Instructions
Get file metadata incl. DOWNLOAD_URL (disk.file.get).
Note: files attached to task/chat messages may require the acting user to be a participant — pass that user's personal_webhook if you get ACCESS_DENIED.
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": {
"file_id": "<file_id>"
},
"name": "b24_disk_file_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | Disk file 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. | |
| 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 |