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.

Read as Markdown

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_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 from get_design, so readers can jump to them.
  • Draw flows with a mermaid code block.
  • Say what differs between environments when it matters.