[codefix]
Opens or replaces an in-memory live document for editor-style workflows.
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. |
| text | string | No | Optional full in-memory document text. When omitted, TGlider opens the current on-disk text. |
Open a tracked document from disk
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "open_document",
"arguments": {
"filePath": "src/app.ts"
}
}
}Returns live document version and workspace revision metadata.