DesignCraft Desktop Publishing & Page Layout Automation
This skill enables full integration with the DesignCraft InDesign-class desktop publishing application and headless CLI engine (designcraft-cli) installed on your local computer.
Available Capabilities & Tools
DesignCraft exposes 10 high-level MCP tools:
create_layout: Build single- or multi-page documents (presets likeA4,A5,Letteror custom dimensions, facing pages, margins, columns, bleed, background color, and reusable paragraph styles) from items placed per page: text frames (font, style, size, leading, tracking, alignment, multi-column, vertical alignment), placed images (fill,fit,stretch,center, rounded corners, drop shadow), shapes (rect,ellipse,polygon,linewith gradients, strokes, text wrap, rotation), and styled tables. Automatically reports anyoverset_text.data_merge: Merge a CSV/TSV file or array ofrowsinto an existing.designcraft/.idmltemplate or an inline item layout using<<Field>>text placeholders and imagefieldbindings — either one page per record (badges, certificates) or multiple records per page (per_page: truefor address labels and cards).export_document: Export one document, a list, or an entire folder to PDF (pdf_standard: "x4"or"a2b",include_bleed,crop_marks,spreads,export_pages), PNG/JPG pages at customdpi, Adobe InDesign.idml, reflowable or fixed-layoutepub,html,bookletPDF, or fullpackagefolder.edit_document: Non-destructively edit.designcraftor.idmldocuments — text/GREPfind_replace, story text replacement,replace_imagesin frames,replace_font, adding pages, and placing new items — saving as a new copy.get_document_info: Inspect page count, items and bounds per page, stories (including overset status), paragraph/character styles, color swatches, fonts (including missing fonts), linked assets (missing or low-DPI), and preflight checks.render_pages: Render document pages as PNG previews for visual inspection and optionally save them to disk.list_designcraft_catalog: Browse 568 engine commands (with parameters), page presets, font availability (including bundledInter,Source Sans 3, andSource Serif 4), and supported formats.run_designcraft_commands: Execute raw DesignCraft engine commands (frame.create,text.select,type.char,inspect_document,get_story,place_image) with$steps[N].fieldreferences in headless mode or live against the desktop app (live: true, port7981).open_in_designcraft: Open.designcraftor.idmldocuments in the DesignCraft desktop app (optionally enabling the live control channel on port7981).get_designcraft_status: Check platform,designcraft-cliversion, command count, executable paths, and live control port status.
Practical Examples
1. Creating a Two-Page Print-Ready A5 Brochure (PDF/X-4 + IDML + PNG)
{
"name": "Cafe_Brochure",
"units": "mm",
"preset": "A5",
"page_count": 2,
"margins": 12,
"bleed": 3,
"background": "#FDF6EC",
"styles": [
{ "name": "Title", "font": "Source Serif 4", "font_style": "Bold", "size": 32, "color": "#FFFFFF", "align": "center" },
{ "name": "Body", "font": "Inter", "size": 10.5, "color": "#2D2A26", "space_after": 4 }
],
"items": [
{ "type": "rect", "x": 0, "y": 0, "width": 148, "height": 42, "gradient": ["#7B2FF7", "#C0661F"] },
{ "type": "text", "x": 12, "y": 10, "width": 124, "height": 22, "text": "DesignCraft Studio", "style": "Title", "vertical_align": "center" },
{ "type": "image", "path": "/path/to/workspace/artwork.png", "x": 12, "y": 50, "width": 124, "height": 70, "corner_radius": 4, "shadow": true },
{ "type": "text", "x": 12, "y": 128, "width": 124, "height": 36, "text": "Editorial typography, print-ready PDF/X-4 preflight, and full Adobe InDesign IDML interchange.", "style": "Body", "columns": 2, "gutter": 5 },
{ "type": "table", "page": 2, "x": 12, "y": 20, "width": 124, "height": 55, "header": true, "header_fill": "#F2B134", "font": "Inter", "size": 10, "rows": [["Edition", "Format", "Bleed"], ["Print Master", "PDF/X-4", "3 mm"], ["Interchange", "InDesign IDML", "3 mm"], ["Digital Book", "EPUB 3", "None"]] }
],
"formats": ["pdf", "png", "idml", "designcraft"],
"pdf_standard": "x4",
"include_bleed": true,
"crop_marks": true,
"output_dir": "/path/to/workspace"
}
2. Data-Merging Event Badges from CSV
{
"csv_path": "/path/to/workspace\\team.csv",
"units": "mm",
"width": 90,
"height": 55,
"margins": 6,
"items": [
{ "type": "image", "field": "Photo", "x": 6, "y": 8, "width": 24, "height": 24, "fit": "fill", "corner_radius": 12 },
{ "type": "text", "x": 34, "y": 10, "width": 50, "height": 12, "text": "<<Name>>", "font": "Inter", "font_style": "Bold", "size": 13 },
{ "type": "text", "x": 34, "y": 23, "width": 50, "height": 10, "text": "<<Role>>", "font": "Inter", "size": 9.5, "color": "#555555" }
],
"formats": ["pdf", "designcraft"],
"name": "VIP_Badges",
"output_dir": "/path/to/workspace"
}
Best Practices
- Always supply absolute paths (e.g.
/Users/alex/project/file.exton macOS/Linux orC:\Users\alex\project\file.exton Windows). - Specify
units("mm","cm","in","pt","px") explicitly when working with physical print sizes;xandyare measured from the top-left corner of each page. - Check
overset_textincreate_layout/get_document_inforesults and enlarge text frames or adjust font size if any text overflows. - Always surface output file links using
[filename](file:///absolute/path/to/file).