get_local_device
Retrieve information about the local device for mobile and desktop application analysis using Frida's dynamic instrumentation capabilities.
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)The main handler function for the MCP tool 'get_local_device'. It uses frida.get_local_device() to fetch the local device details (id, name, type) and handles exceptions by raising a ValueError if no local device is found.@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.")