distance
Measures the gap between two selections in Angstrom and draws a named measurement object in the viewport, supporting multi-atom averages.
Instructions
Measures the distance between two selections and returns it in Angstrom.
Also draws the measurement in the viewport as a named distance object. With multi-atom selections PyMOL reports the average over the pairs it found within its default cutoff.
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>",
"selection1": "<selection1>",
"selection2": "<selection2>"
},
"name": "distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the distance object (used to delete/recolor later). | |
| selection1 | Yes | First selection. | |
| selection2 | Yes | Second selection. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |