modx_make_static
Converts MODX chunks, snippets, templates, or plugins to static files under core/elements/, sets static=1 with Filesystem source, and supports single or batch conversion for direct editing.
Instructions
Convert a chunk/snippet/template/plugin to a static file under core/elements/ (writes the file, sets static=1 + source=Filesystem). One element via {type,id}, or a batch via {items:[{type,id}]}. Edit the resulting files directly afterwards. (See also the modxmcp.auto_static setting to do this automatically on every create/update.)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "modx_make_static"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| type | No | ||
| items | No | Batch: list of {type,id} to convert. |