Work details
work_detailsRetrieve work details (labor groups) with mode, enabled labors, and assigned citizens; filter by exact name and paginate member lists via cursor.
Instructions
List the fort’s work details (the labor-management groups) as facts: each detail’s name, mode (OnlySelectedDoesThis / EverybodyDoesThis / NobodyDoesThis / Default), the labor tokens it enables, and its assigned citizens. The member list is id-sorted and capped at 200 per detail — member_count is always the full count and members_truncated flags when the list is capped; member_names gives readable names parallel to members. Both parameters are OPTIONAL narrowing: detail (exact name) returns ONLY that detail; members_after (a unit id) starts each member list after that id — a truncated detail carries members_cursor (its last listed id) to pass back as members_after for the next page. READ-ONLY and always available (not behind the actuator gate); also the readback sensor for assign_work_detail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | exact work detail name — return ONLY that detail, e.g. "Miners" | |
| members_after | No | member-list cursor: list members with id AFTER this (use members_cursor from a truncated response) |