With a custom context, it is certainly doable. It seems to me that the Asterisk phonebook is maintained in the Asterisk real-time database, so it should be a simple enough matter to grab the record from dbget() and see what happens.
I don’t think there’s a simple way to do it from the GUI, though. I think you’re going to be delving into the deep magic that is custom context writing.