Working with QGIS 3.28, I am trying to find out how could one use Python to access and modify the vertices of a polygon that were selected manually (via mouse) using the Vertex Tool.
Despite all my searches throughout Stackexchange question, the QGIS code base, the PyQGIS basic reference material and the PyQGIS API docs, I could not find any mention to whether and how this is possible. One of the rare mentions to more-or-less interfacing with Vertex Tools pro-grammatically is: Access the Vertex Tool (Current Layer). But that one is simply about finding and activating the Vertex Tools programmatically.
Considering that the Vertex Tool already shows a table with coordinates of vertices (including a highlighting of selected vertices) that allows one to edit them, I would imagine that accessing and modifying them via Python is possible and certainly extremely useful. But I see no mentions to how this can be done anywhere.
Is there a way to do so?