View Application Logs
view_app_logsRetrieve recent log lines from a remote server for any application running under PM2 or Docker Compose, with auto-detection of the runtime.
Instructions
Retrieves recent application log lines via PM2 or Docker Compose on remote server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Execution mode: 'auto' (tries PM2 then Docker), 'pm2', or 'docker' | auto |
| lines | No | Number of recent log lines to retrieve (default: 50) | |
| app_name | Yes | Name of the application, container, or PM2 process |