convert_units
Convert a value between units of length, weight, or temperature.
Supported units:
Length: mm, cm, m, km, inch, ft, yard, mile
Weight: mg, g, kg, ton, oz, lb
Temperature: C, F, K (Celsius, Fahrenheit, Kelvin)
Both units must belong to the same category (e.g. km -> mile is valid, kg -> mile is not).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The numeric value to convert. | |
| to_unit | Yes | The target unit (e.g. "mile"). | |
| from_unit | Yes | The source unit (e.g. "km"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||