How to export GLTF using python

Hi,
I have a scene I made to render a VTK file of a physics simulation.
I export my scene in GLTF for using it in blender.

Now I want to apply my scenes to a bunch of more vtk files (the rest of the simulation) so I figured I would save my paraview scene as a python file to apply it reccursively to all my vtk files.

Is there a python function to export my scene to GLTF?
Thank you!

You can try
ExportView(‘test.gltf’, view=renderView1)

I got this using Tools / Start Trace
than, File / Export Scene / choose file type GLTF
Tools / Stop Trace