Lay out a printed book
layout_bookLays out a story, memoir, letters or recipe collection from this conversation as a printed 8.5-inch square book and shows a page-by-page preview. Use it when the user wants something written in the chat turned into a physical book, or to change a book made earlier (pass book_id; only the fields you pass change). Pass the text exactly as written, split into sections (one per page of a picture book, or one per chapter/recipe). Never summarise or shorten it. This client cannot pass pictures from the conversation: leave images empty; the result has an editor link where the user uploads pictures. This only creates a draft preview; nothing is printed or charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | picture = one picture and short text per spread (children's stories); text = flowing chapters (memoirs, recipes, letters) | |
| title | No | Book title | |
| author | No | Author name as it should appear on the cover, e.g. "Grandma Rosa" | |
| images | No | Pictures from the conversation, in the order referenced by sections | |
| book_id | No | Id of a book made earlier, to update it | |
| country | No | ISO country code the book will ship to, if known, to show the right price | |
| language | No | Language the book is written in (sets the printed words like "The End"). Defaults to the conversation language. | |
| sections | No | The book content in order | |
| subtitle | No | ||
| full_text | No | Alternative to sections: the whole text; it is split at blank lines | |
| dedication | No | Dedication page text, e.g. "For Lucía, love Mum" | |
| cover_image | No | Index into `images` for the front cover; defaults to the first picture |