How to use GDscript to lock select-ability of a node in tool mode?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By CakeLover

My question is very similar to This question but instead of lock tool I need to toggle the selectable tool
enter image description here

also where do I find a list of all the meta names?
for example, the one I found in the question link was

node.set_meta("_edit_lock_", true)

where do I find all the other names like "_edit_lock_"?

There is surprisingly little about the tools mode in the documents