service_list
List services on a router and verify their running status. Filter by name substring, show only running services, or include start times for detailed monitoring.
Instructions
列出路由器上的服务及其运行状态。
参数: name_filter: 按名称子串过滤(大小写不敏感),可选 running_only: 仅返回运行中的服务 with_start_time: 额外读取每个服务的启动时间(命令数随服务数增加,默认关闭)
返回结构: {"ok": true, "data": {"services": [{"name", "running", "enabled", "pid", "started_at", "description", "source"}], "count", "running_count", "init_system", "host", "warnings"}}
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": "service_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name_filter | No | ||
| running_only | No | ||
| with_start_time | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |