resume
Resume a paused process to continue execution. Use this tool to restart suspended game processes for debugging or modification purposes.
Instructions
Resume a spawned process.
Returns:
Resume status.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function for the 'resume' tool. Resumes a spawned process by calling Frida's device.resume(pid). Checks if session is attached and spawned.@mcp.tool() def resume() -> Dict[str, Any]: """ Resume a spawned process. Returns: Resume status. """ global _session if not _session.is_attached(): return {"error": "No active session. Use spawn() first."} if not _session.spawned: return {"error": "Process was not spawned."} try: device = get_device() device.resume(_session.pid) return {"success": True, "message": f"Resumed {_session.process_name}"} except Exception as e: return {"error": f"Failed to resume: {str(e)}"}
- src/frida_game_hacking_mcp/server.py:192-194 (registration)The 'resume' tool is listed under process_management category in the list_capabilities tool response, indicating its registration in the toolset."process_management": [ "list_processes", "attach", "detach", "spawn", "resume", "get_session_info" ],
- Helper function get_device() used by resume() to obtain the Frida device instance needed for resuming the process.def get_device() -> Any: """Get the local Frida device.""" global _session if _session.device is None: _session.device = frida.get_local_device() return _session.device