perf_snapshot
Captures a composite performance profile by coordinating tracing, CPU profiling, and coverage, optionally reloading the page or recording an interaction, then bundles metrics and artifact URIs.
Instructions
Composite performance profiler: coordinates start_tracing + start_cpu_profile + start_coverage, optionally captures an interaction or reload, stops all collectors, and bundles perf audit, metrics, and artifact URIs.
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": "perf_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reload | No | If true, reloads the current page during trace capture | |
| targetId | No | ||
| processId | No | Process ID. If omitted, uses the single running app. | |
| durationMs | No | Capture window duration in milliseconds (default: 1000) |