get_ps_aux_top_cpu_consumers
Retrieve the top 10 CPU-consuming processes on a remote SSH host; automatically falls back to top -b -n 1 output on BusyBox/Alpine systems where ps aux cannot sort.
Instructions
Lists top 10 cpu consumers, CPU desc (ps aux --sort=-%cpu).
On BusyBox hosts (Alpine), where ps cannot sort, the output comes from top -b -n 1
instead: its first line starts with '# BusyBox', the columns differ, and %CPU is the
usage at this moment, not the average over the process lifetime that ps reports.
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": {
"host": "<host>",
"user": "<user>"
},
"name": "get_ps_aux_top_cpu_consumers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| user | Yes | ||
| timeout | No | ||
| key_path | No | ||
| password | No | ||
| accept_new_hostkey | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||