Assemble Catalog JSON from Markdown
trestle_author_catalog_assembleWrites edited markdown control files back into a catalog JSON, completing the authoring round trip. Set parameters to preserve YAML header changes such as parameter values and properties.
Instructions
Assemble markdown files of controls into a Catalog json file.
This is the return leg of the catalog authoring round trip: run
trestle_author_catalog_generate to get markdown, edit the control prose or
the yaml header, then run this tool to write the edits back into
catalogs//catalog.json.
Set set_parameters when the edits include parameter values or properties in
the markdown yaml header — without it only the control prose is read back,
and header edits are silently discarded.
Args: params (TrestleAuthorCatalogAssembleInput): Input parameters with: - markdown (str): Input markdown control directory (required) - output (str): Output json catalog name (required) - name (Optional[str]): Source catalog model name (defaults to output) - set_parameters (bool): Read parameters and properties from the markdown yaml header (default: false) - regenerate (bool): Force generation of new uuids (default: false) - version (Optional[str]): New version for the assembled model - trestle_root (Optional[str]): Trestle workspace root path - verbose (bool): Display verbose output
Returns: str: Success or error message
Examples:
- Use when: "Write my markdown control edits back into the catalog json"
- Use when: "Assemble a catalog from markdown and stamp it version 1.1.0"
- Don't use when: The markdown directory was never generated from a
catalog — assemble cannot invent the catalog metadata it needs.
- Don't use when: You want a profile json out of profile markdown; use
trestle_author_profile_assemble.
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": {
"params": "<params>"
},
"name": "trestle_author_catalog_assemble"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |