Get Referencing Documents
get_referencing_documentsFind all documents referencing a specific character or location, ranked by mention count. Trace an entity's footprint across your manuscript.
Instructions
Find every document that mentions a given character or location, ranked by mention count. Accepts the entity by exact registry id or by name (case-insensitive). Use this to trace an entity's footprint across the manuscript. Returns empty when nothing references it or the entity is unknown. Requires an open project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | Registry id or name of the character/location, e.g. "Elena". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | The queried id or name. | |
| documents | Yes | Documents referencing the entity, most mentions first. |