List services
spm_list_servicesList every managed service and its live state to see what is running, identify exact service names, or confirm create, start, stop, and delete effects.
Instructions
List every service spm manages in the chosen scope with its live state. Call this first to see what is running, to find an exact service name, or to confirm the effect of a create, start, stop or delete; use spm_show_service for one service's full configuration. Returns structuredContent.services with one entry per unit (a multi-instance service has one entry per instance): name, status, active_state, sub_state, health, pid, cpu_percent, memory_bytes, restarts, enabled, uptime_seconds, and schedule for scheduled jobs. Values the platform cannot report are null. An empty array means no services exist in that scope. Acts on the current user's services unless system is true; machine-wide services need root on Linux and macOS or an Administrator shell on Windows, so only use system when the user asks for it.
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": "spm_list_services"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| system | No | Manage machine-wide services instead of the current user's. Requires root or Administrator; leave false unless the user asks for system scope. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| services | Yes |