phabricator_revision_inline_comment
Create draft inline comments or threaded replies on Phabricator Differential diffs, with optional highlighted ranges and suggested edits; publish drafts separately.
Instructions
Create a draft inline comment on a Differential diff, optionally highlighting a character range and attaching a suggested edit, or a draft reply to a published inline comment (replyToInlineID). Drafts are visible only to you until you call phabricator_revision_inline_publish; a plain comment via phabricator_revision_edit does NOT publish them. Ranges, suggestions and replies need the differential.inline.* Conduit extension; without it, plain line comments fall back to differential.createinline.
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": {
"revisionID": "<revisionID>",
"content": "<content>"
},
"name": "phabricator_revision_inline_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diffID | No | Diff ID to comment on. Defaults to the revision's active diff. | |
| content | Yes | Comment text (supports Remarkup) | |
| filePath | No | Path to the file being commented on. Required unless replying. | |
| endOffset | No | Exclusive column on the last line where the highlighted range ends. Requires startOffset. | |
| isNewFile | No | Whether the line number refers to the new file (true) or old file (false). Default: true | |
| lineLength | No | How many more lines the comment spans after lineNumber (default: 0, a single line) | |
| lineNumber | No | First line of the comment. Required unless replying. | |
| revisionID | Yes | Revision ID (e.g., 123 or "D123") | |
| startOffset | No | 0-based column on the first line where the highlighted range starts, counted as the web UI shows it (each tab is up to 2 columns). Requires endOffset. | |
| suggestionText | No | Suggested replacement for the commented lines on the new side. "" suggests deleting them. Needs a diff uploaded with full context, as arc diff does. | |
| replyToInlineID | No | Reply to this published inline comment (its "id" from phabricator_revision_inline_search), as "Reply" does in the web UI. The reply goes on the same diff, side and lines as that comment and is threaded under it, so leave out diffID, filePath, lineNumber, lineLength and isNewFile (any given must match the comment). A reply cannot have startOffset, endOffset or suggestionText. You cannot reply to a draft, including your own: edit it instead. |