Thanks for writing to us.
It seems that there was a passage of blood and mucus before the stool. It can be due to rectal fissures or any pathology ion the colon
. A colonoscopic examination will help in detecting the exact cause.
I hope this information has been both informative and helpful for you.
Dr. Praveen Tayal