create_chapter
Create a new chapter within a BookStack book by specifying the parent book ID and chapter name, with optional details like description, tags, priority, and template.
Instructions
Create a new chapter in a book
Input Schema
Name | Required | Description | Default |
---|---|---|---|
book_id | Yes | Parent book ID | |
default_template_id | No | Default template ID for new pages | |
description | No | Chapter description (plain text) | |
description_html | No | Chapter description (HTML format) | |
name | Yes | Chapter name (required, max 255 chars) | |
priority | No | Chapter priority/order | |
tags | No | Array of tags with name and value |
Input Schema (JSON Schema)
{
"properties": {
"book_id": {
"description": "Parent book ID",
"type": "number"
},
"default_template_id": {
"description": "Default template ID for new pages",
"type": "number"
},
"description": {
"description": "Chapter description (plain text)",
"type": "string"
},
"description_html": {
"description": "Chapter description (HTML format)",
"type": "string"
},
"name": {
"description": "Chapter name (required, max 255 chars)",
"type": "string"
},
"priority": {
"description": "Chapter priority/order",
"type": "number"
},
"tags": {
"description": "Array of tags with name and value",
"items": {
"properties": {
"name": {
"type": "string"
},
"order": {
"type": "number"
},
"value": {
"type": "string"
}
},
"required": [
"name",
"value"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"book_id",
"name"
],
"type": "object"
}