create-page
Create a new wiki page with provided content. Fails if page already exists; use update-page to modify existing pages.
Instructions
Creates a new wiki page with the provided content and returns the new page's title, page ID, and first revision ID. Fails if a page with the given title already exists; for existing pages, use update-page. The optional contentModel parameter selects a non-default content format (e.g. javascript, css); when omitted, MediaWiki picks the default for the title's namespace. For building up a large page across multiple calls, pair create-page with chained update-page(mode='append') calls, each adding a chunk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Page content in the format specified by the contentModel parameter | |
| title | Yes | Wiki page title | |
| comment | No | Reason for creating the page | |
| contentModel | No | Content model of the new page. If omitted, MediaWiki picks the default for the title's namespace. | |
| bot | No | Marks the edit as a bot edit, which Special:RecentChanges hides by default. Takes effect only when the authenticated account has the `bot` right (granted by the bot group, or by the high-volume grant on a bot password or OAuth consumer); without it the edit saves unflagged and the response reports botMarked: false. Use when performing bulk or automated edit runs, or when the user requests it. | |
| wiki | No | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |