list_top_processes
Identify resource-heavy processes by listing top CPU or memory consumers. Filter by name and choose markdown or JSON output for quick system monitoring.
Instructions
List the top processes by CPU or memory consumption.
Returns: str: Markdown table or JSON object with keys: count, sort_by, processes (list of {pid,name,cpu_percent,memory_percent,username,started}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of processes to return. | |
| sort_by | No | Sort processes by 'cpu' or 'memory'. | cpu |
| name_filter | No | Case-insensitive substring to filter process names (e.g. 'python'). | |
| response_format | No | 'markdown' for human-readable output, 'json' for structured data. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |