Salesforce CLI agent trace Command Reference
When you run an agent preview conversation (either interactive or programmatic), trace files are recorded and saved in your local DX project. Each customer utterance and agent response of a conversation creates trace data. Analyze the trace data to observe, monitor, investigate, and troubleshoot agent events and behavior.
This table lists the Salesforce CLI agent trace commands. Each command links to its full reference in the Salesforce CLI Command Reference.
| Command | Description |
|---|---|
agent trace delete | Delete trace files from an agent preview session. |
agent trace list | List the available trace files that were recorded during all agent preview sessions. |
agent trace read | Read trace files from an agent preview session. |