lsp_change
Notify the language server of file changes by sending the full updated text, ensuring diagnostics and queries reflect the latest content after edits.
Instructions
Notify the language server that a file has changed (like pressing Save).
Send the new full text of the file. This keeps the server's internal state in sync with the actual file contents.
When to use: IMMEDIATELY after you modify a Scheme file via filesystem tools (WriteFile/StrReplaceFile). If you skip this step, subsequent diagnostics and queries will operate on stale content.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"text": "<text>"
},
"name": "lsp_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||