List Org Debug Logs
apexlog_list_org_logsList debug logs stored in a Salesforce org with match counts and filters. Pass returned IDs to download the logs for Apex performance analysis.
Instructions
List the debug logs stored in a Salesforce org, with how many match. Pass ids to apexlog_get_org_logs to download them.
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 | false for 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 |