create_book
Create a new Leanpub book by specifying title and slug, with optional sync modes (Browser, GitHub, or Upload) and branch settings for publishing and previewing.
Instructions
Create a new Leanpub book (Browser, GitHub, or Upload mode).
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": {
"title": "<title>",
"slug": "<slug>"
},
"name": "create_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| title | Yes | ||
| syncMode | No | ||
| githubPath | No | Required for GitHub mode, e.g. 'user/repo' | |
| languageId | No | ||
| publisherId | No | ||
| previewBranch | No | ||
| publishBranch | No |