Render document to a file
renderRender registered template-driven documents to build cache files in LaTeX, Markdown, JSON, or text format for subsequent compilation or PDF auditing. Supports draft, submission, and camera-ready modes.
Instructions
Render a registered template-driven document to a file on disk.
Use this to materialise a document's source (LaTeX, Markdown, JSON,
or text) into ``build/.cache/rendered/`` before compiling or
auditing it. This writes the rendered output file but never mutates
``data/meta.yaml``. Discover valid ``doc_id`` values with
``list_docs`` first; audit the resulting PDF afterwards with
``audit_pdf``. This is the only write tool on this server — the
others are read-only.
Args:
doc_id: registered template id (see `list_docs`).
fmt: one of `latex`, `markdown`, `json`, `text`.
mode: one of `draft`, `submission`, `camera-ready`.
Returns `{"doc_id": …, "format": …, "output_path": …, "bytes": int}`.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fmt | No | Output format: one of `latex`, `markdown`, `json`, `text`. | latex |
| mode | No | Render mode: one of `draft`, `submission`, `camera-ready`. | draft |
| doc_id | Yes | Registered template document id — see `list_docs`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||