Logo de Browser Eyeballs

Browser Eyeballs

Comunidade
c-kick
browser-eyeballs

Browse and visually inspect webpages using an available browser automation tool, preferably headless Chromium via Puppeteer MCP. Use when you need to see a page, interact with a web UI, extract information that a plain fetch cannot get (JS-rendered content, SPAs, authenticated pages), or when the user wants to show you something in a browser.

Visão geral

Publicado porc-kick
Repositóriohnl-agent-skills
Nome da habilidadebrowser-eyeballs
Estrelas
56
Forks
4
Arquivos incluídos
Somente instruções
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por c-kick no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Browser Eyeballs no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/c-kick/hnl-agent-skills/tree/master/browser-eyeballs
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/c-kick/hnl-agent-skills.git /tmp/hnl-agent-skills
mkdir -p .claude/skills
cp -r /tmp/hnl-agent-skills/browser-eyeballs .claude/skills/browser-eyeballs
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Browser Eyeballs em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Browser Eyeballs automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Browser Eyeballs não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Browser Eyeballs

Visually browse webpages using the active agent's available browser automation tools. Prefer a headless Chromium instance via the Puppeteer MCP server when available.

When to Use

  • The user says "look at this page", "check this UI", "show you something"
  • You need to see JS-rendered or SPA content that a plain fetch returns as empty/useless
  • You need to interact with a page (click, fill forms, scroll) to reach content
  • You need to inspect visual layout, styling, or rendering
  • You need to navigate an authenticated web app
  • You need a screenshot of a page for reference or debugging

Prerequisites

Use whichever browser automation is available in the current agent session. In Claude Code, this may be a Puppeteer MCP server. In Codex, this may be Playwright or another browser/screenshot tool exposed by the environment.

For Claude Code, the Puppeteer MCP server can be configured in ~/.claude.json under mcpServers.puppeteer. It runs headless Chromium inside Docker (mcp/puppeteer-remote image).

The recommended MCP config uses bash -c to automatically kill stale containers from previous sessions before starting a new one. Without this, a leftover container holding port 9222 will silently prevent MCP connection on the next session (and this cannot be fixed mid-session).

json
"puppeteer": {
  "type": "stdio",
  "command": "bash",
  "args": [
    "-c",
    "docker rm -f $(docker ps -aq --filter ancestor=mcp/puppeteer-remote) 2>/dev/null; exec docker run -i --rm --init -p 9222:9223 -e DOCKER_CONTAINER=true -e 'PUPPETEER_LAUNCH_OPTIONS={\"headless\":true,\"args\":[\"--remote-debugging-port=9222\",\"--remote-allow-origins=*\"]}' mcp/puppeteer-remote"
  ],
  "env": {}
}

If no browser automation tools are available, tell the user that browser inspection is not configured in this agent session and explain which capability is missing.

Workflow

Step 1: Navigate

With Puppeteer MCP, the first call in every session must include launchOptions. Subsequent calls don't need them. If using a different browser tool, use that tool's normal navigation/open-page flow.

mcp__puppeteer__puppeteer_navigate({
  url: "<target URL>",
  allowDangerous: true,
  launchOptions: {
    headless: true,
    args: ["--no-sandbox", "--remote-debugging-port=9222", "--remote-allow-origins=*"]
  }
})
  • allowDangerous: true is required for local/private network URLs (192.168.x.x, localhost, .local, etc.)
  • For public HTTPS URLs, allowDangerous can be omitted but doesn't hurt

Step 2: Wait and Screenshot

After navigation, take a screenshot to see the page:

mcp__puppeteer__puppeteer_screenshot()

The browser tool should return a screenshot inline or save one where the agent can inspect it.

Step 3: Interact (if needed)

Use the available browser tools to interact with the page. With Puppeteer MCP, the common tools are:

  • puppeteer_click — click an element by CSS selector
  • puppeteer_fill — type into an input field (selector + value)
  • puppeteer_evaluate — run arbitrary JavaScript in the page context (for complex interactions, shadow DOM traversal, extracting data, scrolling, waiting)

After each interaction, take another screenshot to verify the result.

Step 4: Extract Information

Two approaches depending on what's needed:

