monitor_get_process_info
List running processes with optional name filtering, then sort by CPU or memory usage to identify resource-heavy applications and troubleshoot performance.
Instructions
List running processes with optional substring filter on the process name.
Args: See Parameters block.
Recovery: AccessDenied on some PIDs is normal; total_matching reflects filtered list.
Return Format
{"success": bool, "result": {"processes": [{"pid", "name", "cpu_percent", "memory_percent"}], "total_matching": int}}
Examples
monitor_get_process_info(max_processes=10, sort_by="memory_percent") monitor_get_process_info(filter_pattern="python", max_processes=20)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort_by | No | cpu_percent | |
| sort_order | No | desc | |
| max_processes | No | ||
| filter_pattern | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||