Can Cursor agent execute Cursor commands?

What I mean by “commands” is like “Format Document” found in the command palette.