set_relationship
Links two existing entities of the campaign: sourceId targetId, e.g. an NPC LOCATED_AT a location, a location LOCATED_AT its parent region, an NPC MEMBER_OF a faction. Only the relationship types declared for that pair of entity types are accepted; the error lists the allowed ones. LOCATED_AT replaces the entity's previous location. Requires the Editor role.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaignId": "<campaignId>",
"sourceId": "<sourceId>",
"targetId": "<targetId>",
"type": "<type>"
},
"name": "set_relationship"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Relationship type: LOCATED_AT, MEMBER_OF, HELD_BY, ALLIED_WITH, OPPOSES, RELATES_TO, INVOLVED_IN, KNOWS_ABOUT or CATEGORIZED_AS. | |
| sourceId | Yes | ||
| targetId | Yes | ||
| campaignId | Yes |