cancel_native_file_dialog
Cancel an open Windows file dialog using its inspection ticket, ending the native file selection after physical approval and confirming the dialog closes.
Instructions
Explicit desktop capability: cancel the Windows file dialog identified by a fresh inspect_native_file_dialog ticket. Requires desktop_opt_in=true and follows the current safe/lab physical-approval policy. Each opted-in attempt consumes its ticket. After the physical-input lease, enforced quiet gate, identity, foreground and Cancel hit checks, sends one bounded message to that Cancel control without activating a window. Reports cancelled only after observing the dialog HWND gone; uncertain delivery or closure is unknown with retry_safe=false. Inspect state before another action. Returns desktop, on_screen and input_quiet diagnostics; unsupported native layouts are refused. Approval failures expose reason in the result and diagnostics: elicitation_unsupported, declined, timeout, cancelled or error.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ticket": "<ticket>"
},
"name": "cancel_native_file_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticket | Yes | ||
| desktop_opt_in | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||