Clause retrieval and information

clause/2
current_predicate/1

Darueber read on...