update_issue
Edit an existing issue's title, description, status, labels, or hidden state, and upload attachments to append to the description.
Instructions
Update an existing issue (title, description, status, labels, is_hidden). Use status=1 to close, status=0 to reopen. Local files passed via 'attachments' are uploaded and appended to 'description'; if 'description' is omitted, the existing description is fetched first and appended to.
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": "update_issue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| debug | No | Enable verbose debug logs | |
| title | No | New title (supports \n as newline) | |
| labels | No | Labels to set on the issue | |
| 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. | |
| status | No | Status: 0=open, 1=closed | |
| issue_id | Yes | Issue ID (UUID) | |
| is_hidden | No | true hides the issue, false unhides it (PostgresAI staff only; same as CLI --hidden / --no-hidden). Omit (or pass null) to leave unchanged. | |
| attachments | No | Local file paths to upload and append as markdown links (images render inline). When provided without 'description', the existing description is fetched and appended to. | |
| description | No | New description (supports \n as newline) |