inventory

Lists the items in a creature’s backpack, or in a container without opening it (a chest, a body, a pile of bones). The hero’s backpack is the party’s. Worn items are not included; equipment lists those.

The answer has count and items, each in brief (name, tag, template, base type, stack, value, plot). For a creature it also has holds (the most the backpack can hold) and money (the party’s).

A container’s contents may only be decided when it is opened, so an empty list does not mean it is empty. The loot tool opens a container and takes what is inside.

Read-only: it changes nothing in the game.

Arguments

Name Type Required What
id string   The creature or container, by id (containers come from placeables). Default: the hero.
full boolean   Return each item in full, as item does. Default false.

Call it as inventory over MCP, or POST /api/tool/inventory with the arguments as JSON.