read-file
Reads one small file from a specified host and verifies its bytes using size and SHA-256, helping confirm exact file contents for diagnostics or validation.
Instructions
dbabrain common.cli read-file: ONE small file read on its host, its bytes proven by size and sha256 (0.37.0).
Request fields (pass them as request):
host: Where the file is: {runtime (windows | linux | docker | k8s), access, host, port, username, password | key_file, container, sudo}; left out, this machine.
path (required): The one file, in full - never a pattern, a link or a '..' segment.
max_bytes: The largest file read; default 1048576, at most 16777216.
timeout_seconds: Seconds the host may take; default 120.
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": "read-file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |