Add Inline Comment
confluence_add_inline_commentAdd an inline comment anchored to a specific text selection on a Confluence page. Specify the exact text and optional occurrence index for precise placement.
Instructions
Add an inline comment anchored to a text selection on a page.
Args: ctx: The FastMCP context. page_id: The ID of the page to add the inline comment to. body: The comment content in Markdown format. text_selection: The exact text on the page to anchor the comment to. text_selection_match_count: Total occurrences of the selected text on the page. text_selection_match_index: Zero-based index of which occurrence to anchor to.
Returns: JSON string representing the created inline comment.
Raises: ValueError: If in read-only mode or Confluence client is unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The comment content in Markdown format | |
| page_id | Yes | The ID of the page to add the inline comment to | |
| text_selection | Yes | The exact text on the page to anchor the inline comment to. Must match text that exists in the page content. | |
| text_selection_match_count | No | Total number of times the selected text appears on the page. Defaults to 1. | |
| text_selection_match_index | No | Zero-based index of which occurrence of the text to anchor to. Defaults to 0 (first occurrence). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |