Skip to content
Back to skills

Browser Use

ASecurity

Control Cradle's in-app browser via MCP tools. Use when the Claude Agent needs to navigate websites, click elements, type text, take screenshots, read page content, or inspect DOM structure within the Cradle desktop app's embedded browser panel. Triggers on "open URL", "navigate to", "click the button", "fill the form", "take a screenshot", "what's on the page", "scroll down", "wait for element", "press Enter". This is for the IN-APP browser only — not for external browser automation. Invoke ...

  • 92 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 25, 2026
ai-agentsjavascriptjavanodeexpress

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned November 25, 2026

npx -y skills add wibus-wee/cradle-app --skill browser-use --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Browser Use?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Browser Use
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wibus-wee-browser-use/badge)](https://www.skillsdirectory.com/skills/wibus-wee-browser-use)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cradle-plugin-browser-use
description: Control Cradle's in-app browser via MCP tools. Use when the Claude Agent needs to navigate websites, click elements, type text, take screenshots, read page content, or inspect DOM structure within the Cradle desktop app's embedded browser panel. Triggers on "open URL", "navigate to", "click the button", "fill the form", "take a screenshot", "what's on the page", "scroll down", "wait for element", "press Enter". This is for the IN-APP browser only — not for external browser automation. Invoke as /cradle-plugin-browser-use.
---

# Browser Use — Cradle In-App Browser Control

## Overview

The Browser Use plugin gives Claude Agent direct control over Cradle's embedded browser panel (the `<webview>` in the desktop app). It uses Chrome DevTools Protocol (CDP) for real input events — clicks, keystrokes, and scrolls behave exactly as if a human performed them.

## Available MCP Tools

### Navigation & Page

| Tool | Description | Key Parameters |
|------|-------------|----------------|
| `browser_navigate` | Navigate to a URL | `url` (required), `tabId` |
| `browser_screenshot` | Capture page screenshot (PNG base64) | `fullPage`, `tabId` |
| `browser_get_text` | Get text content of page or element | `selector`, `tabId` |
| `browser_dom_snapshot` | Get accessibility tree (semantic nodes) | `tabId` |
| `browser_eval` | Execute arbitrary JavaScript expression | `expression` (required), `tabId` |

### Interaction

| Tool | Description | Key Parameters |
|------|-------------|----------------|
| `browser_click` | Click an element (real mouse event) | `selector` (required), `tabId` |
| `browser_type` | Type text into a focused element | `selector` (required), `text` (required), `tabId` |
| `browser_hover` | Hover over an element | `selector` (required), `tabId` |
| `browser_scroll` | Scroll page or element | `direction` (required: up/down/left/right), `amount`, `selector`, `tabId` |
| `browser_keyboard` | Press key or key combination | `key` (required), `modifiers` (array: ctrl/alt/shift/meta), `tabId` |

### Tab Management

| Tool | Description | Key Parameters |
|------|-------------|----------------|
| `browser_tabs_list` | List all open tabs | (none) |
| `browser_tabs_new` | Open a new browser tab and optionally navigate it | `url` |
| `browser_tabs_close` | Close a browser tab by ID | `tabId` |
| `browser_wait_for_selector` | Wait for element to appear | `selector` (required), `timeout` (ms, default 5000), `tabId` |

## Workflow Pattern

```
1. Open or navigate to URL
2. Wait for key element (if needed)
3. Read page structure (dom_snapshot or get_text)
4. Interact (click, type, scroll)
5. Verify result (screenshot or get_text)
```

## Example Sequences

### Fill a form and submit

```
browser_tabs_new → url: "https://example.com/login"
browser_wait_for_selector → selector: "input[name=email]"
browser_click → selector: "input[name=email]"
browser_type → selector: "input[name=email]", text: "user@example.com"
browser_click → selector: "input[name=password]"
browser_type → selector: "input[name=password]", text: "secret"
browser_click → selector: "button[type=submit]"
browser_wait_for_selector → selector: ".dashboard"
```

### Read and understand a page

```
browser_navigate → url: "https://example.com/docs"
browser_dom_snapshot → (returns accessibility tree with roles, names, values)
browser_get_text → selector: "main" (get text content of main area)
```

### Scroll and find content

```
browser_navigate → url: "https://example.com/long-page"
browser_scroll → direction: "down", amount: 500
browser_screenshot → fullPage: false
browser_get_text → selector: ".target-section"
```

## Key Details

- **Selectors**: Standard CSS selectors (e.g., `#id`, `.class`, `button[type=submit]`, `a[href*=login]`)
- **Real events**: Click and type use CDP Input domain — they trigger all event listeners, work with CSP, and behave identically to human interaction
- **Accessibility tree**: `browser_dom_snapshot` returns semantic nodes with `role`, `name`, `value`, `description` — great for understanding page structure without needing screenshots
- **Tab management**: `browser_tabs_new` returns a tab ID. Pass that `tabId` to follow-up commands when working across multiple pages.
- **Session isolation**: Every tool call is bound by Cradle to the chat session that launched the MCP server. Tabs from other sessions are neither listed nor addressable.
- **Timeouts**: `browser_wait_for_selector` defaults to 5000ms. Increase for slow-loading pages.

## Limitations

- Only works when Cradle desktop app is running with browser panel open
- No cookie/storage manipulation (use `browser_eval` with `document.cookie` if needed)
- No network interception or request mocking
- Screenshots are PNG only

Files in this skill

  • SKILL.md4.7 KB
  • assets/icon.svg730 B
  • package.json1.9 KB
  • src/browser-commands.test.ts4 KB
  • src/browser-commands.ts16.4 KB
  • src/desktop.test.ts10 KB
  • src/desktop.ts22.5 KB
  • src/mcp-server.ts14.8 KB
  • src/protocol.test.ts1.3 KB
  • src/protocol.ts8.2 KB
  • src/server.ts1.1 KB
  • tsconfig.json238 B
  • vite.config.ts761 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.