gdscript_validate
Validate proposed GDScript file content for errors without writing to disk. Returns validation status, errors, and warnings to prevent broken code.
Instructions
Check proposed file content for errors WITHOUT writing it to disk. Returns: valid flag, errors and warnings. WHEN TO CALL: before writing an edit, so broken code never reaches the project. The LSP is restored to the on-disk content afterwards.
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": "<file>",
"content": "<content>"
},
"name": "gdscript_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path the content is intended for | |
| content | Yes | Full proposed file content |