Log a generated document
log_generationLog character names, types, concepts covered, and terminology from a generated .docx to maintain consistency and inform future document generation.
Instructions
Call after uploading a generated .docx to the bucket (via create_upload_url). Reads the object's hash from storage and records what you produced so it feeds future consistency + variety. Log each character with details like {name, type} (e.g. {name:'Awa', type:'child'}), not just the name. No local file needed. 'unit' is the scope value (maths: chapter number); 'deliverable' is a deliverable key (maths: 'manual' or 'lessons'). REQUIRES CONFIRMATION: called without confirm:true it only returns a needsConfirmation notice — ask the user to approve writing to history, then call again with confirm:true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| confirm | No | ||
| content | Yes | ||
| relPath | Yes | ||
| deliverable | Yes |