modx_virtualpage_create_route
Create a VirtualPage route for a given URL and HTTP method, optionally binding an event plugin to handle dynamic page requests.
Instructions
Create a VirtualPage route and bind its event plugin if needed.
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": {
"route": "<route>",
"method": "<method>"
},
"name": "modx_virtualpage_create_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rank | No | ||
| event | No | ||
| route | Yes | ||
| active | No | ||
| method | Yes | ||
| handler | No | ||
| event_name | No | ||
| properties | No | ||
| description | No | ||
| handler_name | No |