How to access the current page in a field plugin

Not sure what your context is, but yes, see Dynamic default number field - #2 by texnixe