Convert an engineering callout string
convert_textConvert printed drawing callouts between metric and imperial, preserving notation for dimensions, threads, and surface roughness. Angles remain unchanged.
Instructions
Convert a printed drawing callout (or short text with several callouts) between metric and imperial, preserving notation: "Ø30 H7" → "Ø1.1811 H7", "84±0.1" → "3.3071±0.0039", "R13" → "R0.5118", "M8" → "5/16-18 UNC", "1/4-20 UNC" → "M6". Angles (°) are left unchanged. Set category=surface to read bare numbers as Ra roughness instead of lengths. assume_lengths=true additionally converts every remaining number as a length (for tolerance-table rows like "bis 30").
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": {
"text": "<text>",
"from": "<from>"
},
"name": "convert_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | unit system the text is currently in | |
| text | Yes | ||
| category | No | how to read bare numbers (default dimension = length; surface = Ra roughness) | |
| assume_lengths | No | fallback: convert every number as a length when nothing else matched |