Scripting to extract tag names used in a Perspective session?

Is there a way through scripting or other means to extract a listing of all tags referenced in a Perspective session or display?