filemorph

v0.1.0
io.github.CloudCorpRecords/filemorph Checked 19 hours ago Published 27 days ago

Convert files between 44 formats: documents, spreadsheets, images, ebooks, subtitles.

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

list_formats

List every file format this converter reads or writes (id, name, extensions, family). Use the id values as `from`/`to` in other tools.

check_conversion

Check whether one format can be converted to another before sending a file. Returns the engine, whether AI Deep Read is needed, the options it accepts, and alternatives when the pair is not supported. Formats accept ids (docx), extensions (jpeg) or common names (word, excel).

ParameterTypeDescription
from *stringSource format, e.g. pdf
to *stringTarget format, e.g. docx

list_conversions

List supported target formats for a source format (or every source that can produce a target). Returns compact {from,to,slug,engine,mode} rows.

ParameterTypeDescription
fromstringA source format (e.g. "pdf"), to list the target formats it can be converted to.
tostringA target format, to list every source format that can be converted into it.

convert_file

Convert a file. Provide the content as base64 OR a public https URL. `from` is optional when the filename/URL has an extension. Text outputs (Markdown, CSV, JSON, HTML…) up to 200 KB are returned inline as `text`; other outputs are returned as `base64` plus a `downloadUrl` that accepts the same bearer token. Max 10 MB per file. Set `deepRead: true` to read scans, photos and handwriting with AI Deep Read (1 credit per page).

ParameterTypeDescription
to *stringTarget format id, e.g. md, docx, xlsx, png
base64stringFile bytes, base64-encoded
deepReadbooleanUse AI Deep Read (OCR + layout understanding) for PDFs and images
filenamestringOriginal filename with extension, e.g. report.pdf
fromstringSource format id; detected from the filename when omitted
optionsobjectEngine options from check_conversion (delimiter, sheet, quality, …)
urlstringPublic https URL of the file (alternative to base64)

get_conversion

Fetch a previous conversion by id: status, warnings, and the output (inline text or base64) if it is still retained.

ParameterTypeDescription
id *stringThe id of the conversion to fetch, as returned when the conversion was created.