The AI path to the player

Hello everyone) I need help. I have AI, it runs after the player, attacks and jumps. I have air platforms. And I need to AI if the player from above on the platform was able to reach him on this platform. Can anyone help?