Edit books
tinytales_books_write books:write
Create a coloring book or change its title, cover color, or optional first interior dedication page. The cover line remains fixed. Actions: create, update, process. Photos start drawing when uploaded with tinytales_images_write, so process is rarely needed.
00Actions
create— needs nothing else. Scope:books:write.update— needsbook_id. Scope:books:write.process— needsbook_id. Scope:books:write.
01Access
The signed-in customer must have approved books:write. Calls stay inside that account.
02Annotations
The tool creates or updates records in the signed-in account.
The change can be removed later with tinytales_delete, or it only adds data.
This tool only reads or changes the signed-in TinyTales account. It does not post to the public internet or to other people’s services.
Repeating the call can create another record.
03Input
Which action to run: create, update, process.
Book id for update or process.
Book title, up to 24 characters (it must fit on the printed cover). A default title is used when omitted on create.
Cover background color for update. Existing books default to yellow.
Optional first interior dedication page, up to 180 characters and six line breaks. Does not change the fixed cover line.
Remove the first interior dedication page.
Optional private note about the book, up to 500 characters. Used on create only. It is not printed.
Optional, on create. Little Ones = thick lines and big shapes for ages 2 to 5. Big Kids = more detail for ages 6 to 12. Omit to use Simple.
Optional, on create. Simple or Detailed. Ignored when age_group is set. Omit for Simple.
json returns structured data. markdown returns the same data as a short readable summary. Defaults to json.
04Output
True when the underlying TinyTales route accepted the call.
One-line result for the model to read.
What to do next, in one sentence. Present when TinyTales knows a clear next action. Follow it before trying anything else.
Present when ok is false. Names the failed state and the next action to call.
On create: { bookId }. On process: { queued, progress }.
05Errors
- Unauthorized
- Book not found
06Example request
{
"action": "create",
"title": "Sunday at the lake"
}
07Example response
{
"ok": true,
"summary": "Created a draft book. The new book id is data.bookId.",
"next_step": "Upload each photo with tinytales_images_write action upload, using the bookId in data. Each upload starts a coloring page. Do not call process.",
"data": {
"success": true,
"bookId": "7c9e6679-7425-40de-944b-e07fc1f90ae7"
}
}