Restart service
spm_restart_serviceStop and start a managed service to load new code, configuration, or environment variables. The service briefly gets a new PID; multi-instance services restart one instance at a time.
Instructions
Stop and start a managed service so it picks up new code, configuration or environment. The process gets a new PID and is briefly unavailable; a multi-instance service is restarted one instance at a time so the others keep serving. A stopped service is simply started. 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
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": "spm_restart_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Managed service name. | |
| 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. |