Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

webmcp

bởi brunobuddy

Web & Frontend Development
1.2kLượt tải do clawskills.sh công bố
2Sao
1Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

This skill should be used when browsing or automating web pages that expose tools via the WebMCP API.

Mô tả

Kỹ năng này làm gì

WebMCP is a browser API that lets websites expose JavaScript functions as structured tools via window.navigator.modelContext. Agents discover and call these tools directly instead of scraping the DOM or simulating UI clicks. Tool sets are dynamic and may change as single-page apps update their state.

Calling structured tools registered by the page is more reliable than DOM scraping, which breaks when layouts or class names change.

Khi nào nên dùng

  • Adding items to a web app through its exposed tools without touching the UI
  • Triggering a checkout or purchase action on a WebMCP-enabled site
  • Re-discovering updated tool sets after navigating within a single-page app
  • Running confirmation-gated actions like deletions that require explicit user approval
  • Automating data entry on sites that expose structured input tools

Quy trình ví dụ

ĐẦU VÀO

User asks: Add a stamp named 'Penny Black' from 1840 to my collection

AGENT
  1. 1

    Navigate to the stamp collection web app

  2. 2

    Check window.navigator.modelContext to confirm WebMCP support

  3. 3

    Discover registered tools and locate the 'add-stamp' tool

  4. 4

    Invoke 'add-stamp' with { name: 'Penny Black', year: 1840 }

  5. 5

    Read the structured response and relay the confirmation to the user

ĐẦU RA

Stamp 'Penny Black' (1840) added to the collection

Cài đặt

clawhub install brunobuddy/webmcp

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết