List Org Debug Logs
apexlog_list_org_logsLists Salesforce org debug logs with filters for user, request, operation, success status, and time range, returning matching counts and log IDs for download.
Instructions
List the debug logs stored in a Salesforce org, with how many match. Pass ids to apexlog_get_org_logs to download them.
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": "apexlog_list_org_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Username whose activity was logged | |
| limit | No | Page size (default: 20) | |
| cursor | No | nextCursor from the previous page | |
| sortBy | No | Descending (default: startTime) | |
| request | No | e.g. "Api" or "Application" | |
| operation | No | Part of the operation, any case, e.g. "aura" for /aura | |
| succeeded | No | true: succeeded logs only; false: failed logs only | |
| targetOrg | No | Alias or username of the target Salesforce org. Uses the project default if not specified. | |
| startTimeTo | No | ||
| startTimeFrom | No | ISO 8601 with a zone, e.g. 2026-10-09T09:00:00Z | |
| minFileSizeBytes | No |