---
title: "Generate a random encounter for a system and difficulty level"
method: POST
path: "/api/tools/rpg_random_encounter"
---

# Generate a random encounter for a system and difficulty level

`POST /api/tools/rpg_random_encounter`

## Request

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

## Request body

- object
  - `system` string: System slug (default: dnd-5e)
  - `difficulty` 'easy' | 'medium' | 'hard' | 'deadly': Encounter difficulty
  - `type` string: Monster type filter (beast, undead, fiend, dragon, etc)

## 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)
