modx_grant_context_access
Grant a MODX user group access to a context by setting an access policy and minimum role authority, enabling you to control which groups can enter contexts like web or mgr.
Instructions
Grant a user group access to a context with a policy and minimum role authority.
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": {
"principal": "<principal>",
"target": "<target>",
"policy": "<policy>"
},
"name": "modx_grant_context_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | Yes | Access policy id. | |
| target | Yes | Context key (e.g. 'web', 'mgr'). | |
| authority | No | Minimum role authority (0 = all). | |
| principal | Yes | User group id. |