upload_entity_image
Sets an entity's image: an NPC, monster, item or player portrait (token), a faction emblem or a location map. Replaces the current image of that kind. image is either a file URI from authorize_image_uploads (after its bytes were uploaded; the way to send a local file) or a data: URI with the image inline (png, jpg, webp or gif, at most 5MB, every byte of it in the call). Requires the Editor role.
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": {
"campaignId": "<campaignId>",
"entityType": "<entityType>",
"entityId": "<entityId>",
"image": "<image>"
},
"name": "upload_entity_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Optional: Token, Emblem or Map. Defaults to the type's image (Map for a location, Emblem for a faction, Token otherwise). | |
| image | Yes | The image: an mcp-file:// URI from authorize_image_uploads, or a data: URI (data:image/png;base64,...). | |
| entityId | Yes | ||
| campaignId | Yes | ||
| entityType | Yes | NPC, MONSTER, ITEM, PLAYER, FACTION or LOCATION. |