load_session
Restores a PyMOL session from a .pse file, replacing the current scene by default or merging saved objects into it when merge is enabled.
Instructions
Restores a PyMOL session from a .pse file.
By default this replaces everything currently loaded, exactly as opening
the file in PyMOL would. Set merge=True to add its objects to the
current session instead, which is how you get two saved scenes side by
side — though note that objects with the same name will collide.
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": "load_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| merge | No | Add to the current session rather than replacing it. | |
| filename | Yes | Path to the .pse file to open. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |