Reading a numerical string from serial monitor to perform an action?

How exactly should I go about with the parameters of this function?

That depends entirely on what you want to read until. What marker will cause you to stop reading?