Create wiki page
wiki_create_pageCreates a new markdown page in the ok-wiki using a validated slug path, title, and content. Detects existing pages and directs to the update tool instead of duplicating.
Instructions
Create a new markdown page in the ok-wiki at the given path. The path is validated locally first (no dots, spaces, backslashes, or double slashes). If a page already exists at the path, the error says so and points at wiki_update_page — edit rather than re-create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Slug path for the new page, e.g. 'projects/my-page'. No dots, spaces, backslashes, or '//' — segments of letters, digits, and hyphens separated by single slashes. | |
| tags | No | Tag slugs to attach to the new page. Prefer existing wiki tags (see wiki_list_tags) over inventing near-duplicates. Defaults to none. | |
| title | Yes | Title of the new page. | |
| content | Yes | Markdown body of the new page. Must not be empty or whitespace-only — ok-wiki rejects empty pages. | |
| isPrivate | No | Whether the page is private. Defaults to false. | |
| description | No | Short description shown in listings and search results. Defaults to empty. | |
| isPublished | No | Whether the page is immediately visible (true, the default) or saved as an unpublished draft (false). |