Taking a screenshot with F2 in the title screen will result in the "screenshot saved" message appearing in the chat logs in the next world you open. This works for both single-player worlds and most multiplayer servers.
Example:
This is the screenshot I took of the title screen
This is the message appearing in chat
Linked issues
Attachments
Comments 8
Relates to or duplicates MC-168869.
Can confirm 1.16.5