Add Inline Comment
confluence_add_inline_commentAdd an inline comment anchored to a specific text selection on a Confluence page. Provide the page ID, comment body in Markdown, and exact text to target, with optional match index for repeated phrases.
Instructions
Add an inline comment anchored to a text selection on a page.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"page_id": "<page_id>",
"body": "<body>",
"text_selection": "<text_selection>"
},
"name": "confluence_add_inline_comment"
}
}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 |