Save the current session to a file
browser_save_sessionSaves current Firefox window and tab session to a JSON file, so you can back up browser state before restoring or switching sessions.
Instructions
Write the current window and tab session to a JSON file (SessionStore.getBrowserState). This only READS the browser; the file it writes is the input for browser_restore_session. Save before restoring, so the state you have now can be brought back.
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": {
"path": "<path>"
},
"name": "browser_save_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute file path to write (forward slashes are fine) |