patch_bdef
Modify part of an existing behavior definition without resending the whole source by replacing an exact string once; then lock, update, unlock, and optionally activate—refused on production profiles.
Instructions
Modify PART of an existing behavior definition (BDEF) without resending the whole source. Reads the current source, replaces oldString with newString (must match EXACTLY ONCE), then locks, PUTs, unlocks, and optionally activates. 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": {
"bdefName": "<bdefName>",
"oldString": "<oldString>",
"newString": "<newString>"
},
"name": "patch_bdef"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activate | No | Activate after writing. Default false. | |
| bdefName | Yes | Behavior definition name = its root entity, e.g. ZTJI_PLANT_EMAIL | |
| 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. |