Save File
save_fileExport molecular selections or complete PyMOL sessions to a file, with the output format set by the file extension.
Instructions
Save a selection/session to a file (format from extension).
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": "save_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Output path; extension sets format (.pdb, .pse, .png, .mol2, ...). | |
| state | No | State to save (-1 = current, 0 = all). | |
| selection | No | Selection to save. | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||