patch_bsp_file
Modify part of an existing BSP/UI5 repository file by replacing an exact unique string, avoiding full-content resends for small edits.
Instructions
Modify PART of an existing BSP/UI5 repository file without resending the whole content. Reads the current content, replaces oldString with newString (must match EXACTLY ONCE), then writes it back. Prefer this over update_bsp_file for small edits. Refuses to run on production profiles.
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": {
"bspName": "<bspName>",
"filePath": "<filePath>",
"oldString": "<oldString>",
"newString": "<newString>"
},
"name": "patch_bsp_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bspName | Yes | BSP application name, e.g. ZMMUIGRACCEPT | |
| filePath | Yes | Relative file path inside the app, e.g. webapp/controller/Main.controller.js | |
| newString | Yes | Replacement text | |
| oldString | Yes | Exact existing text to replace. Must occur exactly once - include enough context to be unique. | |
| transport | No | Transport request. Omit only for local/$TMP objects. |