Before I played with any additives, etc. - - this is what I would look for:
Does an L3400 have a clear bowl for the fuel filter/water separator?
If so, when the tractor is starving for fuel, is the filter bowl full of fuel, or is it partially empty?
If partially filled, means could be a restriction to the filter.
In some Kubota models, the inlet fitting to the filter housing is notorious for getting some trash in it. Quite of few folks have had a similar problem.
Don't know if an L3400 is one of them but certainly has some of the characteristics.
No experience myself, but I would take the fuel line from the tank off of the filter housing inlet. Drop the fuel line from the tank into a bucket. Does it run freely with good volume? Tank is above the fuel filter, so it should run pretty good if the tank is apparently okay.
Probably will need to pinch off the line gently with a pair of locking pliers if there's no shut-off.
Then take the filter back out.
Run a small wire, etc. into the inlet fitting and see if it's fouled with some trash.
These will determine where the restriction (if there is one) might be.
Sometimes tank restrictions can be intermittent. Something floats around the tank until it gets drawn to the tank outlet......hard work and low-fuel conditions can exacerbate the problems.
Would need to go through whatever bleeding process is needed for your tractor after the exercise and stuff put back together.
PS - - below is what I started with, and re-thought the problem when I was typing. Still might have some value, so didn't just delete it.
Some guys have gotten temporary relief using a little air blowing through the fuel line before the filter(s) back into the tank. Don't want much pressure.
Some causes of interrupted/ fouled flow I recall on OTT have been biomass, bugs/grass/junk, etc., and corrosion of the fittings at the tank outlet.
Several years ago, quite a few folks had biomass problems. I got so I use a Biocide as a Preventive year 'round since.
I use Power Service Bio-Cleen. Don't know if good, but it's available locally.
Quite a few swear by Stanadyne and Soltron that
@North Idaho Wolfman mentions.