Control macOS launchd Service
services_control_launchdRestart, enable, or disable macOS launchd services by label, choosing GUI or system domain to control background daemons and agents.
Instructions
控制 macOS launchd 服务(kickstart 重启拉起、enable、disable),需开启 services.manage。
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": {
"label": "<label>",
"action": "<action>"
},
"name": "services_control_launchd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | launchd 服务 Label | |
| action | Yes | 操作类型 | |
| domain | No | 作用域 gui 或 system | gui |