save_session
Save the complete PyMOL session to a .pse file, preserving objects, selections, scenes, colors, and camera state so you can reopen the exact visual setup later.
Instructions
Saves the entire PyMOL session to a .pse file.
A session captures everything — every object, selection, representation, colour, scene and the camera — so the work can be reopened exactly as it was. Use this before experimenting with a scene you would not want to rebuild, and to hand a finished figure to a colleague.
Unlike save, which writes bare coordinates, this preserves the whole
visual state.
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": {
"filename": "<filename>"
},
"name": "save_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Path to write. A ``.pse`` extension is added if missing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |