Write pages with AI
How an AI assistant writes and links documentation pages in Arc-Tech over MCP, with Markdown, Mermaid and mentions of components.
Create a page
{
"project_id": "<project id>",
"title": "How telemetry is ingested",
"content": "# How telemetry is ingested\n\nDevices publish to [@MQTT broker](node:broker). [@Stream processor](node:processor) reads it and writes each reading.",
"reason": "Documented the ingest path"
}Pages are Markdown unless format is html. Put a page under another with parent_id.
Change a page
Read it first with read_doc. Then send doc_id with only what changes. content replaces the whole text, so send all of it.
Link it to a design
link_doc_to_design makes the page appear among the design's pages. Send linked: false to detach it.
Good pages
- Start with what the reader needs to know or do.
- Mention components as
[@Name](node:<component id>), using ids fromget_design, so readers can jump to them. - Draw flows with a
mermaidcode block. - Say what differs between environments when it matters.