File Size Formatter
FileSizeFormatterFile Size Formatter: File Size Formatter converts raw byte counts into human-readable file size strings. Send a byte count with optional precision and unit settings to receive formatted labels, unit names, and scaled numeric values. (Cost: 1 credit)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bytes": "<bytes>"
},
"name": "FileSizeFormatter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Specific target unit (optional, auto-selects best unit if not specified) | |
| bytes | Yes | Number of bytes to format | |
| standard | No | Standard to use: binary (1024) or decimal (1000) | binary |
| precision | No | Decimal places (0-10) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |