format_format_bytes
Format byte counts into human-readable strings (e.g., 1234567 to '1.2 MB'). Supports binary mode for KiB/MiB and customizable decimals.
Instructions
[format] Format a byte count: 1234567 → '1.2 MB'. binary=true for KiB/MiB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| decimals | No | ||
| binary | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |