ASD

Electron

Automatiza apps de escritorio Electron (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) usando agent-browser vía Chrome DevTools Protocol.

Oficial
Solicitabash(agent-browser:*)bash(npx agent-browser:*)
Estrellas
40.5k

en todo el repo

Actividad
40

0–100, la ruta de este skill

Actualizado
hace 4 meses

último commit aquí

Commits
0

últimos 90 días

Contexto
1.7k tok

126 tok en reposo

Paquete
1 archivo

7 KB

Instalar

Funciona con cualquier agente que lea SKILL.md

npx -y skills add vercel-labs/agent-browser --skill electron --agent claude-code

Se instala solo en este repositorio.

Este skill makes network requests.

Qué hace

  • Launches Electron apps with --remote-debugging-port enabled and connects agent-browser via CDP
  • Provides snapshot-interact workflow (snapshot, click, fill, screenshot) for native desktop apps
  • Manages multiple windows/webviews via `agent-browser tab` commands
  • Supports controlling multiple apps simultaneously using named sessions
  • Sets color scheme (e.g. dark) when connecting to preserve app appearance

Úsalo cuando

  • The user needs to automate or interact with an Electron desktop app like Slack, VS Code, Discord, Figma, Notion, or Spotify
  • Connecting to a running native app or testing an Electron application
  • Controlling windows, webviews, or extracting data from a desktop app

