patch_cds
Replace one exact string in an existing CDS view DDL to make small edits without resending the full source, then optionally activate; refuses production profiles.
Instructions
Modify PART of an existing CDS view's DDL without resending the whole source. Reads the current source, replaces oldString with newString (must match EXACTLY ONCE), then locks, PUTs, unlocks, and optionally activates. Prefer this over update_cds for small edits like adding a field or annotation. 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": {
"cdsName": "<cdsName>",
"oldString": "<oldString>",
"newString": "<newString>"
},
"name": "patch_cds"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cdsName | Yes | CDS entity/DDLS name, e.g. ZKIT_I_PRODUCT | |
| activate | No | Activate after writing. Default false - CDS activation is safe; pass true to activate in one call. | |
| newString | Yes | Replacement text | |
| oldString | Yes | Exact existing DDL text to replace. Must occur exactly once - include enough context to be unique. | |
| transport | No | Transport request. Omit only for local/$TMP objects. |