Achieving triggered release of small molecules with spatial and temporal precision at designated cells within an organism remains a challenge. By combining a cell-targetable, icosahedral DNA-nanocapsule loaded with photoresponsive polymers, we show cytosolic delivery of small molecules with the spatial resolution of single endosomes in specific cells in Caenorhabditis elegans. Our technology can report on the extent of small molecules released after photoactivation as well as pinpoint the location at which uncaging of the molecules occurred. We apply this technology to release dehydroepiandrosterone (DHEA), a neurosteroid that promotes neurogenesis and neuron survival, and determined the timescale of neuronal activation by DHEA, using light-induced release of DHEA from targeted DNA nanocapsules. Importantly, sequestration inside the DNA capsule prevents photocaged DHEA from activating neurons prematurely. Our methodology can in principle be generalized to diverse neurostimulatory molecules.