ezmd
v0.1.1Convert files, URLs and text to LLM-ready Markdown with paging, provenance and warnings.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
convert_url
Convert a web page or document URL (http/https) to Markdown. Returns page 1 of the result (at most max_tokens, default 8000, max 50000), the section list, warnings, and next_cursor for get_job. profile: full | compact | rag | agent (default agent). options: output options such as {"ocr": false, "languages": ["en"], "max_pages": 50}; limits (max_pages, max_bytes, max_seconds, max_duration_seconds) may only be lowered, and extra, converter and experimental are refused.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
max_tokens | ||
options | ||
profile |
convert_file
Convert a local file (PDF, DOCX, PPTX, XLSX, HTML, CSV, images, audio, ...) to Markdown. path must be absolute and inside the server's allowed directories. Clients without a filesystem may instead pass data_url (a base64 data: URL under 1 MB). Returns page 1, sections, warnings and next_cursor. options: as for convert_url (output options; limits may only be lowered).
| Parameter | Type | Description |
|---|---|---|
data_url | ||
max_tokens | ||
options | ||
path | ||
profile |
convert_text
Convert pasted text, HTML, CSV, JSON, Markdown or any string to clean Markdown. source_hint is a MIME type or extension ("text/html", "csv") used to break ties; detection runs on the content.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
max_tokens | ||
profile | ||
source_hint |
get_job
Return a job's status while it runs, otherwise the page at cursor (or page 1). This is the pagination endpoint for all convert tools: pass the previous result's next_cursor unchanged. A cursor is bound to its job and profile.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
cursor | ||
max_tokens | ||
profile |
list_capabilities
Supported input types and converters (with the extra each needs when not installed), profiles, limits, and whether URL fetching is allowed. Call it to decide whether to try an input or ask the user to upload it instead.