One who plucks a fruit, a vegetable, or anything that grows from the ground has transgressed the melachah of kotzer. As Maran the Shulchan Aruch wrote, a person may stand his animal upon attached grasses so that it eat. One may walk on grass, but using a tree itself is forbidden, while the sides of its sides are permitted. From the booklet Shabbat baHalachah ubaAgadah of Rabbi David Shalom Naki, shlit"a.