Create pull request inline comment
create_pull_request_inline_commentPost an inline review comment on a specific file and line in an Azure DevOps pull request iteration, requiring explicit confirmation to apply the change.
Instructions
Validate and create a file/line comment on the current pull request iteration. Requires write tools and confirm=true.
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": {
"repositoryId": "<repositoryId>",
"pullRequestId": "<pullRequestId>",
"content": "<content>",
"path": "<path>",
"confirm": "<confirm>"
},
"name": "create_pull_request_inline_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| toLine | No | ||
| confirm | Yes | Must be true to perform the mutation. | |
| content | Yes | Markdown comment body. | |
| project | No | Project name or ID. Omit to use AZURE_DEVOPS_DEFAULT_PROJECT. | |
| fromLine | No | ||
| iterationId | No | ||
| startToLine | No | ||
| repositoryId | Yes | Repository name or ID. | |
| pullRequestId | Yes | Pull request numeric ID. | |
| startFromLine | No |