metafiction

noun

Fiction that deals, often playfully and self-referentially, with the writing of fiction or its conventions.

noun

a form of self-referential literature concerned with the art and devices of fiction itself