stop_trace
Stop an active browser trace and save it as a JSON file. Returns the absolute file path for use in Chrome DevTools.
Instructions
Stop the active trace and write it to disk as JSON.
Returns the absolute file path. If ``file_path`` is empty, writes to
a timestamped file in the system temp directory. The output matches
the format that Chrome DevTools' "Load profile" accepts.
Handlers and state are cleared via ``finally`` so a failed
``tracing.end()`` or a late ``tracingComplete`` never leaves the
tool stuck on "a trace is already in progress" for the rest of the
process.
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": "stop_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |