enumerate_processes
Lists all running processes on a system with their IDs and names for monitoring and analysis using Frida's dynamic instrumentation capabilities.
Instructions
List all processes running on the system.
Returns:
A list of process information dictionaries containing:
- pid: Process ID
- name: Process name
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | No | Optional ID of the device to enumerate processes from. Uses smart selection when omitted. |
Implementation Reference
- src/frida_mcp/cli.py:206-222 (handler)The handler function for the 'enumerate_processes' tool. It resolves the specified device (or default), enumerates processes using Frida's API, and returns a list of dictionaries containing pid and name for each process. The @mcp.tool() decorator registers it as an MCP tool, and the parameter Field provides input schema.@mcp.tool() def enumerate_processes( device_id: Optional[str] = Field( default=None, description="Optional ID of the device to enumerate processes from. Uses smart selection when omitted.", ), ) -> List[Dict[str, Any]]: """List all processes running on the system. Returns: A list of process information dictionaries containing: - pid: Process ID - name: Process name """ device = _resolve_device_or_raise(device_id) processes = device.enumerate_processes() return [{"pid": process.pid, "name": process.name} for process in processes]