A bimetallic element obstructs or opens an opening in the body for retaining or releasing the object depending upon the temperature of the bimetallic element.
The automatic operation comes from the system's ability to detect if blocks are occupied or otherwise obstructed, and conveying that information to approaching trains.