Hey everyone, just posting an update:
I got this working! I used your character's feet bounding box and checked for all the tiles it collides with, then found the highest tile height out of all those tiles. This is the height you'd fall to if you were jumping or falling from a higher surface. Thanks to everyone for the help!