idml-mcp
v0.1.1MCP 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the .idml file |
storyId * | string | Story 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the .idml file |
runIndex * | integer | Run index within the story (from idml_get_story) |
storyId * | string | Story Self id (from idml_summarize) |
text * | string | New text for this run |
outPath | string | Write result here instead of overwriting the input |
idml_relink_image
Point an image link in an IDML file at a different image file. Only the link URI changes; frame geometry and cropping are untouched. Writes in place unless outPath is given.
| Parameter | Type | Description |
|---|---|---|
linkSelf * | string | Link Self id (from idml_summarize images list) |
newUri * | string | New resource URI, e.g. "file:/C:/images/photo.jpg" |
path * | string | Path to the .idml file |
outPath | string | Write result here instead of overwriting the input |