markitai
v2.3.2Convert documents, images and web pages to clean Markdown, for agents: single, URL and batch tools.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
convert_document
Convert one local document to Markdown. Handles PDF, Word, PowerPoint and Excel (and their legacy and OpenDocument formats), EPUB, HTML, CSV/JSON, e-mail, notebooks, plain text and Markdown, and images, among others. Returns the Markdown plus the paths of everything written to disk. Args: path: Absolute path to one local file (~ is expanded). Directories are rejected (a .numbers package is one document); pass files individually or use batch_convert. output_dir: Absolute directory to write the outputs into (created if missing). Omit, null or "" for a new markitai-mcp-* temporary direc…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
alt | ||
desc | ||
llm | ||
ocr | ||
output_dir | ||
profile | ||
screenshot |
convert_url
Fetch a web page and convert it to clean Markdown. Uses markitai's fetch strategy (fetch.strategy, auto by default: a static HTTP fetch with main-content extraction, then the local Chromium, when installed, for pages that need JavaScript) and returns the main content as Markdown. A PDF or another document the URL serves is converted like a local file. A remote reader service (Jina, Defuddle, Cloudflare) is used only when the configuration selects one; auto never falls back to one here. Args: url: The http:// or https:// URL to fetch and convert. output_dir: Absolute directory to writ…
| Parameter | Type | Description |
|---|---|---|
url * | string | |
alt | ||
desc | ||
llm | ||
ocr | ||
output_dir | ||
profile | ||
screenshot |
batch_convert
Convert many local files and/or URLs in the background; returns a job id at once. Items run concurrently and each writes under output_dir/batch-<job_id>/<item number>/ (0001, 0002, ...), so sources with the same name cannot overwrite each other. Poll job_status with the returned job_id for progress and the per-item results. All items share one LLM runtime, so llm.concurrency bounds the job's model requests as a whole. Jobs live in this server process only: a restart forgets them, but the written files remain. Args: sources: A nonempty list (at most 10,000) of absolute local file paths an…
| Parameter | Type | Description |
|---|---|---|
sources * | array | |
alt | ||
concurrency | ||
desc | ||
llm | ||
ocr | ||
output_dir | ||
profile | ||
screenshot |
job_status
Report the progress and results of a batch_convert job. Args: job_id: The id batch_convert returned. Returns: job_id; status: "running" until every item ended, then "completed" (also when items failed), or "cancelled" when the server shut down before every item started; total; done: items that succeeded, as in markitai serve; failed: items that failed; finished: done + failed, every item that ended (use it for progress); output_dir; results: one entry per finished item, {source, status: "ok", markdown_file, cost_usd, warnings} or {source, status: "error", error}, either with diagnost…
| Parameter | Type | Description |
|---|---|---|
job_id * | string |