A nasointestinal tube is a specialized medical device inserted through the nose, passing down the esophagus, and into the small intestine. It is primarily used for feeding, medication administration, and decompression in patients who cannot ingest food orally or have gastrointestinal obstructions.