grid step value via script

Godot Version

4.2.2

Question

I’m creating a plugin that requires the grid step value of the editor. How can I access the snap grid step value of the editor in 2D via script?