QGIS Refactor Fields tool for altering attribute tables states:
This algorithm allows editing the structure of the attributes table of a vector layer. Fields can be modified in their type and name, using a fields mapping.
Fields can also be added and deleted. However, output also alters the length of all fields to 255. Is this expected behavior? Can original field lengths be retained?