sendbird/stave/lens-inspect
Claude Code and agent skill by sendbird/stave
- community
Checking that the SKILL.md file is still in the repository.
Use the Lens built-in browser to inspect a running web application. Trigger when the request involves previewing a page, taking screenshots, reading DOM, checking console errors, picking elements to locate source code, or comparing rendered output to a design spec.
Install
npx vskill@latest install sendbird/stave/lens-inspectSKILL.md
Lens Inspect
Inspect and interact with a live web application through Stave's built-in browser panel.
What is Lens?
Lens is a per-workspace embedded browser backed by Electron's WebContentsView. AI agents can use it hidden through MCP, while users can reveal the same session in a workspace tab when interaction or visual confirmation is needed.
Session Behavior
- MCP tools reuse the visible or most recently used Lens tab for the workspace.
- If no session exists, any operational tool creates a hidden
defaultsession automatically. Callingstave_lens_open_sessionfirst is optional. - Stave applies the user's Agent Activity setting when visual inspection or page interaction starts: show beside the task, add a background tab, or let the agent decide.
- Automatic presentation is limited to screenshot, inspect/measure, click/type, live style edit, and saved-account fill. Navigation, redirects, snapshots, DOM/log reads, and generic evaluation do not reveal a hidden session by themselves.
- If a click navigates, the click is the presentation boundary. Continue in the same session; do not explicitly present it again just because the URL changed.
- Use
stave_lens_present_sessiononly when the user must immediately interact with the page, sign in, or explicitly asks to see the result. - Revealing a hidden session preserves its URL, history, cookies, and page state.
- Users can also open Lens with the Globe icon or the Command Palette action Show Lens.
MCP Tools
All tools require a workspaceId parameter.
| Tool | Purpose | |
|---|---|---|
stave_lens_open_session | Explicitly open or reuse a session (optional) | |
stave_lens_navigate | Load a URL, automatically acquiring a session | |
stave_lens_present_session | Reveal the same session for user interaction | |
stave_lens_screenshot | Capture viewport or full-page PNG | |
stave_lens_get_html | Get outerHTML of page or a selector | |
stave_lens_get_text | Get textContent of a selector | |
stave_lens_evaluate | Run JavaScript in page context | |
stave_lens_get_console | Read buffered console messages (up to 200) | |
stave_lens_get_network | Read buffered network requests (up to 200) | |
stave_lens_click | Click an element by CSS selector | |
stave_lens_type | Type text into a focused or specified element | |
stave_lens_snapshot | Get accessibility tree snapshot | |
stave_lens_inspect | Get an element's box model (content size, padding, border, margin per side) | |
stave_lens_measure | Measure the pixel gap between two elements (Figma-style spacing) |
Element Picker
The crosshair button in the address bar activates the element picker.
- Hover over elements to highlight them with a blue overlay.
- Click an element to capture its info.
- Press Escape to cancel.
Captured data is inserted into the active task's prompt draft:
- CSS selector, tag, ID, classes
- Bounding box and computed styles
- Truncated outerHTML and textContent
- Source search hints (AI-friendly grep patterns)
- React
_debugSourcefile:line (when enabled in Settings)
Source Code Mapping
Configure in Settings > Browser > Lens > Source Code Mapping.
Heuristic Search (default: on)
The AI uses distinctive class names, text content, IDs, and component-style class patterns from the picked element to search your codebase with grep or file-search tools. Works with any framework.
React _debugSource (default: off)
When your application runs in React dev mode with @babel/plugin-transform-react-jsx-source (enabled by default in Vite React plugin, CRA, and Next.js dev), the picker extracts the exact fileName:lineNumber from React fiber internals. This gives 100% accurate source location when available, with automatic fallback to heuristic search.
Figma Design Comparison Workflow
Combine Lens with a Figma MCP server for design-to-code verification:
Tips
- Console/network logs are ring-buffered at 200 entries each. Check them early if debugging.
- Full-page screenshots use CDP
Page.getLayoutMetricsto capture beyond the viewport. - Accessibility snapshots (
stave_lens_snapshot) give a compact page structure summary — useful when full HTML is too verbose. - Element picker works best on non-minified, dev-build pages where class names are meaningful.
- Session persists across panel switches. Switching to Explorer and back to Lens keeps your browsing state.
- The default project profile shares cookies and storage across a project's workspaces. The workspace profile setting provides isolation when needed.
Avoid
- Don't use
file://orchrome://protocols — they are blocked for security. - Don't rely on
_debugSourcein production builds — it's only available in dev mode. - Don't screenshot without navigating first —
about:blankyields an empty image.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/lens-inspect/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sendbird/stave/lens-inspect)