Office

PDFs

The 2 tools for pdfs. Before an agent first makes one, it reads guide topic pdfs.

add_pdf

Add a PDF to a space from a URL (a public address; up to 50 MB) or base64 bytes. For a local file, uploading is cheaper: curl -F file=@report.pdf -H "Authorization: Bearer $KEY" https://tryartifacts.com/api/spaces/<space_id>/pdf

Parameters

space_idstringrequired
titlestring
urlstring
base64string

read_pdf

Read a PDF's text, page by page (pdf.js), e.g. to answer a comment on page 3 or summarize it into a document. Pass pages to read only some; long PDFs stop at about 60,000 characters and say which pages are left.

Parameters

item_idstringrequired
pagesinteger[]