get_processes_by_category
Retrieve and sort processes by CPU, memory, or network usage with pagination support. Filter processes by type to identify resource-intensive applications on macOS.
Instructions
Get all processes filtered by category (cpu, memory, network) with pagination and sorting support.
Args:
process_type: Type of processes to retrieve ('cpu', 'memory', or 'network')
page: Page number (starting from 1, default: 1)
page_size: Number of processes per page (default: 10, max: 100)
sort_by: Sort field - 'auto' (default metric), 'pid', 'command', or metric-specific fields
CPU: 'auto'/'cpu_percent', 'pid', 'command'
Memory: 'auto'/'memory_percent', 'resident_memory_kb', 'pid', 'command'
Network: 'auto'/'network_connections', 'pid', 'command'
sort_order: Sort direction - 'desc' (default) or 'asc'
Returns: JSON string containing paginated and sorted process information for the specified category
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| process_type | Yes | ||
| page | No | ||
| page_size | No | ||
| sort_by | No | auto | |
| sort_order | No | desc |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |