Relationship Management
manage_relationshipSet or read directed relationships between entities, NPCs, or factions, updating type, strength, and description in place and returning incoming and outgoing edges separately.
Instructions
Manage directed relationships between entities, NPCs, or factions. set is keyed by the ordered (entity_a, entity_b) pair and updates type, value, or description in place rather than duplicating; type is one of ally, rival, neutral, mentor, dependent, or suspicious, and value is an optional numeric strength. get returns outgoing and incoming edges separately. set requires the GM or Editor badge, persists to the Novel, and is undoable via manage_history (action: undo); get is read-only. Use when: setting or reading how two parties relate. Do NOT use when: tracking faction standing or progress — use manage_faction (action: update).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Relationship type (set). | |
| value | No | Optional relationship strength (set). | |
| action | Yes | set or get. | |
| entity_a | No | The source entity (set). | |
| entity_b | No | The target entity (set). | |
| entity_id | No | Entity whose relationships to list (get). | |
| description | No | Optional description (set). |
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). |