create_page
Create a Markdown page in the workspace — a design write-up, a decision record, a runbook, the prose a diagram cannot carry.
Instructions
Create a Markdown page in the workspace — a design write-up, a decision record, a runbook, the prose a diagram cannot carry. The title comes from the body (front-matter title, else the first top-level # heading), so begin the body with a heading rather than passing title. Embed a stored diagram by putting its id inside a fenced diagramzu block; an inline mermaid block is for a throwaway sketch nobody will revisit. Returns the page's id, its revision and its URL in the app, which only members of this workspace can open. To let somebody outside the workspace read it, a person in the workspace opens the page in DiagramZu and uses its Share button, which mints a public read-only link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The page's Markdown (≤100,000 chars, counted after line endings and Unicode are normalised — i.e. of the text you would read back). | |
| lang | No | Optional language tag for the page's prose — en, ja, zh-TW, pt-BR. Letters and hyphens only. Omit to inherit front-matter `lang`, else your account's language. | |
| space | No | Which workspace to act in: its id, its slug, or its exact name (case-insensitive). Omit to use this token's default workspace. Call list_spaces to see what this token can reach. A name that matches more than one workspace is refused — pass the id or slug instead. | |
| title | No | Optional display name (≤200 chars). The BODY wins: front-matter `title` or a leading `#` heading overrides this, which is why writing the heading is the better habit. | |
| folderId | No | Optional UUID of an existing folder to put the page in. Use list_folders to find one by name. Omit to place it at the workspace root. |