world_edit
Modify Garry's Mod entities or players with actions like remove, teleport, set angles, freeze, unfreeze, adjust health/armor, give or strip weapons. Requires explicit confirmation.
Instructions
GUARDED. Acts on one entity or player: remove, teleport, set_ang, freeze, unfreeze, set_health, set_armor, give, strip. target is an entity index or a player's SteamID/name. Requires confirm:true.
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": {
"action": "<action>",
"target": "<target>"
},
"name": "world_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ang | No | Angles for set_ang. | |
| pos | No | Destination for teleport. | |
| value | No | Amount for set_health and set_armor. | |
| action | Yes | ||
| target | Yes | ||
| weapon | No | Weapon class for give. | |
| confirm | No | Must be true: this changes the running game and is audited. Otherwise the call is refused. |