Action Trace Response
Action traces provide detailed step-by-step logs of automation execution, returned in API responses for both custom agent shortcuts and/Operator commands.
Operator Traces
Simple action logs for/Operator commands:
Custom Agent Traces
Detailed step logs for custom agent workflows with multiple action types:Supported Step Types
Custom agent traces use astep_type field to identify the action. The full list of supported step types:
| Step Type | Description |
|---|---|
start / end | Workflow boundaries |
goToUrl | Navigate to a URL |
getUrl | Get the current page URL |
agent | Sub-agent invocation (contains nested action_trace) |
agenticSelector | Element selection via CSS selectors with fallback |
agenticMouseAction | Mouse action at recorded coordinates |
getFullHtml / getSimplifiedHtml | HTML content capture |
getScreenshot | Screenshot capture |
print | Print a message to the chat |
python | Inline Python code execution |
for / while | Loop constructs |
if | Conditional branching |
setVariable | Variable assignment |
wait | Delay step |
waitForElement | Wait for an element to appear |
pressKeys | Keyboard input |
readGoogleSheet / writeGoogleSheet | Google Sheets operations |
dataTableExportAsCsv | Export data as CSV |
objectExportAsJson | Export data as JSON |
dataTableInsertRow / dataTableUpdateCellValue | Data table operations |
objectSetProperties | Object property updates |
runCustomAgent | Invoke another custom agent workflow |
Formatting Example
Convert action traces to readable markdown (handles multiple custom agent step types):GIF Recording
The SDK automatically compiles frames into an animated GIF showing the complete
automation trajectory.
Automatic Directory Creation
Narada automatically creates a directory structure for your GIFs:
- Main Directory:
Narada Downloadsin your machineβs Downloads folder - Request Directory: Directory named after your
request_idfrom the SDK response - File: Automation saved as an animated
.giffile
If the
Narada Downloads directory doesnβt exist, it will be created automatically.Best Practices
Debugging
Use action traces for programmatic debugging and GIFs for visual verification
Auditing
Action traces provide detailed audit logs for compliance and monitoring
Documentation
GIFs document visual workflows while action traces capture step-by-step logic
Analysis
Parse action traces to analyze automation patterns and optimize workflows