sculpt tools in python?

Hi,
I didn’t find in the reference API much possibilities to access the sculpt tools.
is it possible to get and set the mask value for each vertex in sculpt mode?

I thought could be really usefull to set the mask of the sculpt from vertex groups values/ weights
similar to mask modifier…
but i couldn’t find much info about sculpt mode in python, only a few basic ops.

any ideas?
Cheers

Tal

I saw a patch for this some time ago, but it looks like it does not have implemented.

Found it: https://developer.blender.org/D782