modx_virtualpage_create_event
Create a VirtualPage event in MODX to trigger custom handling for page-not-found or request events, with optional rank, active status, and description.
Instructions
Create a VirtualPage event, usually OnPageNotFound or OnHandleRequest.
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": {
"name": "<name>"
},
"name": "modx_virtualpage_create_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| rank | No | ||
| active | No | ||
| description | No |