Read the DOM context of a bug
feedbug_get_html_contextRetrieve the CSS selector path, framework component tree, and full DOM context of the element clicked during a bug report to trace the issue directly to its source component.
Instructions
Read the HTML and DOM context captured at the instant the tester clicked on the bug.
Returns: a JSON object with the CSS selector path, the framework component path (Vue, React, Angular, Svelte), the clicked element itself (tag, id, classes, text, attributes), its ancestors and its siblings. Use when: you need to map a report onto a source file — this is the shortest path from a bug to the component that renders it. Do not use when: the bug is about a behaviour rather than one element; feedbug_get_replay shows what the tester actually did. Behavior: read-only and idempotent, scoped by FEEDBUG_PROJECT_KEY to a single project. A report captured without DOM context errors with "No HTML context captured for this bug" rather than returning an empty tree. Component paths survive a Vue build but are often absent from minified React, in which case fall back to the selector path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Bug UUID as returned by feedbug_list_bugs, or the tracker identifier such as PRE-13, matched case-insensitively. Ids belonging to another project are rejected. |