Toogle between box selection & lasso selection

Hey there! :slight_smile:

I tried to figure out but can’t access the" status" of the builtin.select" tools.
I want to switch between lasso and box as a toogle, if box is selected, then select lasso and vice versa.
Is there a way to check which tool is active from python please?

Thank You for the answer in advance! :slight_smile:

bpy.context.workspace.tools.from_space_view3d_mode(bpy.context.mode, create=False).idname

Thank You, it’s working like a charm!