unit convert
unit_convertConvert between units across 10 categories: length (m, km, mi, ft, in, yd, nmi), mass (kg, lb, oz, g, ton), volume (l, gal, ml, cup, fl_oz), area (m2, ft2, acre, hectare), speed (mps, kph, mph, knot), pressure (pa, psi, bar, atm, mmhg), energy (j, kwh, btu, cal, wh), data (b, kb, mb, gb, tb), time (s, ms, min, hr, day, year), and temperature (c, f, k). Accepts any value with source and target unit abbreviations. Returns the converted result with the formula used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target unit abbreviation (e.g., 'mi', 'kg', 'c', 'bar', 'btu'). Case-insensitive. | |
| from | Yes | Source unit abbreviation (e.g., 'km', 'lb', 'f', 'psi', 'kwh'). Case-insensitive. | |
| value | Yes | The numeric value to convert. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | The converted value. | |
| formula | Yes | Human-readable conversion formula applied. | |
| to_unit | Yes | Normalized target unit abbreviation. | |
| category | Yes | Unit category (length, mass, volume, area, speed, pressure, energy, data, time, temperature). | |
| from_unit | Yes | Normalized source unit abbreviation. |