Find Relationships
find_relationshipsQuery the story graph to find entities connected to a specific entity, along with relationship types, revealing cross-references and discovered connections.
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. |