Pediatricians assess social context through detailed patient histories, which may include questions about family composition, parental employment, housing conditions, and access to resources like food and education. Tools like the Social Determinants of Health (SDOH) screening can help identify areas where a child may need additional support.