patch_smartform
Replace an exact XML string in an existing Smartform (STXFORMS) to modify part of it, requiring a single match and blocking production profiles.
Instructions
Modify part of an existing Smartform (STXFORMS) by replacing an exact string in its XML. oldString 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": {
"smartformName": "<smartformName>",
"oldString": "<oldString>",
"newString": "<newString>"
},
"name": "patch_smartform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activate | No | Activate after writing. | |
| newString | Yes | Replacement XML text. | |
| oldString | Yes | Exact existing XML text to replace (must match once). | |
| transport | No | Transport request. | |
| smartformName | Yes | Smartform name, e.g. ZSF_INVOICE |