Access logs
patroltech_access_list_logsUse when you want to know who has entered or is currently inside, from access control. Returns the entry and exit totals and the 20 most recent records (local time of the account, type, person, zone and location); with insideOnly: true, who entered and has not left. Never repeat the identity document of a visitor. Do not use when you need guard scans.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "patroltech_access_list_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date of the range (inclusive), YYYY-MM-DD. | |
| from | No | Start date of the range, YYYY-MM-DD (never words like "yesterday"). | |
| type | No | Only entries or only exits. Omit it for both. | |
| zone | No | Access zone, written as in the dashboard. Omit it for all. | |
| period | No | Period. Omit it (and from/to) for the last 24 hours. | |
| location | No | Location name. Omit it for all. | |
| insideOnly | No | true: only who is inside now (entries without an exit in the last 24 h; older ones come apart, as exits not recorded). | |
| organization | No | Omit unless the account has more than one organization; then the exact name (or id) as listed by patroltech_account_get_context. |