Getting gltf from inspector

Hello, I’m playing around with the inspector and I see I can download the glb of the modified model, is there any way to get the updated gltf programmatically?? Do you know how I coulg get it from the canvas??

Hello it is using the gltf serializer: