This operation is already supported by
Calibre Metadata editor in either the single mode (Icon on the left of the title for the selected book)
or in Bulk mode (selected group) Swap title and Author tick (

you can just tick and go, no other fields
must be used)