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.

CommandDescription
agent trace deleteDelete trace files from an agent preview session.
agent trace listList the available trace files that were recorded during all agent preview sessions.
agent trace readRead trace files from an agent preview session.