The defendant may make the same plea as upon an indictment. His plea must be oral, and entered in the minutes. If the defendant plead guilty, the court may, before entering such plea or pronouncing judgment, examine witnesses to ascertain the gravity of the offense committed; and if it appears to the court that a higher offense has been committed than the offense charged in the complaint, the court may order the defendant to be committed or admitted to bail, to answer any indictment which may be found against him by the grand jury.
Idaho Code § 19-3905