browser_trace
Record a Playwright trace (timeline of actions with screenshots, DOM snapshots and network) of this tab's browser context. action='start' (optional name, screenshots, snapshots, sources), then do the work, then 'stop': the trace .zip is stored in the workspace files and its file_id returned. Open it at trace.playwright.dev. Covers every tab of the context; stop before browser.close.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"page_id": "<page_id>",
"action": "<action>"
},
"name": "browser_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| action | Yes | ||
| page_id | Yes | ||
| sources | No | ||
| filename | No | ||
| snapshots | No | ||
| screenshots | No | ||
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. |