The current recommendation for users wishing to learn how to Python script Slicer operations that they are already familiar with in the GUI is rather convoluted and time consuming. It involves searching the Slicer GitHub repository for strings from the relevant field in the GUI.
A vastly more user-friendly method (employed by Blender and other software) is to provide an optional feature that enables ‘tool tips’, where hovering the cursor over any interactive component of the GUI results in a tool tip window displaying the associated underlying Python variable.
Alternatively, having an option for all GUI interactions to be printed to the Python interpreter window in Slicer (like in FreeCAD, for example) may be even more convenient since it would allow the user to copy and paste Python commands into their scripts.