create-page
Create a new wiki page with content and get its title, page ID, and first revision ID. Fails if the page already exists; use update-page for 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. |