The node you are looking for is at mtn automate get_revision.