Start performance trace
performance_start_traceRecord a Chrome performance trace of page load or interaction, capturing rendering, scripting, loading, screenshots, and V8 CPU. Optionally save raw trace JSON to a file for DevTools analysis.
Instructions
Record a Chrome performance trace of page load or interaction.
Captures the same DevTools timeline categories the Performance panel uses: rendering, scripting, loading, screenshots and the V8 CPU profile.
With the defaults (reload + auto_stop) this is one self-contained call that reloads, records for ~5s and returns. Only one trace can run at a time.
Pass file_path to keep the data — without it you get just an event count, which confirms the trace ran but says nothing about what it measured. The output is raw trace JSON: load it via DevTools -> Performance -> Load profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reload | No | Reload the page after starting the trace so the recording covers page load. Default true, which is what you want for load performance; set false to profile the page as it currently stands. | |
| browser | No | Which browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name. | default |
| auto_stop | No | Record for about 5 seconds, then stop and return the result in this same call. Default true. Set false to control the window yourself and end it with performance_stop_trace. | |
| file_path | No | Write the raw trace JSON to this local path. Omit to get only the collected event count back. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |