A Victorian chicken farmer on a cocktail of ice and 40 Valium tablets was trying to kill a fox when he went on a rampage with a gun and a tractor, a court has heard.

Aaron Stacie Gee started punching holes in the walls of his Little River farmhouse after bingeing on the drugs on the morning of February 26.

While his wife Jem Gee, phoned paramedics, Gee took a gun outside and fired three shots at a chicken shed on the property.

The Melbourne Magistrates Court heard that Ms Gee and the three employees working in the shed fled as Gee started up a tractor and began speeding around the farm.

One employee told police Gee was driving the tractor at such a speed it was on two wheels as it rounded corners, according to a prosecution summary read to the court.