Repository navigation
Expose readable PDF content and page references #2716
vibhanshu-mishra
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
agent-browser 0.43.0 can display PDFs in Chrome's built-in PDF viewer when domain restrictions are disabled, but the current observation tools do not expose the document's readable contents to an agent.
This makes PDF-based research difficult without a separate PDF-reading tool.
Observed behavior
Using a valid local PDF fixture:
snapshotreturns the viewer's toolbar and page thumbnails, but not the document's text.EmbeddedObject.get_textdoes not expose the PDF's table content.evaldoes not expose a usable document<embed>element.read <pdf-url>returns raw PDF bytes rather than extracted text.The PDF can be viewed visually in Chrome, but the agent cannot reliably extract its text or preserve page-specific evidence.
Requested capability
Provide a supported way for an agent to inspect PDF content through agent-browser.
Ideally:
application/pdfdocuments.For example, a possible interface could be:
These are proposed interfaces, not existing commands.
Expected result
An agent should be able to navigate to a manufacturer PDF, inspect a specific page, read its tables, and cite the document URL and page number without needing a separate application-level PDF reader.
Environment
Related issue
PDF navigation with
--allowed-domainscurrently fails in the tested environment. That is a separate navigation defect; this request concerns content observation after a PDF has opened successfully.All reactions