Export Session Recording
session_exportExports browser session action history as a replayable JSON or Playwright script, resolving dynamic selectors for stable playback. Use to record and replay automated browser workflows.
Instructions
Export session action history as a replayable recording. Creates a JSON script from all mutating actions with @eN refs resolved to stable selectors. Use format='playwright' to get a Playwright JS script compatible with the execute tool.
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": {
"sessionId": "<sessionId>"
},
"name": "session_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID. | |
| name | No | Recording name. Default: auto-generated. | |
| keepExtracts | No | Include extract steps in the recording. Default: false. | |
| format | No | Output format. Default: json. |