# write_doc

> write_doc, an Arc-Tech MCP tool. Create a documentation page in a project (give project_id and title), or change one (give doc_id and what to change).…

Source: https://arc-tech.dev/docs/tools/write_doc

Create a documentation page in a project (give project_id and title), or change one (give doc_id and what to change). Markdown unless format is "html".

**Changes something.** Needs a read & write token, and a `reason`.

## Parameters

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `project_id` | string | No | To create a page. |
| `doc_id` | string | No | To change a page. |
| `title` | string | No |  |
| `content` | string | No |  |
| `format` | string | No | One of: `markdown`, `html`. |
| `parent_id` | string | No | The page it sits under. |
| `reason` | string | Yes | Why, in one short sentence the team will read in the project’s activity log. |

## Example arguments

```json
{
  "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"
}
```

## Guide

See [Write pages with AI](https://arc-tech.dev/md/write-pages.md).

Every refusal says why, and nothing is saved. See [errors and limits](https://arc-tech.dev/md/errors.md).
