Agricultural machine for harvesting vegetables, particularly fodder, this machine (1) being movable in a forward direction (A) and comprising: - a frame (2), - at least one support arm (7) articulated in the frame (2) and movable with respect to the frame (2) between a work configuration in which the support arm (7) extends laterally with respect to the frame (2), and a transport configuration in which The support arm (7) is folded so that its space occupied perpendicular to the direction of travel (A) is reduced, - at least one work tool (15) comprising an inner side end (16) and an outer side end (17), and which can occupy at least one working position in which the working tool (15) acts on vegetables present in the ground, and at least one other position, - a connecting device (31) by means of which a frame (29) of the work tool Low (15) is connected to the support arm (7), allowing this connection device (31), at least when the support arm (7) is in the work configuration, a first displacement of the work tool ( 15) with respect to the support arm (7) during which the inner side end (16) and the outer side end (17) of the work tool (15) move vertically with respect to the support arm (7) and in the same vertical direction with respect to this, this connection device (31) comprising means that allow a second displacement of the work tool (15) with respect to the support arm (7), this second displacement being transverse to the direction of advance (A) and substantially horizontal considering the support arm (7) in the work configuration, and allowing the means to make this second movement independently of the first movement of the tool work (15) with respect to the support arm (7), characterized in that the connecting device (31) comprises at least one arm (32) oriented essentially in the forward direction (A) when the support arm (7 ) is in work configuration, because this arm (32) is articulated in the support arm (7) around a first axis (33) that is oriented t