Get add-on log lines
supervisor_get_addon_logsDebug a specific Home Assistant add-on by fetching its recent log lines.
Instructions
Get the most recent log lines from one add-on.
Calls GET /addons/<slug>/logs, which returns plain text, and keeps
only the last lines lines.
Use when: debugging one add-on's runtime behaviour.
Not for: the ESPHome add-on's per-device compile/upload logs — use
esphome_get_addon_logs if that distinction matters to the caller.
Returns: {"logs": "<joined log lines>"}.
Errors: {"error": "invalid_slug"} for a bad slug; {"error": "SUPERVISOR_TOKEN not set or empty response"} when
the token is missing; {"error": "HTTP <status>", "detail": ...} on a
Supervisor API error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Add-on slug to fetch logs for, e.g. from `supervisor_list_addons`. | |
| lines | No | Maximum number of most-recent log lines to return. 100 by default; 0 or negative returns the full fetched log text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||