Summoning @Kapyia, who is quite experienced in messing with those tool options dockers.
From what I’m aware of, this may be possible, but not that easy, as krita scripting currently don’t give access to those values.
You can get to the tool options docker with something like:
from krita import *
from PyQt5.QtWidgets import QDockWidget
qWin = Application.activeWindow().qwindow()
toolOptions = qWin.findChild(QDockWidget, 'sharedtooldocker')
Application is just the same as
Krita.instance() but shorter.
qwin will hold the actual krita window object from qt.
findChild() can be used to get this options docker.
Using print I managed to check that this toolOptions object holds things like buttons and actions - buttons have
button.click() option, while actions can be triggered
I guess that to do what you want, you would have to find those button and field in a layout, but I’m quite new to krita scripting, and don’t really know where to search for them.