modx_list_elements
List MODX elements by type (chunk, snippet, template, resource, TV, category, plugin) with optional name filtering and pagination for browsing or selecting CMS items.
Instructions
List MODX elements of a type (id + name). Supports an optional name filter and pagination.
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": "modx_list_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| limit | No | Max results (default 100; 1–500; zero is treated as 1). | |
| query | No | Filter by name (for resources: pagetitle/longtitle/alias). | |
| start | No | Offset for pagination. |