The Question and Answer section for The Arabian Nights: One Thousand and One Nights is a great resource to ask questions, find answers, and discuss the novel.
I suppose the word is a cliche used for magic or play.
The boy first asks to be brought home. The spirit complies. Questions need to be submitted one at a time.
Persia is generally located around what is now Iran.