post_issue_comment
Posts comments to issues, optionally as threaded replies, and uploads local attachments to storage as markdown links appended to the comment body.
Instructions
Post a new comment to an issue (optionally as a reply). Local files passed via 'attachments' are uploaded to PostgresAI storage and the resulting markdown links are appended to the comment body (image extensions render inline).
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": {
"issue_id": "<issue_id>"
},
"name": "post_issue_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| debug | No | Enable verbose debug logs | |
| org_id | No | Organization ID. Optional with a per-organization token (uses the stored org); REQUIRED with a global token, which can reach every organization the user belongs to and will not assume one. Use orgs_list / `pgai orgs` to discover valid values. | |
| content | No | Comment text (supports \n as newline) | |
| issue_id | Yes | Issue ID (UUID) | |
| attachments | No | Local file paths to upload and append as markdown links (images render inline). Either 'content' or 'attachments' must be non-empty. | |
| parent_comment_id | No | Parent comment ID (UUID) for replies |