Run advanced spm command
spm_run_cliRun any non-interactive spm CLI command such as schedule, scale, rollback, apply, diff, or export. Use it to execute service management operations and return the command's text output.
Instructions
Run any supported non-interactive spm CLI operation, including schedule, signal, scale, set, unset, clone, history, rollback, apply, validate, diff, native inspection, security analysis, export, health, and import. Prefer focused tools when one exists. Interactive editors and unbounded watch/follow modes are rejected. Returns the command's text output; run ["help", ""] first to see a command's options. 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": {
"arguments": "<arguments>"
},
"name": "spm_run_cli"
}
}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. | |
| arguments | Yes | Arguments exactly as they appear after the spm executable, excluding --system. Example: ["schedule", "--name", "backup", "--cron", "0 2 * * *", "--", "backup.exe"]. |