modo_close_dialog
Close a Modo dialog externally by canceling it safely by default, or pass an exact button label and optional window index to press a chosen option.
Instructions
Close a dialog in Modo from outside Modo. Without button it cancels (Escape on macOS, Close on Windows) -- the safe answer in nearly every dialog. With button (its exact label from modo_list_dialogs) it presses that button. Never press a button that discards work (Don't Save, Discard, Delete ...) without asking the user. window: the index from modo_list_dialogs; default the frontmost dialog.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "modo_close_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button | No | ||
| window | No | ||
| instance | No | This chat's Modo instance token (modo-xxxxxx) from modo_use_instance or modo_launch_instance. Pass it on every call once you have one; leave empty only while a single chat works with Modo. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |