performance_trace_start
Begin a performance trace on the active tab with configurable categories and screenshots. End trace via stop() to export as JSON.
Instructions
Start Chrome DevTools performance trace on the active tab.
Use stop() to save the .json file. Only one trace can be active at a time.
Args:
categories: comma-separated trace categories. Default covers DevTools'
Performance panel view:
"devtools.timeline,v8.execute,disabled-by-default-devtools.timeline,
disabled-by-default-devtools.timeline.frame,loading,latencyInfo,
blink.user_timing"
screenshots: include screenshot frames in trace (bigger file, lets you
scrub through frames in DevTools Performance panel)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "performance_trace_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| categories | No | ||
| screenshots | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |