montecarlo agent-traces (CLI v1)
montecarlo agent-traces is part of v1 of the Monte Carlo CLI, the Python CLI (montecarlo, installed with pip install montecarlodata). This page covers its subcommands, usage and options.
Commands for exporting agent traces.
montecarlo agent-traces [OPTIONS] COMMAND [ARGS]...montecarlo agent-traces export
montecarlo agent-traces exportExport a full agent trace (tree + span content) to a gzipped JSON file.
Kicks off an async export job on the server, polls until the artifact is ready, then downloads the presigned URL contents to disk.
montecarlo agent-traces export [OPTIONS]Options
--trace-link <trace_link>: Required Trace page URL copied from the Monte Carlo UI. The CLI parses out the trace table MCON and trace ID from the URL — the UI has a copy-link button on each trace page. Example: https://app.getmontecarlo.com/agents/MCON++.../ai-agent/traces/abc...--output <output>: Path to write the gzipped JSON to. Defaults to ./trace-<traceId>.json.gz in the current directory.--timeout <timeout_seconds>: Max seconds to wait for the export to reach DONE before giving up. Default:600.--poll-interval <poll_interval_seconds>: Seconds between status polls. Default:2.0.
Source: montecarlo agent-traces export in the CLI reference
Source: montecarlo agent-traces in the CLI reference
This page is generated from the CLI's help text on each release. Changes made in ReadMe are overwritten.
Updated 1 day ago
Did this page help you?
