PDF page-count detection now reports specific failure reasons and handles PDFs with an unknown page count
A new internal step for running pdfinfo (the tool used to determine a PDF's page count) now reports a structured reason when it fails — timeout, not_found, nonzero_exit, no_exit_status, or no_page_count — instead of just returning nothing. When this happens, the PDF is not attached, and Claude is told to use the Read tool's pages parameter to read it in parts, without being told a page count that isn't actually known.
This avoids Claude being given a wrong or fabricated page count for a PDF whose length couldn't be determined, and steers it toward reading the file in parts instead.