← Back to WebMCP domain

WebMCP.enable

Enables the WebMCP domain, allowing events to be sent. Enabling the domain will trigger a toolsAdded event for all currently registered tools.

Domain: WebMCP experimental

Example Request

{
  "id": 1,
  "method": "WebMCP.enable"
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('WebMCP.enable');
console.log(result);