dir_list
List files and subdirectories in an allowed absolute directory path on a target host, or omit the host to use the default.
Instructions
List a directory under one of the configured allowed 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": "dir_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | target host name from the opsgate config; omit for the default host | |
| path | Yes | absolute directory path to list |