If you need esptool v3.1, use platform_packages.
If you need to control the upload speed, use upload_speed.