set_prompt_answer
Submit or withdraw a book as an answer to a Hardcover community prompt, optionally explaining why it fits. Find prompt and book IDs with get_prompts and search_books.
Instructions
Answer a community prompt with a book (answered=true, optionally with a description of why it fits) or withdraw that answer (answered=false). Idempotent: if you already answered the prompt with that book, nothing changes and the existing description is kept. Changes take a few seconds to show, so don't repeat a call immediately. You can answer one prompt with several different books. Returns prompt_id, book_id, answered, 'changed', and answer_id. Find prompt ids with get_prompts and book ids with search_books.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| book_id | Yes | Hardcover book ID. | |
| answered | Yes | true to submit the book, false to withdraw it. | |
| prompt_id | Yes | Hardcover prompt ID (use get_prompts to find IDs). | |
| description | No | Why this book fits the prompt (optional; when adding). |