You are on the editable version of MDN Web Docs

View as an MDN Web Docs user: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/devtools

Enables extensions to interact with the browser's Developer Tools. You can use this API to create Developer Tools pages, interact with the window that is being inspected, inspect the page network usage.

To use this API you need to have the "devtools" API permission specified in your manifest.json file. This permission can not be optional.

Interfaces

devtools.inspectedWindow
Interact with the window that Developer tools are attached to (inspected window). This includes obtaining the tab ID for the inspected page, evaluate the code in the context of the inspected window, reload the page, or obtain the list of resources within the page.
devtools.network
Obtain information about network requests associated with the window that the Developer Tools are attached to (the inspected window).
devtools.panels
Create User Interface panels that will be displayed inside User Agent Developer Tools.

Browser compatibility

No compatibility data found. Please contribute data for "webextensions.api.devtools" (depth: 1) to the MDN compatibility data repository.

Acknowledgements

This API is based on Chromium's chrome.downloads API.

Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.

Document Tags and Contributors

Contributors to this page: bershanskiy
Last updated by: bershanskiy,