list_ha_dir
List directory contents on the Home Assistant host over SSH, showing file details with ls -la. Restricted to authorized root paths.
Instructions
List a directory on the Home Assistant host over SSH (ls -la).
Restricted to the same allowed roots as :func:read_ha_file.
Args:
path: Absolute directory path (e.g. /config).
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": "list_ha_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |