saveDocument
Saves a workspace document by writing the file to disk through the VS Code buffer when the extension is connected.
Instructions
Save workspace document via VS Code buffer when ext connected. No-op otherwise (editText writes 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>"
},
"name": "saveDocument"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the file to save |