sum
Compute legacy BSD-style 16-bit checksums and block counts for files or stdin. Use for compatibility with legacy BSD systems.
Instructions
Compute legacy BSD-style 16-bit checksums and block counts for files or stdin. Read-only, no side effects. Returns JSON with checksum and block count. Use for compatibility with legacy BSD systems. Not for data integrity — CRC32 ('cksum') and cryptographic hashes ('sha256sum') are far more reliable. See also 'cksum', 'sha256sum'.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sum"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Write checksum blocks path lines without a JSON envelope. | |
| paths | No | Files to checksum, or '-' for stdin. Defaults to stdin. | |
| encoding | No | Output encoding (default: utf-8). Use 'auto' for BOM/autodetection. | utf-8 |
| block_size | No | Block size used for reported block counts. | |
| show_encoding | No | Include encoding detection metadata in JSON result. | |
| encoding_errors | No | How to handle encoding errors (default: replace). | replace |
| encoding_profile | No | Locale-aware encoding fallback profile for auto-detection. |