modx_update_element_property
Changes only the value of one existing default property on a MODX snippet, chunk, plugin, or template. Uses compare-and-swap via expected_value to prevent overwriting concurrent edits while preserving other properties and source code.
Instructions
Change ONLY the value of one EXISTING default property of a snippet, chunk, plugin or template. Requires expected_value (compare-and-swap); preserves other property definitions and source code, uses standard MODX update processor.
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": {
"type": "<type>",
"property_name": "<property_name>",
"expected_value": "<expected_value>",
"value": "<value>"
},
"name": "modx_update_element_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| name | No | ||
| type | Yes | ||
| value | Yes | ||
| property_name | Yes | ||
| expected_value | Yes | ||
| _runtime_preconditions | No | Internal Site Agent Runtime CAS preconditions. |