I usually see the word metafiction applied to works that draw attention to their own devices, their own artificiality, in order to mock novelistic convention and show the impossibility of capturing a reality external to the text or whatever.
Ben Lerner