Twice in the Qur’an we read a story about Jesus who gave life to a bird from clay (3:49, 5:110). The story came from a book called Infancy Gospel of Thomas (not to be identified with the more popular Gospel of Thomas) which was dated to the 2nd or 3rd centuries. It shows Muhammad’s familiarity (in overall, vague familiarity) with several aspects of Christian tradition, and perhaps in particular with Syriac Christian tradition, since the Infancy Gospel of Thomas came from the Syriac tradition (such extracanonical stories need not necessarily be taken as negative, since usually even such stories were told by and meant for Christians). And it was consistent with the life of Muhammad itself, who did have contact with Syriac Christians during his days as a trader.
The question then, is such literary dependency (if it were admitted, of course one could still deny the link between Qur’an and Infancy Gospel of Thomas) necessarily problematic for the mechanical view of inspiration of the Qur’an?