A writ of habeas corpus is a legal tool that a person can use to enforce a superior right of possession to a child. Notary fills out below.In Texas, grounds for a writ of habeas corpus in child custody cases can include concerns about the child's safety, wellbeing, or living conditions. In child custody cases, parents or guardians can use the writ of habeas corpus to contest the legality of custody arrangements. The required application for a person currently incarcerated in TDCJ to file for a writ of habeas corpus under Texas Code of Criminal Procedure, Article 11.07. A writ of habeas corpus is a legal order that commands an individual or entity to produce a person who is allegedly being detained unlawfully. Fill out the Petition for Writ of Habeas Corpus to Return Child. Fill out the Petition for Writ of Habeas Corpus to Return Child. In violation of the 2018 order, and she filed a petition for writ of habeas corpus and writ of attachment in a separate cause number. Custody or Visitation.