I read books while IN a tree.
The word "in" is the preposition word (حروف الجر) that is usually used in this context. It's like you climbing up a tree and you are surrounded by the branches and you decide to read books.
If you say I read books INSIDE a tree.
It means you are really truly inside the main trunk of the tree.
If you say I read books ON a tree.
It means like you are the most top of the tree.
If you say I read books ABOVE the tree.
It is like you are floating over the tree and you read books.
So which word would you use?

