distill_document
Compile a training.md / roadmap markdown document into a live interactive A2UI app — DETERMINISTIC parser, no model involved. Fact sheet: input is MARKDOWN following the training-md contract (frontmatter id/domain/name/source/license + a # Steps section); the text transits to the catalog's stateless parser service for the duration of the call and is NOT stored; lint errors come back as a structured report (fix and re-call). On success the result IS the compiled surface — MCP Apps hosts paint it in the view; other hosts can pass the returned payload to preview_url for a link.
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": {
"markdown": "<markdown>"
},
"name": "distill_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | parse contract to apply (default training) | |
| markdown | Yes | the full markdown document, frontmatter included |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | False on a lint report; absent on a compiled surface. | |
| error | No | Lint errors joined (lint report only). | |
| title | No | Surface title (compiled surface). | |
| errors | No | Lint errors (lint report only). | |
| layout | No | Layout nodes of the compiled surface. | |
| warnings | No | Lint warnings (lint report only). | |
| intake_notes | No | What the intake shim changed (lint report only). |