1. To attend on the grand juries, advise them in relation to matters of law, and examine and swear witnesses before them.
2. To draw up all indictments and to prosecute all indictable offenses.
3.To prosecute and defend any civil action in the circuit court in the prosecution or defense of which the state is interested.
https://definitions.uslegal.com/d/district-attorney/