I want my legacy to be written in the books and every page
grabbing onto the vines
Explanation:
grabbing onto the vines is the participle phrase in the sentence.
a participle phrase contains a participle and acts as an adjective. the participle phrase here modifies the monkey.