move_poem_to_state
Move poems between state directories like Completed or Fledgelings and automatically update their frontmatter state field while handling backup files.
Instructions
Move a poem to a different state directory and update frontmatter.
Moves the poem file between state directories (Completed, Fledgelings, etc.) and updates the frontmatter state field. Handles backup files automatically.
Args: poem_id: Poem identifier (ID or title) new_state: Target state (completed, fledgeling, still_cooking, etc.)
Returns: Dictionary with move operation results
Example:
Promote a poem to completed:
result = await move_poem_to_state(
poem_id="antlion",
new_state="completed"
)
print(f"Moved from {result['old_state']} to {result['new_state']}")
print(f"New path: {result['new_path']}")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poem_id | Yes | ||
| new_state | Yes |