metafiction
A literary term for fiction that self-consciously addresses the devices of fiction, often blurring the boundary between fiction and reality.
This novel uses metafictional techniques.
In metafiction, the author sometimes appears within the story.