A writ of habeas corpus is a legal tool that a person can use to enforce a superior right of possession to a child. These instructions explain the steps to request a Writ of Habeas Corpus and an Order Returning a. Child.An application for a Writ of Habeas Corpus is filed when a person seeks relief from unlawful detention or imprisonment. This guide includes forms and instructions for a letter and affidavit to request that the court register an outofstate custody order in Texas. Click to view the Habeas Corpus packet from TexasLawHelp. Packet: Habeas Corpus (To Return a Child) Assembled: August 2024. In child custody cases, parents or guardians can use the writ of habeas corpus to contest the legality of custody arrangements. The following forms are available for downloading, printing and completing. The article explains writs of habeas corpus and how to seek the immediate return of a child through the courts. If they are all from the same proceedings, must fill out a separate form for each cause number.