get_service_logs
Retrieve recent systemd journal logs to diagnose service failures, crashes, or misbehavior.
Instructions
Returns the most recent journal log lines for a systemd service.
Use this when investigating why a service failed, crashed, or is misbehaving. Does not modify system state.
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": {
"service": "<service>"
},
"name": "get_service_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| service | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |