There's a lot of Emacs information on the internet, and your agent has been trained on it.

For real, ask your agent to do anything in Emacs and it simply knows how to do it.