Ability to inspect an element's HTML and CSS using a CSS selector#163
Closed
Munawwar wants to merge 18 commits intoAgentDeskAI:mainfrom
Closed
Ability to inspect an element's HTML and CSS using a CSS selector#163Munawwar wants to merge 18 commits intoAgentDeskAI:mainfrom
Munawwar wants to merge 18 commits intoAgentDeskAI:mainfrom
Conversation
cpjet64
referenced
this pull request
in cpjet64/WebAI-MCP
May 25, 2025
- Add inspectElementsBySelector method for CSS selector-based element inspection - Include computed styles support with configurable properties - Add Chrome debugging API integration for enhanced element inspection - Maintain compatibility with existing storage functionality (cookies, localStorage, sessionStorage) - Resolve merge conflicts between storage and element inspection features
Author
|
@tedjames any interest in this feature? My personal use case: I use it from time to time to let AI migrate code (especially the CSS) from material UI to my own UI components. Since MUI's CSS generation + page level and global level CSS overrides is not very obvious via code, letting AI inspect the real elements improves the quality of code it generates. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gives agents ability to inspect an element's HTML and CSS using a CSS selector. It is useful during local development.
This PR is currently not clean at all, but would you be interested in this feature? If you are interested I can start cleaning up and preparing a better PR.
I built it to let cursor debug some complex css-in -js issues happening in a 3rd party UI library.