checkDocumentDirty
Determine if a file contains unsaved modifications, using the VS Code buffer if available or a heuristic method.
Instructions
Check if file has unsaved changes. Uses VS Code buffer when ext connected; heuristic otherwise.
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>"
},
"name": "checkDocumentDirty"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the file to check |