host_file_read
Read a file or list a directory on a remote Linux host, optionally as root via sudo, while secrets like tokens, passwords, and private keys are masked.
Instructions
Read a file on a host (as root when sudo is configured) or list a directory. Secrets (SECRET_KEY, private keys, tokens, passwords) are masked.
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": {
"host": "<host>",
"path": "<path>"
},
"name": "host_file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | host name from the inventory (fleet_hosts) | |
| path | Yes | absolute path | |
| maxBytes | No |