GetPluginObject no method to read data

From python I get grasshopper plugin object with Rhino.RhinoApp.GetPluginObject(“Grasshopper”).

Running dir() listed all few available methods, none of which lets us read data from grasshopper inputs/outputs.

Is it possible with some workaround? Like opening a socket for IPC between ghPython component and Rhino’s Python?