get_service_logs
Retrieve recent journald logs for any systemd service. Filter by priority and control output line count.
Instructions
Retrieve recent journald log entries for a specific systemd service. Supports configurable line count (up to 5000) and optional priority filtering (emerg, alert, crit, err, warning, notice, info, debug).
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": {
"name": "<name>"
},
"name": "get_service_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Service name (e.g. 'sshd', 'cron', 'nginx.service') | |
| lines | No | Number of recent log lines to retrieve (default: 50, max: 5000) | |
| priority | No | Filter logs by minimum priority level |