Get Org Debug Logs
apexlog_get_org_logsDownloads Salesforce Apex debug logs by ID or the newest N, saving each file to disk and returning its path for use with the analysis tools. Use it to fetch logs before profiling.
Instructions
Download debug logs from a Salesforce org, by id or the newest N, and return each saved file's path, which the analysis tools accept.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Log ids, from apexlog_list_org_logs | |
| latest | No | The newest N logs, in place of ids (default: 1) | |
| outputDir | No | Log directory (default: .apex-log-mcp/ in the first client root, else cwd) | |
| targetOrg | No | Alias or username of the target Salesforce org. Uses the project default if not specified. |