A writ of habeas corpus is a legal tool that a person can use to enforce a superior right of possession to a child. In child custody cases, parents or guardians can use the writ of habeas corpus to contest the legality of custody arrangements.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. Court Order for Conservatorship of the Child(ren). Choose one: Check (1) if you are claiming superior rights under a court order. You can request a writ of attachment or writ of habeas corpus here in Texas and then try to get California law enforcement to help you. He is Petitioner's immediate custodian and resides in the judicial district of the United States Court for the Western District of Texas, San Antonio Division. Are you or a loved one facing unjust imprisonment in Texas? You may have heard the term "habeas corpus" thrown around, but what does it really mean? She should file (a) a Motion for Enforcement and request the court for a Capri.