link_poem_to_nexus
Connect poems to thematic nexuses by adding canonical tags to poem metadata. Updates tags while preserving other frontmatter fields and creates backups before modification.
Instructions
Link a poem to a nexus by adding the nexus's canonical tag.
Safely updates the poem's tags field in frontmatter, preserving all other fields. Creates a backup before modification. Automatically resyncs catalog after update.
Args: poem_id: Poem identifier (ID or title) nexus_name: Name of nexus to link (e.g., "Water-Liquid", "Childhood") nexus_type: Type of nexus (theme/motif/form), defaults to "theme"
Returns: Dictionary with operation details including success status
Example:
Link a poem to a theme:
result = await link_poem_to_nexus(
poem_id="antlion",
nexus_name="Water-Liquid",
nexus_type="theme"
)
print(f"Added tag: {result['tag_added']}")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poem_id | Yes | ||
| nexus_name | Yes | ||
| nexus_type | No | theme |