In Godot Editor, press F1, search GodotBoy. The memory functions aren’t well documented yet, but they’re pretty self explanatory. The next release of GBStudio includes some files to help figure out script variable bindings.
https://github.com/chrismaltby/gb-studio/issues/1750