Grid - WebMcpToolExecuteEventArgs

30 Sep 20261 minute to read

Defines the event arguments for the beforeWebMcpToolExecute event.

Properties

cancel boolean

Specifies whether the tool execution should be cancelled.

cancellationResponse string

Specifies a custom response message to send back to the AI when tool execution is cancelled,
either by setting `cancel` to `true` or when the user dismisses the confirmation dialog.

showConfirmationDialog boolean

Set to `true` to display a confirmation dialog to the user before the tool executes.

toolArgs object

Specifies the arguments passed to the tool.

toolName string

Specifies the name of the WebMCP tool being executed (e.g. `‘editCell’`, `‘getCellData’`).