lsp_save_document
Notify the language server that a document is saved, triggering diagnostics and code analysis without writing to disk.
Instructions
Notify the LSP server that a document was saved (textDocument/didSave). Does NOT write to disk.
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": {
"filePath": "<filePath>",
"language": "<language>"
},
"name": "lsp_save_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Saved file content for LSP notification. | |
| filePath | Yes | Absolute or workspace-relative path to the file. | |
| language | Yes | Language server to use. |