Calculate Hash
calculate_hashCalculate SHA-256 hash of any file or directory to verify integrity or compare content.
Instructions
Calculate SHA-256 hash of a file or directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to file or directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| path | No | ||
| hash | No | SHA-256 hash | |
| isDirectory | No | True if path is a directory | |
| fileCount | No | Number of files hashed (directories only) |