Convert between units
unit_convertConvert a value between units of length, mass, data size, time, speed or temperature. Supported units: mm, cm, m, km, in, ft, yd, mi, nmi, mg, g, kg, t, oz, lb, st, bit, byte, kb, kib, mb, mib, gb, gib, tb, tib, ms, s, min, h, day, week, mps, kph, mph, fps, knot, c, f, k. Use for exact conversions instead of approximating.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target unit (must be the same category as "from"). | |
| from | Yes | Source unit (e.g. "km", "lb", "mib", "c"). | |
| value | Yes | The numeric value to convert. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| value | Yes | ||
| result | Yes | ||
| category | Yes |