Extending Context Bake GH Component

is there any way how to extent Context Bale component for Grasshopper Player?
I want to be able to set output layer + some other attributes.

I would also like to know how are these contextual components implemented under the hood and if it’s possible to achieve similar ‘runtime’ behavior with custom-made components and what methods could be utilized for such goal.

Thank you.