How the Bible (say King James Version) is considered as a unified whole when there are only two agreements are very different in tone, but everything the Bible has been assembled with various pieces included and excluded in a total ad hoc fashion.
There are no scientific or biblical two experts who will agree on what text should consist of the Bible. You can get more information about the bc and ad timeline at https://amazingbibletimeline.com/blog/before-bc-and-ad/. Since the 16th century, the verdict had been 'out at the plate'!
Some of the 'book' is excluded, including Tobit, Judith, two to four books of Maccabees (depending on who you talk to), and two books of Esdras, etc. Furthermore, there are additional but excluded chapter and verse to establish the book of Esther, Daniel, and Psalms.
Image Source: Google
There is also a whole library of the New Testament Apocrypha excluding Gospels, Acts, Letters, and Revelation. Everything, it's all like some of the chapters and paragraphs have been removed from your favorite literary work, or even book your healthy novels.
Then you have a trilogy of books of Enoch and Jubilees, which extended beyond the fold. Depending on whom you talk to, they form part of the Old Testament Pseudepigrapha. Then, too, some officials hotly debated canon and just made it into the Bible by the skin of the proverbial tooth – like the Book of Revelation.