idml-mcp

v0.1.1
io.github.jimprivate/idml-mcp Checked 3 days ago Published 4 months ago

MCP server for AI agents to read and safely edit Adobe InDesign IDML files.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

idml_summarize

Read an Adobe InDesign IDML file and return a structured, LLM-friendly summary: pages, spreads, frames, stories with indexed text runs, image links, and styles. Works directly on the .idml file — InDesign does not need to be installed or running.

ParameterTypeDescription
path *stringPath to the .idml file

idml_get_story

Return one story (text flow) from an IDML file: its plain text plus indexed runs with paragraph/character styles. Use the run indices with idml_set_text.

ParameterTypeDescription
path *stringPath to the .idml file
storyId *stringStory Self id, e.g. "u123" (from idml_summarize)

idml_set_text

Safely replace the text of one run in a story. Only the text content changes — layout geometry, styles, and all other XML are preserved byte-for-byte, so the document cannot be corrupted. Writes in place unless outPath is given.

ParameterTypeDescription
path *stringPath to the .idml file
runIndex *integerRun index within the story (from idml_get_story)
storyId *stringStory Self id (from idml_summarize)
text *stringNew text for this run
outPathstringWrite result here instead of overwriting the input