ssh_service_status
Check systemd service or Docker container status, view logs, or control start, stop, and restart operations on a remote server via SSH.
Instructions
Check status, view logs, start, stop, or restart a systemd service or Docker container on the 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": {
"serverId": "<serverId>",
"serviceName": "<serviceName>"
},
"name": "ssh_service_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of log lines to retrieve if action is "logs" (default: 50). | |
| action | No | The action to perform on the service (default: "status"). | |
| serverId | Yes | The ID of the target server. | |
| serviceName | Yes | The systemd service name (e.g. "nginx", "docker", "redis-server") or container name. |