-
Notifications
You must be signed in to change notification settings - Fork 383
Ability to inspect an element's HTML and CSS using a CSS selector #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Munawwar
wants to merge
16
commits into
AgentDeskAI:main
Choose a base branch
from
Munawwar:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
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
@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. |
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.