How do I make a tool script value update the in-editor bounding box?

Godot V4.6

Hi there, I want the effect where updating a Vector3 value, in this case grid_size changes the bounding box I see surrounding the object in the editor, is there any way to do this?

You can see in the image how the bounding box changes to fits the instances created by the tool script, that is the effect I want but I want to change it by updating the grid_size value. Also, is it possible to get an editor gizmo like the red circles that allow you to resize CollisionObject3D’s?

You should be able to make a gizmo.