Warn or ban a player
set_player_actionWarns or bans a player in a project, with a reason kept for the record. A ban makes Paxmod flag every later message from that player id without checking it. A warning is a label only. Replaces any earlier warning or ban on the same player; clear_player_action undoes it. Needs owner, admin or editor access.
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": {
"project_id": "<project_id>",
"user_id": "<user_id>",
"action": "<action>",
"reason": "<reason>"
},
"name": "set_player_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| reason | Yes | Why, up to 500 characters. Kept with the action. | |
| user_id | Yes | The player's id (exact), as the app sends it. | |
| project_id | Yes | The project's id, from list_projects. |