lsp_restart_server
Restart a language server to clear stale diagnostics and optionally reopen tracked documents for updated code analysis.
Instructions
Restart a language server. Clears stale diagnostics and optionally reopens tracked documents.
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": {
"language": "<language>"
},
"name": "lsp_restart_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | Yes | Language server to restart (e.g., typescript, python). | |
| reopenDocuments | No | Re-open tracked documents after restart. | |
| shutdownTimeoutMs | No | Max wait for shutdown before force kill. |