Hi @Anonymous
Please can you elaborate on what you mean by extract tools and commands?
Maybe tell us why you are wanting to do this and someone might be better able to answer your query.
Here is a book:
https://www.amazon.com/Autodesk-Revit-Architectural-Command-Reference/dp/1630570966