create_issue
Creates a new PostgresAI issue with title, description, labels, project or organization context, and optional attachment uploads appended as markdown links.
Instructions
Create a new issue in PostgresAI. Local files passed via 'attachments' are uploaded to PostgresAI storage and the resulting markdown links are appended to the issue description.
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": {
"title": "<title>"
},
"name": "create_issue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| debug | No | Enable verbose debug logs | |
| title | Yes | Issue title (required) | |
| labels | No | Labels to apply to the issue | |
| org_id | No | Organization ID. Optional with a per-organization token (uses the config value); 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. | |
| is_hidden | No | Create as a hidden, staff-internal issue (PostgresAI staff only; same as CLI --hidden) | |
| project_id | No | Project ID to associate the issue with | |
| attachments | No | Local file paths to upload and append as markdown links to the description (images render inline) | |
| description | No | Issue description (supports \n as newline) |