Visual inspection — just read the screenshot. Describe what you see.

Data extraction — use puppeteer_evaluate to pull structured data:

js
// Example: extract all table rows
puppeteer_evaluate({
  script: `JSON.stringify([...document.querySelectorAll('table tr')].map(r => [...r.cells].map(c => c.textContent.trim())))`
})

Step 5: Save Screenshots (if needed)

The Puppeteer MCP screenshot tool shows images inline but doesn't save to disk. If the user needs a persistent screenshot, use the active tool's screenshot-save option. With Puppeteer MCP, you can capture via CDP and save to ~/screenshots/:

js
puppeteer_evaluate({
  script: `
    const cdp = await page.target().createCDPSession();
    const {data} = await cdp.send('Page.captureScreenshot', {format: 'png'});
    require('fs').writeFileSync('/tmp/screenshot.png', Buffer.from(data, 'base64'));
  `
})

Then copy from the container, or just rely on the inline screenshot for most use cases.

Tips and Patterns

Shadow DOM

Many web components (Home Assistant, Salesforce, etc.) use shadow DOM. Regular selectors won't reach inside. Use puppeteer_evaluate with manual traversal:

js
document.querySelector('my-component').shadowRoot.querySelector('.inner-element')

Waiting for Content

SPAs often load content asynchronously. If the screenshot shows a loading spinner, wait:

js
puppeteer_evaluate({
  script: `await new Promise(r => setTimeout(r, 2000))`
})

Or wait for a specific selector:

js
puppeteer_evaluate({
  script: `await document.querySelector('.content') || await new Promise(r => { const o = new MutationObserver(() => { if (document.querySelector('.content')) { o.disconnect(); r(); } }); o.observe(document.body, {childList: true, subtree: true}); setTimeout(r, 5000); })`
})

Viewport Size

Default viewport is typically 1280x720. To change it:

js
puppeteer_evaluate({ script: `await page.setViewport({width: 1920, height: 1080})` })

Multiple Pages / Navigation

Just call puppeteer_navigate again with a new URL. No need to re-pass launchOptions after the first call.

Network Considerations

The Chromium instance runs inside a Docker container on bridge networking. This means:

  • localhost inside the container is the container itself, not the host
  • To reach services on the host machine, use the host's LAN IP (e.g., 192.168.1.199)
  • Public URLs work normally

Troubleshooting

Browser tools not available

Some agents only expose browser tools at session startup. If no browser automation or screenshot tools are available, the browser integration failed to start or is not configured. This often cannot be fixed mid-session.

If you're using the recommended MCP config (with bash -c cleanup), stale containers are cleaned up automatically. If tools are still missing after a fresh session start:

  1. Check for stale containers manually: docker ps -a --filter "ancestor=mcp/puppeteer-remote"
  2. For Claude Code, verify ~/.claude.json has the mcpServers.puppeteer entry (see Prerequisites for the recommended config)
  3. For Codex, verify the session/environment exposes a browser automation tool such as Playwright
  4. Check Docker is running if using the Docker-based Puppeteer MCP server: docker ps

Container starts but tools still missing

For Claude Code, check ~/.claude.json has mcpServers.puppeteer configured. The server must be defined at user level, not project level.

What This is NOT

  • Not a replacement for plain fetch/read tools — if you just need to read page content or an API response, those are faster and simpler
  • Not a testing framework — this is for ad-hoc visual inspection and interaction
  • Not persistent — the browser state (cookies, sessions) lives only as long as the MCP container runs

Perguntas frequentes

O que a habilidade de IA Browser Eyeballs faz?

Browse and visually inspect webpages using an available browser automation tool, preferably headless Chromium via Puppeteer MCP. Use when you need to see a page, interact with a web UI, extract information that a plain fetch cannot get (JS-rendered content, SPAs, authenticated pages), or when the user wants to show you something in a browser.

Por que usar Browser Eyeballs no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Browser Eyeballs é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Browser Eyeballs no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/c-kick/hnl-agent-skills/tree/master/browser-eyeballs. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Browser Eyeballs?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Browser Eyeballs?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Browser Eyeballs com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Browser Eyeballs é gratuita?

A habilidade é publicada no GitHub por c-kick. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