Create a collection
create_collectionOn one site of the account, named in site. A new collection: a tree of pages, for pages that sort into levels — surf spots by country, state, city and spot; boards by brand and model. Name its levels top first, one to 6; every level is a page of its own, so the country's page can say something about the country. The collection answers at / (made from the name when not given) and a page in it at ///. A level may name fields its pages carry — a spot's location and break — which themes and the JSON read. Fill it with add_collection_pages. Posts never go in one.
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": {
"site": "<site>",
"name": "<name>",
"levels": "<levels>"
},
"name": "create_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Up to 60 characters, unique without regard to case | |
| site | Yes | The site to work on, as list_sites names it | |
| slug | No | Its address on the site; free of every post's, page's and site page's | |
| fields | No | The fields of each level's pages, by level name: {"Spot": [{"name": "location", "type": "point", "label": "Location"}, {"name": "break", "type": "choice", "label": "Break", "options": ["Beach", "Reef", "Point"]}]}. A level left out keeps its fields; [] removes them. Up to 20 a level | |
| levels | Yes | The levels' names, top first: ["Country", "State", "Spot"] | |
| description | No |