list_services
List systemd services, optionally filtering by state (running, failed, etc.), name glob pattern, or unit type.
Instructions
List all systemd services. Optionally filter by state (running, exited, failed, inactive, all) and by name glob pattern (e.g. 'ssh*', 'cron*'). Defaults to listing all service units.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_services"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Filter by service state (default: all) | all |
| pattern | No | Optional glob pattern to filter service names (e.g. 'ssh*', 'cron*') | |
| type | No | Systemd unit type to list (default: service) | service |