FileForge

v0.3.0
io.github.hongfeng328/fileforge Checked 1 day ago Published 1 month ago

File tools for your AI chat: PDF tables to Excel, merge PDFs, images to PDF, fill PDF forms.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pdf_tables_to_excel Extract PDF tables to Excel

Extract all tables detected in a PDF into an Excel (.xlsx) workbook, one worksheet per table. Input: the PDF file's contents as a base64-encoded string (max 25 MB, 500 pages; tables need visible ruling lines or clearly aligned columns). Returns a download_url for the .xlsx file (link valid 24 hours) plus the table count. Costs 1 credit; 5 free calls per month.

ParameterTypeDescription
pdf_base64 *stringThe PDF file's contents as a base64-encoded string (max 25 MB / 500 pages).

merge_pdfs Merge PDFs

Merge two or more PDF files into a single PDF, in the order given. Input: a list of base64-encoded PDF file contents (each max 25 MB / 500 pages). Returns a download_url for the merged PDF (link valid 24 hours), its size and page count. Costs 1 credit; 5 free calls per month.

ParameterTypeDescription
pdfs_base64 *arrayThe PDF files to merge, each as a base64-encoded string, in the order they should appear in the output (at least 2; each max 25 MB / 500 pages).

images_to_pdf Combine images into a PDF

Combine one or more images (PNG/JPEG/WebP) into a single PDF, one image per page, pages sized to each image. Input: a list of base64-encoded image contents (each max 15 MB / 40 MP). Returns a download_url for the PDF (link valid 24 hours), its size and page count. Costs 1 credit; 5 free calls per month.

ParameterTypeDescription
images_base64 *arrayThe images (PNG/JPEG/WebP), each as a base64-encoded string, in page order (each max 15 MB / 40 MP).
dpiintegerOutput resolution in DPI, 72-600 (default 200).

pdf_form_fill Fill a PDF form

Fill the fields of a fillable PDF form and return the completed form. Input: the PDF's contents as a base64-encoded string, plus a fields object mapping field names to values. Unknown field names are rejected with a list of the form's real fields. Checkboxes accept true/false; radio groups take the chosen option's name; dropdowns take one of their defined choices. Set flatten=true to bake values in so they can no longer be edited. Returns a download_url for the filled PDF (link valid 24 hours). Costs 1 credit; 5 free calls per month.

ParameterTypeDescription
fields *objectObject mapping the form's field names to the values to fill in, e.g. {"full_name": "Jane Doe", "agree": "true"}. Unknown names are rejected with the form's real field list.
pdf_base64 *stringThe fillable PDF form's contents as a base64-encoded string (max 25 MB / 500 pages).
flattenbooleanIf true, bake the filled values into the page so the form can no longer be edited (default false).

file_to_markdown Convert a file to Markdown

Convert a document (PDF, DOCX, XLSX, PPTX, HTML, CSV, JSON, TXT or MD) to clean Markdown with headings, lists, tables and links preserved, ready to feed to an AI chat or a notes app. Input: the file's contents as a base64-encoded string plus file_name (its extension declares the format and is verified against the content; max 25 MB, PDFs max 500 pages). Important: the document must contain a real text layer - scanned or image-only PDFs return an error because this tool does not run OCR, and failed calls are not charged. Returns a download_url for the .md file (link valid 24 hours) plus the cha…

ParameterTypeDescription
file_base64 *stringThe document's contents as a base64-encoded string (max 25 MB; PDFs max 500 pages). The document must contain a real text layer - scanned or image-only files are rejected because this tool does not ru…
file_name *stringThe file's name with its real extension, e.g. report.docx or paper.pdf. The extension declares the format and is verified against the content.

office_to_pdf Convert an office document to PDF

Convert an office document (DOCX, XLSX, PPTX, ODT, ODS, ODP or RTF) to PDF with its layout preserved, using LibreOffice. Input: the file's contents as a base64-encoded string plus file_name (its extension declares the format and is verified against the content; max 15 MB). Password-protected documents are not supported. Returns a download_url for the PDF (link valid 24 hours) plus its page count. Costs 1 credit; 5 free calls per month.

ParameterTypeDescription
file_base64 *stringThe office document's contents as a base64-encoded string (max 15 MB).
file_name *stringThe file's name with its real extension, e.g. report.docx or slides.odp. The extension declares the format and is verified against the content.

pdf_to_word Convert a PDF to Word

Convert a PDF with a real text layer into an editable Word (.docx) document: paragraphs, tables and images are rebuilt as native Word content. Input: the PDF's contents as a base64-encoded string (max 25 MB, 500 pages). Important: scanned or image-only PDFs are rejected because this tool does not run OCR, and failed calls are not charged. Returns a download_url for the .docx file (link valid 24 hours). Costs 1 credit; 5 free calls per month.

ParameterTypeDescription
pdf_base64 *stringThe PDF file's contents as a base64-encoded string (max 25 MB / 500 pages). The PDF must contain a real text layer - scanned or image-only PDFs are rejected because this tool does not run OCR.

word_to_ppt Turn a Word document into a slide deck

Turn a Word (.docx) document into a PowerPoint (.pptx) deck by its heading structure: each Heading 1 becomes a slide title, the paragraphs after it become that slide's bullet points, and content before the first Heading 1 becomes the first slide. A document with no Heading 1 is paged in order, at most 8 bullets per slide. Text is carried over verbatim (no summarising); tables and images in the document are not carried over. Input: the file's contents as a base64-encoded string plus file_name (max 15 MB, at most 100 slides). Returns a download_url for the .pptx file (link valid 24 hours) plus t…

ParameterTypeDescription
file_base64 *stringThe .docx document's contents as a base64-encoded string (max 15 MB). Only .docx is accepted.
file_name *stringThe file's name with its real .docx extension, e.g. report.docx. The extension declares the format and is verified against the content.

ppt_to_word Turn a slide deck into a Word document

Turn a PowerPoint (.pptx) deck into a Word (.docx) document: each slide becomes a Heading 1 section with its bullet points at their original indent levels, tables become native Word tables, and speaker notes are appended under a "Notes:" lead-in. Text is carried over verbatim; pictures and charts are not carried over. Input: the file's contents as a base64-encoded string plus file_name (max 15 MB). Returns a download_url for the .docx file (link valid 24 hours) plus the slide count. Costs 1 credit; 5 free calls per month.

ParameterTypeDescription
file_base64 *stringThe .pptx deck's contents as a base64-encoded string (max 15 MB). Only .pptx is accepted.
file_name *stringThe file's name with its real .pptx extension, e.g. slides.pptx. The extension declares the format and is verified against the content.

office_convert Convert an office file to another format of its family

Convert an office file between formats of the same family using LibreOffice: DOC to DOCX, DOCX to DOC or ODT, PPT to PPTX, PPTX to PPT, XLS to XLSX, XLSX to XLS, ODT to DOCX, ODS to XLSX, ODP to PPTX. Cross-family moves are not supported here (use word_to_ppt / ppt_to_word / office_to_pdf instead). Input: the file's contents as a base64-encoded string, file_name, and target_format (e.g. "docx"). The file name's extension declares the source format and is verified against the content; max 15 MB. Password-protected documents are not supported. Returns a download_url for the converted file (link…

ParameterTypeDescription
file_base64 *stringThe office file's contents as a base64-encoded string (max 15 MB).
file_name *stringThe file's name with its real extension, e.g. legacy.doc or report.docx. The extension declares the source format and is verified against the content.
target_format *stringThe format to convert to, e.g. docx, doc, pptx, ppt, xlsx, xls or odt. Must be a supported target for the source format.