When we were in Villefranche, we did a quick trip to the medieval village Eze, which is a quick trip by taxi or Uber. Spend an hour or 2, see the gardens at the top, etc. Then still plenty of time to walk around Villefranche before returning to the ship.
https://allthingsfrench.com/eze-french-riviera/