b24_disk_storages
List all Bitrix24 disk storages (personal, groups, company) to view and manage file storage locations across the portal.
Instructions
Lista todos los storages disponibles (personal, grupos, empresa).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| webhook_url | No |
Implementation Reference
- index.js:205-207 (registration)Registers the 'b24_disk_storages' MCP tool with its schema and handler.
server.tool('b24_disk_storages', 'Lista todos los storages disponibles (personal, grupos, empresa).', diskStoragesSchema.shape, wrap(diskStorages)); - src/tools/disk.js:11-15 (handler)Handles the tool logic: calls Bitrix24 API 'disk.storage.getlist' and returns portal info with storages list.
export async function diskStorages({ webhook_url }) { const client = new Bitrix24Client(resolveWebhook(webhook_url)); const res = await client.call('disk.storage.getlist'); return { portal: client.portal, storages: res.result ?? [] }; } - src/tools/disk.js:7-9 (schema)Defines the input schema for the tool: an optional webhook_url parameter.
export const diskStoragesSchema = z.object({ webhook_url: z.string().url().optional(), }); - src/tools/disk.js:3-3 (helper)Imports the resolveWebhook utility used to determine the webhook URL.
import { resolveWebhook } from '../utils/resolve-webhook.js';