open_document
[codefix]
Opens or replaces an in-memory live document for editor-style workflows.
Try it locally in the TGlider playground
Parameters
| 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. |
Examples
Replace sample paths and symbol keys with values from your workspace.
Open a tracked document from disk
Arguments
{
"filePath": "src/app.ts"
}Full MCP request
Full MCP request
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "open_document",
"arguments": {
"filePath": "src/app.ts"
}
}
}Response Notes
Returns live document version and workspace revision metadata.