convert_units
Convert numeric values between common units of length, weight, temperature, and volume. Supports conversions like km to mi, kg to lb, Celsius to Fahrenheit, and liter to gallon.
Instructions
Convert a numeric value between common units of length, weight, temperature, or volume.
Examples: km<->mi, kg<->lb, celsius<->fahrenheit, liter<->gallon.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The numeric value to convert. | |
| to_unit | Yes | Unit to convert to, e.g. "mi", "kg", "fahrenheit", "liter". | |
| from_unit | Yes | Unit to convert from, e.g. "km", "lb", "celsius", "gallon". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |