Agent Task Management
manage_agentCreate, start, advance, complete, or cancel durable NPC tasks, and list or inspect them. Mutations persist to the novel and are audited; undo the last change with history.
Instructions
Manage durable NPC/agent tasks and their action lifecycle. Mutating actions (create, start, advance, complete, fail, cancel) persist to the Novel and are audited; list/get are read-only. Revert the most recent mutation with manage_history (action: undo); terminal tasks are immutable. Use when: creating a task (create), starting it (start), logging an action (advance), settling it (complete/fail/cancel), or inspecting tasks (list/get). Do NOT use when: surfacing an advisory suggestion — use manage_scene (action: oracle); managing NPC identity — use manage_npc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | Task goal text (create). | |
| action | Yes | create, list, get, start, advance, complete, fail, or cancel. | |
| subject | No | Entity or NPC that owns the task (create/list). | |
| task_id | No | Task id (get/start/advance/complete/fail/cancel). | |
| autonomy | No | advisory, prompt, or auto (create; default the TTRPG_AGENT_AUTONOMY setting). | |
| description | No | Action description (advance). | |
| source_goal | No | Originating goal-pursuit suggestion (create). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Human-readable text envelope mirroring the structured result (REQ-001, REQ-548a). | |
| status | Yes | Machine-readable result status: OK, NEED_INPUT, WARNING, PARTIAL, or an error category (REQ-002, REQ-548c). |