Create post type
fabrement-create-post-typeRegister a NEW custom post type (Book, Project, Event…) — stored by Fabrement, re-registered on every request, no third-party plugin. list-post-types first. A public type with hasArchive gets an archive URL to dress with save-archive-page + assign-template-archive. Rules: get-skill-doc {id:"content-model-contract"} — read it before the first call.
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>",
"singular": "<singular>"
},
"name": "fabrement-create-post-type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Post-type key: 1-20 chars, lowercase, a-z 0-9 _ -, unique and not reserved. | |
| plural | No | Plural label (default: singular + "s"). | |
| public | No | Visible on the front end (default true). | |
| rewrite | No | URL base (default: slug). | |
| menuIcon | No | A dashicons-* class, e.g. "dashicons-book". | |
| singular | Yes | Singular label, e.g. "Book". | |
| supports | No | Editor features to enable. | |
| hasArchive | No | Gets an archive URL (default true). | |
| showInRest | No | Enable the block editor + REST (default true). | |
| taxonomies | No | Existing taxonomy slugs to attach (e.g. "category", "post_tag"). | |
| hierarchical | No | true = page-like: records nest under a parent (save-content `parent`, addresses /type/parent/child/); false = post-like (default). | |
| menuPosition | No | Admin menu position. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postType | Yes |