تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

web-mcp

بواسطة slemo54

Web & Frontend Development
466التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

WebMCP - Enable AI agents to interact with your web applications through structured tools.

الوصف

ما الذي تفعله هذه المهارة

WebMCP is a standard for exposing web application functionality to AI agents through structured, typed tools. Pages register named tools with JSON Schema definitions that agents discover and call via navigator.modelContext, instead of using DOM selectors or screen scraping. A CLI, React hooks, and an event bridge pattern handle tool registration and lifecycle in Next.js apps.

Agents get a stable, typed contract that survives UI redesigns, unlike CSS selectors or screenshot parsing.

متى تستخدمها

  • Letting an AI agent search products on an e-commerce site without DOM access
  • Exposing cart management actions as typed, callable tools for agents
  • Building an agent-navigable dashboard with filter and export tools
  • Adding structured agent access to a blog's search and comment features
  • Wrapping internal web app actions so agents can trigger them reliably

مثال على سير العمل

الإدخال

User asks: Add the blue sneakers to my cart

الوكيل
  1. 1

    Reads available tools from navigator.modelContext on the current page

  2. 2

    Calls searchProducts with query 'blue sneakers'

  3. 3

    Identifies the product ID from returned results

  4. 4

    Calls addToCart with the product ID

  5. 5

    Receives tool completion event confirming the item was added

الإخراج

Blue sneakers added to cart successfully

التثبيت

clawhub install slemo54/web-mcp

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط