close_document
Closes the active document, with an optional save-first step. Use save=false to close unsaved documents or save new files before closing with save=true.
Instructions
Close the current document. save = true saves it first, but a document that was never saved is refused then (save_document first, or close with save = false).
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": "close_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Save the document first |