assuming you can see the paper draft content,
you agent should survey the literature (like deep research ) to get text
then converted cited papers and URLs into bibtex entries and save to some .bib file within overleaf
then insert the text with \cite{bibentry??} into the right section