patch_ddlx
Modifies part of an existing CDS metadata extension by replacing an exact string once, such as adding a @UI annotation, and blocks execution on production profiles.
Instructions
Modify PART of an existing CDS metadata extension (e.g. add one @UI annotation). Replaces oldString with newString (must match EXACTLY ONCE). 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": {
"ddlxName": "<ddlxName>",
"oldString": "<oldString>",
"newString": "<newString>"
},
"name": "patch_ddlx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activate | No | Activate after writing. Default false. | |
| ddlxName | Yes | Metadata extension name | |
| newString | Yes | Replacement text | |
| oldString | Yes | Exact existing text to replace. Must occur exactly once. | |
| transport | No | Transport request. Omit only for local/$TMP objects. |