list_comments
Retrieve comments on a specific file in chronological order, oldest first. Supply the file ID from list_directory to paginate through comments with limit and offset, getting exactly the data you need.
Instructions
List comments on a file.
Returns comments in chronological order (oldest first). Use list_directory to find a file's ID (file_id field).
Args: file_id: The numeric file ID. Get this from list_directory (file_id field). limit: Maximum number of comments to return (1-100, default: 20). offset: Number of comments to skip for pagination (default: 0).
Returns: JSON object with "data" (list of comments) and "pagination" (count, offset, limit, has_more).
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": {
"file_id": "<file_id>"
},
"name": "list_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| file_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |