Receber por email
← Voltar para o catálogo

design-mode

Activate or deactivate the visual Design Mode overlay on a web page in the browser. Use when the user says 'activate design mode', 'turn on design mode', 'start design mode', 'inject overlay', 'enable element inspection', or 'deactivate design mode', 'turn off design mode', 'remove overlay'.

8estrelas
Atualizado há 2 meses

Ver no GitHub ↗

Como adicionar

/plugin marketplace add harshkedia177/design-mode

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/design-mode/svg)](https://www.skillteca.com.br/skills/design-mode)

Alerta por categoria

Receba novas skills de Design e Frontend toda segunda

1 email curto, só com as skills novas de Design e Frontend. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Design Mode — Activate/Deactivate Overlay

Inject or remove the Design Mode visual overlay on the current browser page.

Activation

Step 1: Search for and call the MCP activate tool

IMPORTANT: The tool may be deferred. Use ToolSearch first to find it:

  • Search for "design-mode activate" using ToolSearch
  • The tool name is either mcp__design-mode__activate (user MCP) or mcp__plugin_design-mode_design-mode__activate (plugin MCP)
  • Call whichever one exists with an optional url parameter

This connects to Chrome via CDP and injects the overlay. If it succeeds, report the element count and stop.

Step 2: ONLY if the MCP tool doesn't exist at all

Fall back to manual injection:

  1. Read the overlay script: search for **/design-mode/scripts/overlay.js
  2. Inject via any available browser MCP: preview_eval → javascript_tool → execute_javascript
  3. Take a screenshot to confirm

Do NOT skip to the fallback just because Chrome has a blank tab. The MCP activate tool accepts a url parameter to navigate first.

After Activation

Report:

  • Element count
  • Ctrl+Shift+D to toggle
  • Click to annotate, Shift+click for multi-select
  • "Copy to Claude" copies annotations to clipboard

Deactivation

  1. Call mcp__design-mode__deactivate (or mcp__plugin_design-mode_design-mode__deactivate)
  2. Fallback: execute window.__designMode._destroy() via browser MCP

Viewport Resize

  • mcp__design-mode__resize_viewport with width parameter
  • mcp__design-mode__reset_viewport to restore defaults

Connection

For Chrome connection details, see ../references/connection.md.

Compartilhar X LinkedIn