Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

moli

БесплатноБез исполняемых скриптовНе проверен

Drive Moli (`moli`), Lexmount's open-source headless browser for AI agents, built around on-demand rendering: real JavaScript, DOM, and CSS by default, with…

akillnessот akillness★ 63 звезды на GitHub

Об этом скилле

Moli — on-demand-rendering headless browser for agents

Moli is Lexmount's open-source headless browser kernel for AI agents: it executes real JavaScript, maintains a real DOM, and exposes real browser APIs by default, but only computes layout or renders pixels when a request actually needs them (--layout). Use the moli CLI for one-shot page extraction/capture, or moli serve to expose a single CDP / WebDriver Classic / WebDriver BiDi endpoint that Playwright, Puppeteer, or raw clients can connect to — no bundled Chromium, ChromeDriver, or geckodriver required.

When to use this skill

  • Extracting a live, JavaScript-rendered page as Markdown, HTML, JSON, or a compact semantic tree (moli fetch) for research, RAG, or scraping
  • Capturing a viewport screenshot or paginated PDF of a rendered page (moli fetch --layout --dump screenshot|pdf)
  • Running a small, bounded, same-origin crawl instead of mirroring a site
  • Starting moli serve as a CDP/WebDriver endpoint for Playwright/Puppeteer/raw CDP clients, replacing a local Chromium install
  • Diagnosing readiness, network, frame, or TLS/proxy issues on a dynamically rendered page (--wait-until, --trace-network, --wait-response-*)
  • Installing/updating the prebuilt moli binary or checking moli version

When not to use this skill

  • Pixel-perfect Chrome/Chromium rendering parity, GPU compositing, full Canvas/WebGL/media playback, or a persistent GUI window → Moli intentionally does not target these; use a full Chromium-based browser instead
  • Full CDP/WebDriver protocol coverage identical to Chrome → Moli covers selected protocol surface and returns explicit unsupported errors instead of silent fallbacks
  • General Playwright/Puppeteer scripting where the target already runs a local Chrome/Chromium and no on-demand-rendering benefit is needed
  • Bypassing authentication, paywalls, CAPTCHAs, or access controls on a target site — out of scope regardless of tool

Instructions

Step 1: Install (or locate) the moli binary

Download and verify the prebuilt release archive (or build from source with cargo build --release) from the official GitHub Releases page (https://github.com/lexmount/moli/releases):

# Download installer/release artifact and inspect before running
curl --proto '=https' --tlsv1.2 -fsSLO \
  https://github.com/lexmount/moli/releases/latest/download/moli-installer.sh
less moli-installer.sh
sh moli-installer.sh

Resolve moli from PATH first; only install if it is missing. Default install locations are ~/.local/bin/moli (Linux/macOS) and %LOCALAPPDATA%\Moli\bin\moli.exe (Windows). Verify with moli version.

Step 2: Pick one-shot extraction vs. a long-running server

  • One page, one artifact (Markdown/HTML/JSON/semantic-tree/screenshot/PDF) → moli fetch (Step 3)
  • Ongoing browser automation from Playwright/Puppeteer/raw CDP or WebDriver → moli serve (Step 5)

Step 3: Fetch a page with the right output shape and readiness signal

moli fetch --dump markdown --wait-until done "https://example.com"
moli fetch --dump semantic_tree_text --wait-selector "main article" "https://example.com/news"
moli fetch --dump json --trace-network "https://example.com/api-driven"

Start with --wait-until done. Prefer a specific --wait-selector / --wait-response-* signal over a fixed --delay-ms for client-rendered pages. See references/commands.md for the full readiness/output flag table.

Step 4: Enable layout only when the result needs pixels

moli fetch --layout --dump screenshot "https://example.com" > page.png
moli fetch --layout --dump pdf "https://example.com" > page.pdf

--layout is the only switch between LayoutPolicy::Mock (default, no real layout/paint) and LayoutPolicy::OnDemand (real geometry, hit-testing, screenshots, screencast). Add --resource/--image/--font only when visual fidelity genuinely depends on them.

Step 5: Start the automation server for Playwright/Puppeteer/CDP/WebDriver

moli serve                       # DOM-first, no layout
moli serve --layout              # + real geometry/screenshots
moli serve --layout --resource   # + all optional resource families

Probe http://127.0.0.1:9222/json/version before connecting a client, then attach with the client's existing remote/connectOverCDP API:

import { chromium } from "playwright";

const browser = await chromium.connectOverCDP("http://127.0.0.1:9222");
const context = browser.contexts()[0];
const page = context.pages()[0] ?? await context.newPage();

await page.goto("https://example.com");
console.log(await page.locator("body").innerText());

await browser.close();

Keep the binding on 127.0.0.1 unless the user explicitly needs remote access. Use a unique port per parallel run.

Step 6: Manage a crawl deliberately, don't mirror the site

For multi-page tasks, queue URLs outside Moli: stay on-ori

Полный SKILL.md на GitHub

Установить moli в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Write
Edit
Glob
Grep

Вложенные файлы

references/commands.md

FAQ

Что делает скилл moli?

Drive Moli (`moli`), Lexmount's open-source headless browser for AI agents, built around on-demand rendering: real JavaScript, DOM, and CSS by default, with layout and pixels computed only when explicitly requested via `--layout`. Use when the user wants to fetch/extract a live JavaScript-rendered page as Markdown/HTML/JSON/semantic-tree, capture a screenshot or PDF, run a small bounded crawl, start a CDP/WebDriver automation server for Playwright/Puppeteer, replace a Chromium/ChromeDriver dependency, or diagnose readiness/network/frame issues on a rendered page. Triggers on: "moli fetch", "moli serve", "headless browser for agents", "on-demand rendering browser", "CDP server without Chrome", "structure-first web scraping", "Lexmount browser", "moli-webfetch", "moli-cdp-server".

Как установить скилл moli?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл moli запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить moli с