---
title: "Generate random loot/treasure for a system and tier"
method: POST
path: "/api/tools/rpg_loot"
---

# Generate random loot/treasure for a system and tier

`POST /api/tools/rpg_loot`

## Request

- Base URL: `https://tools.moddable.games`
- URL: `https://tools.moddable.games/api/tools/rpg_loot`
- Auth: none declared

## Request body

- object
  - `system` string: System slug (default: dnd-5e)
  - `tier` 'minor' | 'major' | 'legendary': Loot tier (default: minor)
  - `count` number: Number of items (default 3)

## Response `200`

Tool result

---

[API](https://skmtc.dev/moddable/apis/moddable-games-tools.md) · [All operations](https://skmtc.dev/moddable/apis/moddable-games-tools/llms.txt) · [OpenAPI document](https://skmtc.dev/moddable/apis/moddable-games-tools/revisions/637a0b62cb9a?raw)
