get_element_context
Fetch complete context for one UI element—HTML, page, computed styles, ranked source files, and an edit prompt—before changing it. Use a stored comment thread or the current live selection.
Instructions
Full context for one element: the element, the page, its key computed styles, the ranked source files that probably render it, and a ready-made edit prompt. Pass thread_id to work from a stored comment, or nothing to use the latest live selection. Call this before editing anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | No | Work from a stored comment instead of a live selection. | |
| selection_id | No | A specific selection by correlation id (see get_selection_history). Omit for the most recent. | |
| include_prompt | No | Include the edit prompt. Defaults to true. |