wait_for_job
Poll a Leanpub job's status at regular intervals until it completes or the timeout expires, so you know when to proceed after previewing or publishing.
Instructions
Poll get_job_status every 5s (configurable) until the job completes or the timeout elapses. Use right after preview_book/publish_book.
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": {
"slug": "<slug>"
},
"name": "wait_for_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| timeoutSeconds | No | Default 120 | |
| intervalSeconds | No | Default 5, minimum 5 per Leanpub's rate limit guidance |