Create Page
confluence_create_pageCreate a Confluence page in a specified space with a given title and content. Supports Markdown, wiki, storage, and XHTML formats, with optional parent page and layout settings.
Instructions
Create a new Confluence page.
Args: ctx: The FastMCP context. space_key: The key of the space. title: The title of the page. content: The content of the page (format depends on content_format). Mutually exclusive with content_file; exactly one must be supplied. content_file: Filesystem path to read the page body from (UTF-8). Useful for bodies too large to pass as an inline tool argument. parent_id: Optional parent page ID. content_format: The format of the content ('markdown', 'wiki', 'storage', or 'xhtml'). enable_heading_anchors: Whether to enable heading anchors (markdown only). include_content: Whether to include page content in the response. emoji: Optional page title emoji (icon shown in navigation). page_width: Optional page layout width ('full-width' or 'default'). table_layout: Optional table width preset ('full-width', 'wide', 'default').
Returns: JSON string representing the created page object.
Raises: ValueError: If in read-only mode, Confluence client is unavailable, or invalid content_format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emoji | No | (Optional) Page title emoji (icon shown in navigation). Can be any emoji character like '📝', '🚀', '📚'. Set to null/None to remove. | |
| title | Yes | The title of the page | |
| content | No | The content of the page. Format depends on content_format parameter. Can be Markdown (default), wiki markup, storage format, or XHTML storage format. Either 'content' or 'content_file' must be provided, but not both. | |
| parent_id | No | (Optional) parent page ID. If provided, this page will be created as a child of the specified page | |
| space_key | Yes | The key of the space to create the page in (usually a short uppercase code like 'DEV', 'TEAM', or 'DOC') | |
| page_width | No | (Optional) Page layout width. Options: 'full-width', 'default'. Defaults to null (Confluence default). | |
| content_file | No | (Optional) Absolute or relative filesystem path to read the page body from (UTF-8). Use this instead of 'content' when the body is too large to pass comfortably as a tool argument. Mutually exclusive with 'content'. | |
| table_layout | No | (Optional) Table width preset applied to all markdown tables. Options: 'full-width' (1800 px), 'wide' (960 px), 'default' (760 px). Only applies when content_format is 'markdown'. | |
| content_format | No | (Optional) The format of the content parameter. Options: 'markdown' (default), 'wiki', 'storage', or 'xhtml'. Use 'xhtml' when providing Confluence XHTML storage format (same as 'storage'). Wiki format uses Confluence wiki markup syntax | markdown |
| include_content | No | (Optional) Whether to include page content in the response. Defaults to false since callers already have the content at create time | |
| enable_heading_anchors | No | (Optional) Whether to enable automatic heading anchor generation. Only applies when content_format is 'markdown' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |