appcrane_get_logs
Retrieve recent runtime logs from a running app container. Filter by substring to debug runtime issues.
Instructions
Get recent runtime logs from a running app container (docker logs). Use this for runtime issues — once the container is up. Returns the most recent N lines (default 100, max 1000). Pass search to filter to lines containing a substring (case-insensitive). NOT the right tool for fast deploy failures (1-2 second exits, "no such container" errors): those happen during clone / npm install / docker build / health-validate, BEFORE any container exists. Use appcrane_get_deploy_log for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| lines | No | ||
| stage | No | Target stage (legacy alias: env). | sandbox |
| search | No | Filter to lines containing this substring (case-insensitive) |