File I/O

File paths resolve against the process working directory. read(path, true) forces raw text; the default dispatches by extension. Missing files currently return null with a warning.

axon
ExtensionDefault reader / boundary
.csv / .tsvCSV parser; list of row dictionaries, first row as headers. TSV uses a tab delimiter.
.jsonJSON value; not restricted to dictionaries/lists.
.jsonlCurrently routed to the single JSON parser; not a dedicated line-by-line JSONL reader.
.docx / .xlsxNative Office ZIP/XML readers; text or rows. Legacy .doc/.xls binary support is not guaranteed by extension detection.
.pdfNative PDF text reader.
Other ordinary text filesText content.

Additional filesystem calls include file->mkdir(path), rmdir(path), ls(path), exists(path), delete(path). Calls use host permissions; there is no filesystem sandbox.

CSV

Use parse(text, delimiter=",", header=true), stringify(rows, delimiter=",") and write(path, rows). Choose a non-empty delimiter. Fields use the reader’s current numeric/boolean/text conversion rules.

axon

JSON

Use parse(text), stringify(value, indent=0), and write(path, value, indent=2). This older parser is distinct from the stricter HTTP JSON decoder; do not assume identical malformed-input behavior.

axon

PDF

The native reader has separate text and image paths. It is not MuPDF and does not guarantee extraction from every PDF. These examples require a readable report.pdf in the working directory.

Text extraction

axon

Image extraction

axon
FieldMeaning
text, pagesExtracted text (or a no-extractable-text marker) and page count.
pages_contentList of dictionaries with number and text.
imagesList with index, format, width, height, page and base64 data.
Extraction depends on filters, encodings and document structure. Image-only PDFs need an explicit OCR step; an empty extraction is not proof that the file contains no visible text.

DOCX

Reads text from supported Word ZIP/XML documents. It does not preserve a complete Word layout, macros or embedded-object model. Supply report.docx to run this example.

axon

XLSX

Reads supported workbook content into row dictionaries. Worksheet, formula, style and type coverage is limited to the native reader; this is not a full Excel calculation engine. Supply records.xlsx to run this example.

axon
PDF/Office/image readers are implemented, with expanded fixture coverage on the quality track. Treat malformed or untrusted documents according to your application’s resource and access policy.