measure_distance
Calculate the distance in millimeters between two pixel positions in a local DICOM image and return their patient coordinates.
Instructions
Measure a distance in mm between two pixel positions and give their patient coordinates.
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": {
"path": "<path>",
"start": "<start>",
"end": "<end>"
},
"name": "measure_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | [row, column] in pixels. | |
| path | Yes | Path to a local DICOM file inside the allowed paths (e.g. from retrieve). | |
| frame | No | 0-based frame index for multi-frame images. | |
| start | Yes | [row, column] in pixels. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||