document_close
Close the active Moho document tab cleanly and auto-save when a path exists to prevent blocking Save prompts. Optionally force-close untitled files or save them to a specified path first.
Instructions
Close the currently active Moho document tab cleanly (auto-saves if it has a path to prevent blocking Save prompts).
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": "document_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Allow closing an untitled document without saving (default: false) | |
| savePath | No | Optional path to FileSaveAs before closing an untitled document | |
| saveFirst | No | Save before closing to avoid blocking Save dialogs (default: true) |