The basic story is that Komachi was accused of plagiarizing an old poem included in a bound poem book and cleared the suspicion by washing the book to erase the old poem.
古歌の剽窃との濡れ衣を掛けられた小町はその証拠とされる草子を洗って疑いを晴らしたという題材