You'll first want to find a way up to the roof of the house.
There are a few things that you can play with on the roof. But you will need something that can reach up to the roof first.
Try using the stone from under the frog.
Then throw the stone at the mechanism on the roof (F).