Fallback writer: generate the piece deterministically
generate_pieceAssembles a customer case study from a saved transcript, ordering story, quotes, and answers. Saves the piece only when every quote matches a transcript timestamp.
Instructions
FALLBACK writer, used when no host is writing (for example npm run spine). Inside Claude, prefer draft_piece then check_citations, where the host writes the prose. This tool assembles the customer case study deterministically from the saved transcript: the story first, pull quotes second, per-question answers third. Every quote is a verbatim span of a subject turn and carries its transcript timestamp; the piece is saved only if the citation check passes. Regenerate any time; the transcript is never edited to fit a piece. Next step: check_citations.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"brief_id": "<brief_id>"
},
"name": "generate_piece"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brief_id | Yes | The brief_id whose transcript should be written up. |