Getting Soecific Information from Primary Interface

I am using a socket connection through primary client interface port 30002 to communicate with my robot. The communication is done through sending urCommands and receiving a byte array with information about the state. These messages follow the following format:
Capture

I would like to, however, get specific requested data from the robot using URScript, or by using some Robotiq commands which are not included in the byte array description. I wanted to ask how it is that I can receive this data from the robot upon sending a command like rq_is_object_detected () or get_tcp_force().