Check a job
get_jobCheck on any long-running ColorCraft job: a niche report being built, a book plan being drafted, a book being drawn, cover art, a cover wrap or an interior PDF. Pass the job_id a tool returned (it starts with "job_"). Waits up to wait_seconds (default 25, max 25) and returns as soon as something changes, so call it again right away while done is false; each call is free. When done is true, read files (download links), project_id, next_actions and any human_action. A storybook or comic paused for review has status waiting_for_approval with preview_images: show them to the person, then call approve_preview or cancel_book. A generate_front_cover job that failed after painting (result.front_image_url) stays status failed, with the error_code it failed with, once that picture is saved as the cover (update_cover_design with front_image_url): result.recovered is then true, next_actions are the book’s remaining steps, human_action is null, and there is nothing to retry.
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": {
"job_id": "<job_id>"
},
"name": "get_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job_id a tool returned, e.g. job_book_… | |
| wait_seconds | No | Seconds to wait for news (default 25; 0 answers at once). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| done | Yes | True once the job will not change any more (succeeded, partial, failed or cancelled). | |
| kind | Yes | research, plan, book or finish (cover art, a cover wrap and an interior PDF are finish jobs). | |
| files | Yes | ||
| job_id | Yes | ||
| result | Yes | Kind-specific result fields. An export’s are listed in its tool’s description (export_interior_pdf, export_cover_wrap); a finished export whose file is still stored also has stale, stale_reason and superseded_by: stale is true once the file no longer matches the book as it prints now (judged when the book can be read) or, for a clean (not watermarked) file, once another clean export of its kind is the file to upload (the export’s description says which; superseded_by: the newer one that is, else the newest clean one made after it, else null), and stale_reason says why and what to do. A watermarked preview is never for upload, stale or not: see watermarked and kdp_ready. A failed generate_front_cover job that painted a picture has front_image_url; once that picture is saved as the cover, also recovered: true and recovered_at (when update_cover_design marked the job; null when the saved cover shows it without the mark), is_cover and cover_front_image_url (as for a finished one: another picture can be put on the cover since), while status stays failed. A finished generate_front_cover job’s are listed in its description: is_cover says whether its picture is still the book’s saved front art (cover_front_image_url). | |
| status | Yes | ||
| message | Yes | A plain-language status line, or what went wrong. | |
| plan_id | Yes | ||
| progress | Yes | ||
| report_id | Yes | ||
| error_code | Yes | ||
| project_id | Yes | ||
| eta_seconds | Yes | ||
| cost_charged | Yes | Pages of balance charged so far: 0 for a job that uses no pages (a plan, an export other than cover art); null for a niche report, which uses a research search instead. | |
| human_action | Yes | ||
| next_actions | Yes | Tools that make sense next, in order. | |
| feedback_hint | No | Only on a job that ended failed or partial: a reminder that send_feedback reports a problem to ColorCraft. | |
| preview_images | Yes | Preview page images while a storybook or comic waits for approval. | |
| poll_after_seconds | Yes | When to check again; null once done. |