Find unit
find_unitLook up Dwarf Fortress citizens by name or profession, returning a compact dossier with profession, age, stress, job, squad, and health flags. Each match includes a unit ID for deeper dossiers.
Instructions
Look up citizens by a name fragment or profession (case-insensitive, matches either). Returns a compact dossier per match: profession, age, stress level, current job, squad, and health flags (wounded/patient/unconscious). Useful for questions like "how is the chief medical dwarf" or "find Urist". Each match carries a unit_id — pass it to citizen() for a deep dossier (personality, the walkable social graph, worship, skills, preferences, recent thoughts). Returns {"error":"no fort loaded"} if no fort is active.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Name fragment or profession to search for |