Get/set Current source in LG WebOS TV Programatically/API

Hi there, I’m looking for an API or any way in SDK to get and set the current source (input source like HDMI1, AV etc).
It’s needed for my application.
Can someone help me ? I went through the official documentation but there is no API reference for this.

Currently, no APIs for getting TV input information are provided. Thank you.