distance
Calculate the distance between the centers of two atom selections, with optional per-frame analysis for trajectories.
Instructions
Distance between the centers of two atom selections.
By default the distance is measured at one frame. Set all_frames=True to
return a per-frame series for a trajectory.
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": {
"structure": "<structure>",
"selection1": "<selection1>",
"selection2": "<selection2>"
},
"name": "distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | ||
| structure | Yes | ||
| all_frames | No | ||
| selection1 | Yes | ||
| selection2 | Yes | ||
| trajectory | No | ||
| mass_weighted | No |