Export Session Script
export_sessionExports a replayable Python script of every QGIS change since server startup, optionally saving it to a path and resetting the journal.
Instructions
Every command that changed something in this QGIS since the plugin's server started (read-only calls left out), as a Python script that replays them from the QGIS Python console. Layer ids are remapped on replay. Returns the script, or writes it to 'path' and returns the path. clear: start a new journal afterwards. Commands from every connected client are in it; a restore_checkpoint rewinds it.
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": "export_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| clear | No |