On the Marionette Theatre by Heinrich von Kleist
This story was, I’ve just learned via Wikipedia, a strong inspiration of Philip Pullman in writing His Dark Materials, along with Paradise Lost.