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.
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": {
"app_name": "<app_name>"
},
"name": "view_app_logs"
}
}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 |