Lay out a printed book
layout_bookLays out supplied stories, memoirs, letters or recipes as a draft 8.5-inch square book with a page-by-page preview. An existing book ID updates only the supplied fields. The result includes a private editor link for text changes and picture uploads. No images are generated. Nothing is printed or charged.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "layout_book"
}
}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 |