Find Relationships
find_relationshipsQuery the story graph for entities connected to a given character or item, returning relationship types and direct links.
Instructions
Query the story graph for entities related to a given entity, returning the connected entities and the relationship types that link them. This covers cross-references and discovered connections for a specific entity; use character_network for the whole-cast graph, or discover_connections to surface co-occurring entities project-wide. Requires an open project with the relationship engine initialized.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Maximum number of related entities to return. Omit for the engine default. | |
| entity | Yes | Name of the entity to find relationships for, e.g. a character name. | |
| relation | No | Optional relationship type to filter by (e.g. "mentors"). Omit to return all relationship types. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| relationships | Yes | Stored relationships in which the queried entity is the head or tail. |