set
Assigns a PyMOL setting value at the intended level and reports ignored level mismatches as errors with correct alternatives.
Instructions
Sets a PyMOL setting to a specified value.
Settings live at a level — global, object, object-state, atom or bond — and PyMOL ignores a
value stored below its setting's level. cartoon_tube_radius on a residue range is
stored per atom and never drawn; ray_shadow on an object is never read. PyMOL only
warns about that, so this reports it as an error, with what to do instead.
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": {
"setting": "<setting>",
"value": "<value>"
},
"name": "set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The value as a string, e.g. "0.5", "1", "black". | |
| setting | Yes | PyMOL setting name, e.g. "cartoon_transparency", "ray_shadow", "sphere_scale". Hundreds exist; see the PyMOL settings reference. | |
| selection | No | Limit the setting to this object or selection. Omit to set it globally. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |