format_bytes
Format bytes to human-readable size.
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_value": "<bytes_value>"
},
"name": "format_bytes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| binary | No | Use binary (1024) or decimal (1000) units | |
| bytes_value | Yes | Size in bytes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| bytes | Yes | ||
| value | Yes | ||
| system | Yes | ||
| formatted | Yes |