read_ha_file
Read files from Home Assistant host directories over SSH, with optional grep filtering and tail to view last lines.
Instructions
Read a file from the Home Assistant host over SSH.
Reads are restricted to standard HA-exposed directories: /config,
/share, /ssl, /addons, /media, /backup.
Args:
path: Absolute path on the HA host (e.g. /config/ip_bans.yaml).
tail: If set, return only the last N lines after any grep filtering.
grep: Optional case-insensitive substring filter applied per line.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| tail | No | ||
| grep | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |