WebMcpToolExecuteEventArgs
Defines the event arguments for the onBeforeWebMcpToolExecute event.
Provides access to the tool name and its input arguments before execution,
and allows the application to inspect, modify, or cancel the operation.
Props
The following table outlines the props for the WebMcpToolExecuteEventArgs:
| Name | Type | Default | Description |
|---|---|---|---|
| cancel | boolean | - | Specifies whether the tool execution should be cancelled.
Set to |
| cancellationResponse | string | - | Specifies a custom response message to send back to the AI when tool execution is cancelled,
either by setting |
| showConfirmationDialog | boolean | - | Set to |
| toolArgs | object | - | Specifies the arguments passed to the tool.
The shape of this object matches the tool's |
| toolName | string | - | Specifies the name of the WebMCP tool being executed (e.g. |