Preserve web context: upload PDF with API?

The official Web Clipper extension doesn’t preserve the original context of the highlights (only the title and link). The only alternative I can see is to upload webpages I want to annotate as PDF. I’d prefer to do that programmatically for convenience.

Looking at the API docs I don’t see anything about uploading files. Is this possible?