In the context of toxicology, capnography is invaluable for monitoring patients who have been exposed to toxic substances. It helps in assessing respiratory function, which can be compromised due to exposure to various toxins. For instance, substances like opioids, sedatives, and certain chemicals can lead to respiratory depression, which capnography can detect early.