Unfortunately, the DevTools API Extension does not display a context menu from the DevTools internal source code. Sometimes the API documentation does not have some available functions / properties, so I confirmed this with
alert(Object.getOwnPropertyNames(chrome.devtools.panels.elements));
It only returns onSelectionChanged,createSidebarPane , which is consistent with the documentation.
The WebInspector object in the DevTools source code has a populateNodeContextMenu function on WebInspector.ElementsTreeElement.prototype , but it cannot be accessed through the DevTools extension APIs. It is completely divided.

Gideon pyzer
source share