The Santa Cruz County District Attorney’s Office Tuesday filed 29 charges against an armed jail inmate who allegedly attacked a sheriff’s deputy last week at a hospital in Santa Cruz and prompted a five-hour manhunt.

A Santa Cruz County jail inmate who escaped custody by using a stun gun on a sheriff’s deputy, taking her handgun and then shooting at a woman, was recaptured late Monday afternoon following a standoff, authorities said.