Libretto
Musicals usually have lyrics (the words for the songs), and a separate "book" (the spoken dialogue and the stage directions).  Sometimes these two are by different authors, e.g. the musical Fiddler on the Roof has a composer (Jerry Bock), a lyricist (Sheldon Harnick), and the writer of the "book" (Joseph Stein).