b24_calendar_event_list
List calendar events in a date range with a compact field set and configurable limit; check total and truncated to see if more events matched.
Instructions
List calendar events in a date range (calendar.event.get).
owner_id defaults to the acting user.
Bitrix returns every field of every event in the range and offers no
server-side projection or paging here, so this trims client-side: by
default each event keeps a compact set of fields and at most limit
events come back. total always reports how many matched, and
truncated says whether you are seeing all of them — narrow the date
range or raise limit rather than assuming the tail is empty. Ask for
select=['*'] only when you genuinely need the full ~60 fields; a busy
month measured ~1 MB that way.
Returns: JSON: {"events": [...], "count": , "total": , "truncated": , "ownerId": , "type": "user"|"group", "fields": "default"|"all"|}.
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": {
"date_from": "<date_from>",
"date_to": "<date_to>"
},
"name": "b24_calendar_event_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max events to return. The full match count is always reported as 'total'. | |
| select | No | Fields to keep per event. Omit for a compact default set; pass ['*'] for every field (large); or name fields explicitly, e.g. ['ID','NAME','DATE_FROM','DESCRIPTION']. | |
| date_to | Yes | Range end, 'YYYY-MM-DD'. | |
| owner_id | No | Calendar owner id. Defaults to the acting user (resolved via user.current) for owner_type='user'. | |
| date_from | Yes | Range start, 'YYYY-MM-DD' (or 'YYYY-MM-DD HH:MM:SS'). | |
| owner_type | No | Calendar owner type: 'user' (default) or 'group'. | user |
| 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 |