Godot Toolscripts run in the editor! It's a cool concept and one i hope to dig into deeply.
dupe: gd tool scripts
https://godotengine.org/qa/82425/force-tool-scripts-to-run-_ready-on-reload-in-editor