Remove all the books
There are now books all over the floor.
Check what's inside the hat
A gnome's hat is the storing place for all of the gnome's most important items. In this case, your spell list, that all fairy folk have, is neatly tucked away into your hat.
Unfortunately, some joker removed all the spells from your list except for the top one- the Summon spell.
Desroy/Create weapons from star wars episodes I-VI stuff. Leave episodes VII-IX untouched.
You create the Really Long Paper Sword of Going Nowhere out of half the book for Phantom Menace and place it in your hat inventory. This will be useful later, you're sure.
Remove the books. But not before looking inside of them for something useful.
Throw the books out the window!
You briefly consider going ballistic from all these intrusive thoughts about those damnable plastic windows.
You are the superior gnome, the chosen gnome, the great Gnome. Meditate on the superiority of your existance in the hope of clutching at otherwordly power.
You meditate on your superior existence and clutch at otherworldly power, such as the power of your spells...