In lowland tropical forests, ants play a variety of trophic functions in green food webs but their abundance and diversity decrease with elevation. How these functions are altered by elevation and how ants are replaced by other key arthropod taxa remain poorly studied due to the difficulty to determine ant diet by direct observations.