trace_session
Record a replayable Playwright trace of the current browser context to capture DOM snapshots, network activity, and console output for debugging with trace.playwright.dev or show-trace.
Instructions
Record a Playwright trace of the current browser context.
Firefox has no CDP, so there is no pause/step debugger here. A trace is the
supported way to get a replayable record: DOM snapshots, network activity,
console output and source locations, packaged as a .zip for
trace.playwright.dev or playwright show-trace.
Args:
action: "start" begin recording, "stop" write the archive, "status"
report whether a recording is active.
screenshots: Include screenshots in the trace (default True).
snapshots: Include DOM snapshots (default True).
sources: Include source files (default True).
path: Destination .zip for action="stop"; defaults to a temp file.
Returns: dict with the recording state, and on stop the archive path and size.
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": "trace_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| action | No | status | |
| sources | No | ||
| snapshots | No | ||
| screenshots | No |