modx_create_element
Create MODX elements such as chunks, snippets, templates, TVs, plugins, resources, and categories by specifying type and name. Add content and settings to build reusable CMS components.
Instructions
Create a new MODX element.
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>",
"name": "<name>"
},
"name": "modx_create_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | No | ||
| name | Yes | ||
| size | No | ||
| tags | No | ||
| type | Yes | ||
| alias | No | ||
| color | No | ||
| price | No | ||
| events | No | ||
| parent | No | ||
| vendor | No | ||
| weight | No | ||
| article | No | ||
| caption | No | ||
| content | No | ||
| made_in | No | ||
| popular | No | ||
| remains | No | ||
| category | No | ||
| favorite | No | ||
| hidemenu | No | ||
| isfolder | No | ||
| template | No | ||
| class_key | No | ||
| introtext | No | ||
| menutitle | No | ||
| old_price | No | ||
| published | No | ||
| templates | No | ||
| field_type | No | ||
| context_key | No | ||
| media_source | No | ||
| input_properties | No | ||
| _runtime_preconditions | No | Internal Site Agent Runtime CAS preconditions. Not intended for manual model-authored calls. |