document
Create, ingest, and edit documents with markdown and LaTeX support. Inspect structure, update metadata, and manage bibliography entries with style configuration.
Instructions
Create, ingest, and inspect documents.
Actions:
create: Scaffold a new empty document. Optionally set class, title, author.
ingest: Parse markdown text, .tex file, or .md file into the document model.
outline: Show document structure (sections, block counts).
read: Read content of a specific section as prose text.
update: Update document metadata (title, author, date, abstract).
reset: Clear the current document and saved state. Next create/ingest starts fresh.
bib_add: Add a bibliography entry (provide BibTeX-format entry as source).
bib_remove: Remove a bibliography entry by key (provide key as source).
bib_list: List all bibliography entries.
bib_style: Set bibliography style (provide style name as source, e.g. "authoryear", "numeric").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| document_class | No | ||
| title | No | ||
| author | No | ||
| date | No | ||
| abstract | No | ||
| source | No | ||
| section | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |