OpenDocKit
v0.4.0Read local PDF, Office, HWP, OpenDocument, RTF, EPUB, HTML and email files as Markdown.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
convert_document Convert document to Markdown
Convert a local document to Markdown. path: the file to read (absolute, or relative to where the server was started). sections: which pages, slides or sheets to return, by their numbers in document_outline: "3" or "2-5". Leave out for the whole document. max_chars: the most characters of the document to return (default 100,000). A longer text is cut there, and a note after it says so.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
max_chars | integer | |
sections |
document_outline Outline a document
Describe a local document without returning its text: format, title, size, and its pages, slides or sheets with their numbers, titles and lengths. Use it to decide which `sections` to ask convert_document for. path: the file to read (absolute, or relative to where the server was started).
| Parameter | Type | Description |
|---|---|---|
path * | string |