scan_calibrate
Map scan pixels to real-world millimeters using known dimensions, scale, or paper size, and set the origin pixel for coordinate conversion.
Instructions
Define how pixels map to real mm. Either p1/p2 (pixels) + distance_mm (a known dimension on the scan), or px_per_mm, or scale= (+paper=A2 for images; PDFs know their physical size). origin_px = pixel that becomes (0,0) mm (default: bottom-left corner).
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": {
"scan_id": "<scan_id>"
},
"name": "scan_calibrate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p1 | No | ||
| p2 | No | ||
| page | No | ||
| paper | No | ||
| scale | No | ||
| scan_id | Yes | ||
| origin_px | No | ||
| px_per_mm | No | ||
| distance_mm | No |