createPullRequestTask
Creates a task on a Bitbucket pull request to track feedback or follow-up work, with optional comment attachment and initial OPEN or RESOLVED state.
Instructions
Create a task on a pull request
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": {
"repoSlug": "<repoSlug>",
"pullRequestId": "<pullRequestId>",
"content": "<content>"
},
"name": "createPullRequestTask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Initial task state (OPEN or RESOLVED) | |
| content | Yes | Task content | |
| repoSlug | Yes | Repository slug | |
| commentId | No | Comment ID to attach the task to (Cloud only) | |
| workspace | No | Bitbucket workspace name | |
| pullRequestId | Yes | Pull request ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Tool-specific result payload | |
| status | Yes | Whether the tool call succeeded | |
| message | Yes | Human-readable status message |