Markdown Documents
Markdown documents are project documents for specs, design notes, runbooks, meeting notes, and any text that should live beside your ERDs, diagrams, and testcases.
Create a Markdown document
You can create a Markdown document from the same document flow used for other Ainecto tools.
- Open File > New Document or click the project/folder new-document action.
- Choose the target project and, if needed, a folder.
- Select Markdown as the document type.
- Enter a title and create the document.
The document opens in a tab. If you create it inside a folder, it appears under that folder in the project tree.
Read and edit
Markdown documents open in read mode. The viewer renders headings, lists, tables, links, code blocks, and other Markdown content.
Use the right rail for document tools:
| Panel | Purpose |
|---|---|
| TOC | Jump between headings in the current document |
| Versions | Review saved versions and restore an earlier version |
| Share | Manage document sharing and public links |
| Meta | Check document metadata |
| Style | Adjust the reading view |
To edit the document:
- Click the edit action in the document body, or press
Ctrl+E/Cmd+E. - Edit the title or body in the Markdown editor.
- Click Save or press
Ctrl+S/Cmd+S.
Changes are saved when you run Save. Until then, the tab is marked as having unsaved changes and Ainecto asks before discarding them.
Versions and restore
Open the Versions panel in the right rail to see recent versions. Click View All for the full version list and compare flow.
Markdown versions are created from saved document states. Each version records:
- Version number
- Timestamp
- Creator
- Change summary or title
- The Markdown snapshot for that version
To restore a version:
- Open Versions in the right rail.
- Click Restore on the target version.
- Confirm the restore.
Restore writes the selected version's title and Markdown body back into the live document. The restore itself creates a new version, so the state before restore remains in history.
Version history retention follows your plan limits. Older versions can be locked or unavailable after the plan limit is reached.
Edit with AI Chat
When a Markdown document is the active tab, AI Chat can read the current document content and selected text. Ask it to rewrite, expand, summarize, polish, or replace the document.
For document edits, AI Chat prepares a full-document replacement:
- You send the request while the Markdown document is active.
- The assistant drafts the next title and Markdown body.
- A preview dialog shows the current version and the proposed next version.
- Confirm to save, or cancel to leave the document unchanged.
If the document changed after your prompt was sent, Ainecto opens a conflict dialog instead of overwriting silently. The dialog shows your attempted content, the latest server content, and an editable merge area. Choose one side or edit the merge, then save the merge.
Shared read-only documents cannot be edited by AI Chat.
Search Markdown documents
Use global document search when you need to find a Markdown document by title or body text.
- Open File > Search... from the top navigation, or press
Ctrl+Shift+F/Cmd+Shift+F. - Choose Current project or All workspace.
- Optionally filter the type to Markdown.
- Type a query and select a result to open it.
Search results can include document titles and content previews. The global search is workspace-scoped; it is separate from canvas search inside an ERD or diagram.
MCP and CLI access
Markdown documents use the public document type markdown.
For MCP:
- Create a document with
mcp__ainecto__create_documentsandtype: "markdown". - Replace the title or body with
mcp__ainecto__update_documents. - Append content with
mcp__ainecto__markdown_append_document. - Ask Ainecto to generate content with
mcp__ainecto__markdown_generate_document. - Search with
mcp__ainecto__search_documents, optionally filteringtype: "markdown".
For large document bodies, request an upload token with purpose=document.create, document.update, or document.append and upload the body directly instead of passing it through a chat prompt.
See MCP Tool Reference for exact schemas and examples.