file_read
Read files under configured allowed paths, optionally from a target host or only the last N lines, to inspect server data through opsgate's policy gate.
Instructions
Read a file under one of the configured allowed paths (see files.allow_paths).
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": {
"path": "<path>"
},
"name": "file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | target host name from the opsgate config; omit for the default host | |
| path | Yes | absolute path of the file to read | |
| lines | No | read only the last N lines instead of the whole file |