mc_screen_inspect
Inspect the player's current screen, returning type, title, and container slot data. Optionally include item icons for a complete view.
Instructions
Snapshot the screen the player currently has open. Returns {open: false} if no screen is displayed; otherwise {open, type, title, ...}.
For container screens (chests, anvils, brewing stands, etc.) also returns {menuClass, slots: [{idx, container, item:{itemId, count, damage, maxDamage, name}}]} in a single native pass — cheaper than iterating slots from a script (one bridge call instead of per-slot traffic).
Set includeIcons=true to also receive a top-level icons map keyed by itemId ({base64Png, width, height, spriteName}) — lets you see every item in the container in one call. Deduplicated across slots so a chest of stone+dirt only renders two icons. Adds a few KB to the response per unique item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeIcons | No | Render each unique item's icon and attach as an icons map. Default false. |