write_project_file_preview
write_project_file_previewPreview file changes before writing by generating hashes, line summaries, and textual diffs for SAPUI5 development projects.
Instructions
Preview a safe workspace file write with hashes, line summary, and textual diff preview.
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": {
"path": "<path>",
"content": "<content>"
},
"name": "write_project_file_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| maxDiffLines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| changed | Yes | ||
| newHash | Yes | ||
| oldHash | Yes | ||
| bytesAfter | Yes | ||
| bytesBefore | Yes | ||
| diffPreview | Yes | ||
| lineSummary | Yes | ||
| existsBefore | Yes | ||
| diffTruncated | Yes |