When the user runs /skill gmail_last5, do this:
gog gmail search for the inbox, max 5 newest.Use this command (account may be omitted if default is configured; prefer explicit):
bash
gog gmail search "in:inbox" --max 5 --json --results-only --account william.kettle@neuralshift.co.uk
If the command fails, ask the user to confirm which Gmail account is authenticated in gog.