Check slots
check_slotsValidate slot text against a layout before rendering. Nothing is rendered and no CSS is returned, so it is cheap: run it on every slide you wrote, fix what it reports, then call render_slide. Input: layout_id and slots (slot id to text), the same as render_slide. Returns { layout_id, ok, error_count, warning_count, issues[] }. Each issue has slot, code (unknown_slot, missing_required, empty_required, too_long, not_filled, blanked), severity ("error" must be fixed, "warning" is a quality note) and a one-line fix. ok is true when there are no errors.
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": {
"layout_id": "<layout_id>",
"slots": "<slots>"
},
"name": "check_slots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slots | Yes | Slot id to text, e.g. {"title": "Revenue grew 40%"}. Ids and limits come from get_layout / list_layouts slots[]. Plain text only: it is HTML-escaped, and a newline becomes a line break. Pass "" to leave an optional slot blank; a slot you omit keeps the layout's sample copy. | |
| layout_id | Yes | Layout id from list_layouts or suggest_deck. |