No lo uses cuando

    Qué lo activa

    Di cualquiera de estas frases y el agente debería cargar este skill.

    • Automatiza la app de Slack para enviar un mensaje
    • Conéctate a VS Code y haz una captura de pantalla
    • Controla la app de Discord con agent-browser
    • Extrae texto de la ventana de Notion

    SKILL.md

    En inglés

    Electron App Automation

    Automate any Electron desktop app using agent-browser. Electron apps are built on Chromium and expose a Chrome DevTools Protocol (CDP) port that agent-browser can connect to, enabling the same snapshot-interact workflow used for web pages.

    Core Workflow

    1. Launch the Electron app with remote debugging enabled
    2. Connect agent-browser to the CDP port
    3. Snapshot to discover interactive elements
    4. Interact using element refs
    5. Re-snapshot after navigation or state changes
    # Launch an Electron app with remote debugging
    open -a "Slack" --args --remote-debugging-port=9222
    
    # Connect agent-browser to the app
    agent-browser connect 9222
    
    # Standard workflow from here
    agent-browser snapshot -i
    agent-browser click @e5
    agent-browser screenshot slack-desktop.png
    

    Launching Electron Apps with CDP

    Every Electron app supports the --remote-debugging-port flag since it's built into Chromium.

    macOS

    # Slack
    open -a "Slack" --args --remote-debugging-port=9222
    
    # VS Code
    open -a "Visual Studio Code" --args --remote-debugging-port=9223
    
    # Discord
    open -a "Discord" --args --remote-debugging-port=9224
    
    # Figma
    open -a "Figma" --args --remote-debugging-port=9225
    
    # Notion
    open -a "Notion" --args --remote-debugging-port=9226
    
    # Spotify
    open -a "Spotify" --args --remote-debugging-port=9227
    

    Linux

    slack --remote-debugging-port=9222
    code --remote-debugging-port=9223
    discord --remote-debugging-port=9224
    

    Windows

    "C:\Users\%USERNAME%\AppData\Local\slack\slack.exe" --remote-debugging-port=9222
    "C:\Users\%USERNAME%\AppData\Local\Programs\Microsoft VS Code\Code.exe" --remote-debugging-port=9223
    

    Important: If the app is already running, quit it first, then relaunch with the flag. The --remote-debugging-port flag must be present at launch time.

    Connecting

    # Connect to a specific port
    agent-browser connect 9222
    
    # Or use --cdp on each command
    agent-browser --cdp 9222 snapshot -i
    
    # Auto-discover a running Chromium-based app
    agent-browser --auto-connect snapshot -i
    

    After connect, all subsequent commands target the connected app without needing --cdp.

    Tab Management

    Electron apps often have multiple windows or webviews. Use tab commands to list and switch between them:

    # List all available targets (windows, webviews, etc.)
    agent-browser tab
    
    # Switch to a specific tab by index
    agent-browser tab 2
    
    # Switch by URL pattern
    agent-browser tab --url "*settings*"
    

    Webview Support

    Electron <webview> elements are automatically discovered and can be controlled like regular pages. Webviews appear as separate targets in the tab list with type: "webview":

    # Connect to running Electron app
    agent-browser connect 9222
    
    # List targets -- webviews appear alongside pages
    agent-browser tab
    # Example output:
    #   0: [page]    Slack - Main Window     https://app.slack.com/
    #   1: [webview] Embedded Content        https://example.com/widget
    
    # Switch to a webview
    agent-browser tab 1
    
    # Interact with the webview normally
    agent-browser snapshot -i
    agent-browser click @e3
    agent-browser screenshot webview.png
    

    Note: Webview support works via raw CDP connection.

    Common Patterns

    Inspect and Navigate an App

    open -a "Slack" --args --remote-debugging-port=9222
    sleep 3  # Wait for app to start
    agent-browser connect 9222
    agent-browser snapshot -i
    # Read the snapshot output to identify UI elements
    agent-browser click @e10  # Navigate to a section
    agent-browser snapshot -i  # Re-snapshot after navigation
    

    Take Screenshots of Desktop Apps

    agent-browser connect 9222
    agent-browser screenshot app-state.png
    agent-browser screenshot --full full-app.png
    agent-browser screenshot --annotate annotated-app.png
    

    Extract Data from a Desktop App

    agent-browser connect 9222
    agent-browser snapshot -i
    agent-browser get text @e5
    agent-browser snapshot --json > app-state.json
    

    Fill Forms in Desktop Apps

    agent-browser connect 9222
    agent-browser snapshot -i
    agent-browser fill @e3 "search query"
    agent-browser press Enter
    agent-browser wait 1000
    agent-browser snapshot -i
    

    Run Multiple Apps Simultaneously

    Use named sessions to control multiple Electron apps at the same time:

    # Connect to Slack
    agent-browser --session slack connect 9222
    
    # Connect to VS Code
    agent-browser --session vscode connect 9223
    
    # Interact with each independently
    agent-browser --session slack snapshot -i
    agent-browser --session vscode snapshot -i
    

    Color Scheme

    The default color scheme when connecting via CDP may be light. To preserve dark mode:

    agent-browser connect 9222
    agent-browser --color-scheme dark snapshot -i
    

    Or set it globally:

    AGENT_BROWSER_COLOR_SCHEME=dark agent-browser connect 9222
    

    Troubleshooting

    "Connection refused" or "Cannot connect"

    • Make sure the app was launched with --remote-debugging-port=NNNN
    • If the app was already running, quit and relaunch with the flag
    • Check that the port isn't in use by another process: lsof -i :9222

    App launches but connect fails

    • Wait a few seconds after launch before connecting (sleep 3)
    • Some apps take time to initialize their webview

    Elements not appearing in snapshot

    • The app may use multiple webviews. Use agent-browser tab to list targets and switch to the right one

    Cannot type in input fields

    • Try agent-browser keyboard type "text" to type at the current focus without a selector
    • Some Electron apps use custom input components; use agent-browser keyboard inserttext "text" to bypass key events

    Supported Apps

    Any app built on Electron works, including:

    • Communication: Slack, Discord, Microsoft Teams, Signal, Telegram Desktop
    • Development: VS Code, GitHub Desktop, Postman, Insomnia
    • Design: Figma, Notion, Obsidian
    • Media: Spotify, Tidal
    • Productivity: Todoist, Linear, 1Password

    If an app is built with Electron, it supports --remote-debugging-port and can be automated with agent-browser.

    Reproducido de vercel-labs/agent-browser bajo licencia Apache-2.0. Leer esta página en markdown.

    Archivos

    1 archivo en el paquete. Solo se lee SKILL.md al activarse — las referencias se cargan si el skill decide que las necesita.

    Antes de instalar

    Requiere agent-browser instalado y lanzar la app Electron con la bandera --remote-debugging-port.

    Detalles

    Licencia
    Apache-2.0
    Recursos incluidos
    Solo SKILL.md
    Código fuente
    Ver SKILL.md

    Más de vercel-labs/agent-browser

    Este repo incluye 8 skills. Si instalas uno, normalmente ya tienes los demás.

    Core

    40.5k

    Guía central de uso de agent-browser: snapshots con refs, navegación, interacción con elementos, extracción de datos, capturas, pestañas, formularios, auth, esperas y sesiones paralelas.

    Costo de contexto al activarse
    7.4k tok
    Tamaño del paquete
    14 archivos
    Última actualización
    hace 3 días
    Oficialherramientas desarrollo

    CLI de automatización de navegador para agentes de IA: navega, rellena formularios, hace clic, captura pantallas, extrae datos, prueba apps y automatiza Electron o Slack.

    Costo de contexto al activarse
    841 tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 26 días
    Oficialtesting qa

    Reverse-engineerea la API interna de un sitio grabando el tráfico del navegador en un HAR, y genera un cliente o CLI standalone que llama a los endpoints sin necesitar navegador después.

    Costo de contexto al activarse
    1.3k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 26 días
    Oficialautomatizacion

    Ejecuta agent-browser + Chrome dentro de microVMs de Vercel Sandbox para automatización de navegador desde cualquier app desplegada en Vercel.

    Costo de contexto al activarse
    1.9k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    el mes pasado
    Oficialautomatizacion

    Dogfood

    40.5k

    Explora y prueba sistemáticamente una aplicación web para encontrar bugs y problemas de UX, generando un reporte con capturas paso a paso, videos de reproducción y pasos detallados por cada hallazgo.

    Costo de contexto al activarse
    2.7k tok
    Tamaño del paquete
    3 archivos
    Última actualización
    hace 4 meses
    Oficialtesting qa

    Ejecuta agent-browser en navegadores en la nube de AWS Bedrock AgentCore; úsalo para automatización de navegador respaldada por infraestructura AWS con credenciales AWS.

    Costo de contexto al activarse
    1k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 4 meses
    Oficialdevops infraestructura

    Skills relacionados

    Úsalo al empezar trabajo de feature que necesita aislamiento del workspace actual, o antes de ejecutar planes de implementación: asegura un workspace aislado vía herramientas nativas o fallback a git worktree.

    Costo de contexto al activarse
    1.7k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    el mes pasado
    herramientas desarrollo

    Úsala al crear nuevas skills, editar skills existentes o verificar que funcionan antes de desplegarlas.

    Costo de contexto al activarse
    6.6k tok
    Tamaño del paquete
    7 archivos
    Última actualización
    anteayer
    herramientas desarrollo

    Parte un plan, una spec o la conversación actual en tickets tracer-bullet, cada uno declarando sus aristas de bloqueo, publicados en el tracker configurado.

    Costo de contexto al activarse
    1.4k tok
    Tamaño del paquete
    2 archivos
    Última actualización
    hace 24 días
    herramientas desarrollo