1.8 KiB
1.8 KiB
name, description, metadata
| name | description | metadata | ||||
|---|---|---|---|---|---|---|
| bugpack-view-bug | View detailed bug context from BugPack including screenshots, environment info, and related files. Use when: user wants to see bug details, screenshots, or understand a specific bug before fixing. NOT for: listing all bugs (use bugpack-list-bugs) or directly fixing bugs (use bugpack-fix-bug). |
|
BugPack - View Bug Details
Fetch full bug context from BugPack, including description, screenshots, environment info, and related files.
Instructions
- Call
GET http://localhost:3456/api/bugs/:idto get the full bug details. - The response includes:
title,description,status,prioritypagePath— the page/route where the bug occursdevice,browser— environment inforelatedFiles— array of file paths related to the bugscreenshots— array of screenshot objects withid,name,original_path,annotated_path
- Display the bug info in a structured format.
- If the bug has screenshots, mention them and offer to show annotated versions.
- If
relatedFilesare listed, use them to locate relevant source code.
Example
GET http://localhost:3456/api/bugs/abc-123
Response:
{
"ok": true,
"data": {
"id": "abc-123",
"title": "Button click not working",
"description": "The submit button on the login page does not respond to clicks",
"status": "open",
"priority": "high",
"pagePath": "/login",
"device": "Desktop",
"browser": "Chrome 120",
"relatedFiles": ["src/pages/Login.tsx", "src/components/SubmitButton.tsx"],
"screenshots": [
{
"id": "ss-001",
"name": "login-bug.png",
"original_path": "/uploads/MyProject/original.png",
"annotated_path": "/uploads/MyProject/annotated.png"
}
]
}
}