Optogenetic approaches to manipulate neural activity have revolutionized the ability of neuroscientists to uncover the functional connectivity underlying brain function. At the same time, the increasing complexity of in vivo optogenetic experiments has increased the demand for new techniques to precisely deliver light into the brain, in particular to illuminate selected portions of the neural tissue. Tapered and nanopatterned gold-coated optical fibers were recently proposed as minimally invasive multipoint light delivery devices, allowing for site-selective optogenetic stimulation in the mammalian brain [Pisanello et al., Neuron 82, 1245]. Here we demonstrate that the working principle behind these devices is based on the mode-selective photonic properties of the fiber taper. Using analytical and ray tracing models we model the finite conductance of the metal coating, and show that single or multiple optical windows located at specific taper sections can outcouple only specific subsets of guided modes injected into the fiber.