Art. 266. El juez de oficio ordenará agregar aquellos antecedentes y medios probatorios que estime pertinentes.