Modify Foundry Actor
foundry_modify_actorModify Foundry VTT actors by giving or removing items, adjusting numeric attributes, or killing them (setting HP to zero).
Instructions
Give/remove items, increase/decrease numeric attributes, or kill (set HP to 0) an actor. Use action to select the operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | No | [increase/decrease/kill] UUID of the target actor | |
| action | Yes | Operation: give/remove items, increase/decrease a stat, or kill | |
| amount | No | [increase/decrease] Amount to change | |
| toUuid | No | [give] UUID of the actor receiving the item | |
| userId | No | Override the default userId. Omit for GM-level access. | |
| clientId | No | Override the default clientId (which connected world to target) | |
| fromUuid | No | [give] UUID of the actor to transfer the item from | |
| itemName | No | [give/remove] Name of the item (if UUID unknown) | |
| itemUuid | No | [give/remove] UUID of the item | |
| quantity | No | [give/remove] Quantity | |
| selected | No | [increase/decrease/kill/remove] Use current selection | |
| actorUuid | No | [remove] UUID of the actor to remove the item from | |
| attribute | No | [increase/decrease] Dotted attribute path, e.g. system.attributes.hp.value |