[codefix]
Closes an in-memory live document so TGlider returns to disk-backed source for that file.
Editor and agent workflows often need preview-first writes and in-memory text to stay aligned while planning or validating edits.
The model can preview disk writes, preserve live document version guards, and keep semantic reads aligned with fresh edits.
Try it locally in the TGlider playground
| Name | Type | Required | Description |
|---|---|---|---|
| filePath | string | Yes | Workspace-relative or absolute file path. |
Close a live document
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "close_document",
"arguments": {
"filePath": "src/app.ts"
}
}
}Returns whether the document was closed and the new workspace revision.