format_bytes
Convert byte values into human-readable formats using binary (1024-based) or decimal (1000-based) systems with customizable precision.
Instructions
Format bytes to human-readable format (binary or decimal)
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": "format_bytes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | Number of bytes to format | |
| format | No | Format type: binary (1024-based) or decimal (1000-based) (default: binary) | |
| precision | No | Number of decimal places (0-10, default: 2) |