How to get info of the entity the scripted enity collides with

If I have two entities colliding, I need to know size of the entity my initial scripted entity collides with.
The documentation, tutorials and forum doesn’t really point in that direction.

You need collision events, which take the entity with which the interaction takes place as arguments to the callback functions.