← Back to WebMCP domain

WebMCP.cancelInvocation

Cancels a pending tool invocation.

Domain: WebMCP experimental

Parameters

NameTypeDescription
invocationIdstringInvocation identifier to cancel.

Example Request

{
  "id": 1,
  "method": "WebMCP.cancelInvocation",
  "params": {
    "invocationId": "invocationId-value"
  }
}

Example Response

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

Usage in Node.js

const result = await send('WebMCP.cancelInvocation', {"invocationId": "invocationId-value"});
console.log(result);