Grasshopper definition to toolbar button

Hey Mitch -

The documentation to GrasshopperPlayer would be here.
There’s a thread from April 2020 that you could read through:

The basic idea is that you use some “Get” components from the Params -> Util tab (in your case, it sounds like Get Integer or Get Number is all you need), do your magic, and then use Context Bake to bake the geometry into the Rhino document.

Once you have added those components to the Grasshopper definition, you can use the player to run it. You could also use the Script Compiler to turn this into a plug-in.
-wim