In keeping with the thread's title, "What is scripture?", I offer the following:
https://www.etymonline.com/search?q=scripture
scripture (n.)
early 14c., "the sacred writings of the Bible, the books of the Old and New Testaments" (in this sense commonly with a capital); from Medieval Latin and Late Latin scriptura "the writings contained in the Bible, a passage from the Bible,"
in classical Latin "a writing, character, inscription," from scriptus, past participle of scribere "to write" (from PIE root *skribh- "to cut").
The word in Middle English also could mean "a writing, an act of writing, written characters" (mid-14c.), a sense now rare. The sense of "a passage from the Bible" is by late 14c. Figuratively, of something assuredly true, it is attested by 1570s. As an adjective, "relating to the Scriptures," by 1720.
The word "scripture" literally means "a writing".
Of course, the Bible includes that scripture is given by inspiration of God.
Did God inspire the New Testament writers to write?
Of course, he did.
Case closed.