create
Copies atoms from a selection into a new PyMOL object while leaving the original intact, with optional source state selection.
Instructions
Creates a new object from a selection
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": {
"name": "<name>"
},
"name": "create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new object. | |
| selection | No | Atoms to copy into it. The original is left in place. | all |
| source_state | No | State to copy from. | 1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |