list_comments
Retrieve all comments on a GitHub or GitLab issue or pull request to review discussions and track feedback.
Instructions
List all comments on an issue or 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": {
"repo": "<repo>",
"type": "<type>",
"number": "<number>"
},
"name": "list_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository identifier (GitLab: "group/project" or ID, GitHub: "owner/repo") | |
| type | Yes | Type of item | |
| number | Yes | Issue or PR number | |
| sort | No | Sort order | |
| page | No | Page number (default: 1) | |
| per_page | No | Items per page (default: 20, max: 100) |