[codefix]
Translates a position across live document version history.
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. |
| line | number | Yes | 1-based source line. |
| column | number | Yes | 1-based source column. |
| fromVersion | number | Yes | Source live-document version. |
| toVersion | number | No | Optional target live-document version. Defaults to the current live version. |
Translate a cursor to the latest document version
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "translate_document_position",
"arguments": {
"filePath": "src/app.ts",
"line": 10,
"column": 5,
"fromVersion": 1
}
}
}Returns translated line and column when version history can map the position.