Just as everywhere else in the world, rainforest animals depend on eating plants or one another for food.
Most animals are plant eaters. They may eat food directly where it grows in the canopy or wait for it to fall to the ground. They may even wait for it to decompose before they eat it.
The other animals are meat eaters. Some are hunters, while others eat animals after they die.