Using library item is like calling a function, you have to give it its input variables.
So you need to define our $_GET in your main action and also in your library action.
Then when you exec the library action, give as its input the $_GET input from the main action. So they value is passed.
Other way is just to include the library action then you don’t need to bind any parameters as it is just inline included. You still have to define the same $_GET parameter in both before usage.