count_atoms
Count atoms matching a PyMOL selection to verify the expression before building a scene; an empty count signals an incorrect selection.
Instructions
Counts the atoms matching a selection.
Handy for checking a selection expression does what you think before building a scene on top of it — an empty count means the expression is wrong, which is otherwise invisible until the picture comes out blank.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "count_atoms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selection | No | PyMOL selection string to count. | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |