> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# RCW 71.05.130 — Duties of prosecuting attorney and attorney general.

- **Citation**: RCW 71.05.130
- **Node Type**: section
- **Jurisdiction**: Washington (state)
- **Code Body**: Revised Code of Washington (RCW)
- **Official Source**: [https://app.leg.wa.gov/RCW/default.aspx?cite=71.05&full=true](https://app.leg.wa.gov/RCW/default.aspx?cite=71.05&full=true)
- **Canonical URL**: [https://corpuslaw.us/codes/washington/title-71/chapter-71-05/section-71-05-130](https://corpuslaw.us/codes/washington/title-71/chapter-71-05/section-71-05-130)
- **Semantic URL**: [https://corpuslaw.us/codes/washington/title-71/chapter-71-05/section-71-05-130](https://corpuslaw.us/codes/washington/title-71/chapter-71-05/section-71-05-130)

## Hierarchy

Title 71 — BEHAVIORAL HEALTH > Chapter 71.05 — BEHAVIORAL HEALTH DISORDERS

## Text

In any judicial proceeding for involuntary commitment or detention except under RCW 71.05.201 , or in any proceeding challenging involuntary commitment or detention, the prosecuting attorney for the county in which the proceeding was initiated shall represent the individuals or agencies petitioning for commitment or detention and shall defend all challenges to such commitment or detention, except that the attorney general shall represent and provide legal services and advice to state hospitals and state facilities with regard to all provisions of and proceedings under this chapter other than proceedings initiated by such hospitals and facilities seeking 14-day detention.
