getBufferContent
Read a workspace file from VS Code buffer including unsaved changes. Returns isDirty flag to indicate modifications before editing.
Instructions
Read workspace file from VS Code buffer including unsaved changes. Use before editText. Returns isDirty flag. Workspace files only.
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": "getBufferContent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endLine | No | Last line to include (1-based, default: all lines) | |
| filePath | Yes | Workspace or absolute path | |
| startLine | No | First line to include (1-based, default: 1) |