At the corners of the yagura turrets in this photo from the Kumamoto castle, you can see a wooden structure extended outside, with an opening on the bottom. The ishi-otoshi was made large enough to allow throwing large rocks, but narrow enough to prevent a man from crawling through it.
EXIF info:
Nikon Df
Lens: VR 28-300mm F/3.5-5.6G
Focal Length: 175mm
Aperture: F/7.1
Shutter Speed: 1/800s
ISO Sensitivity: ISO 400