get_local_device
Retrieve local device information for mobile and desktop applications using Frida's dynamic instrumentation capabilities. Supports process management, device control, and runtime analysis.
Instructions
Get the local device.
Returns:
Information about the local device
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/frida_mcp/cli.py:305-320 (handler)MCP tool handler implementation for 'get_local_device'. Directly calls frida.get_local_device() to retrieve and return the local device's id, name, and type, or raises ValueError if not available.@mcp.tool() def get_local_device() -> Dict[str, Any]: """Get the local device. Returns: Information about the local device """ try: device = frida.get_local_device() return { "id": device.id, "name": device.name, "type": device.type, } except frida.InvalidArgumentError: # Or other relevant Frida exceptions raise ValueError("No local device found or error accessing it.")