data

Reads the game’s data tree, the values its interface displays. Use it to read what a screen shows without a screenshot.

Pass a dotted path (“GUI.SelectedChar”, “Map.ShowAllLabels”, “GUIPopupLayer.DialogBoxText”) to get its value as text and as number, and its type; or pass paths to read several at once (values). found is false for a path that does not exist.

With members: true, it lists the members of the list at path (e.g. Container.Inventory, or the level-up screen’s chains): their count and each member’s path, which you can read the same way. Read only; works in any mode once the game has started.

Read-only: it changes nothing in the game.

Arguments

Name Type Required What
path string   A dotted path in the data tree.
paths array   Up to 64 paths to read together.
members boolean   List the members of the list at path instead of reading its value. Default false.

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