insert_markdown_text
Inserts Markdown text into an InDesign text frame and applies existing paragraph and character styles for headers, bold, italic, and other formatting automatically.
Instructions
Insert markdown text into a text frame with automatic formatting using existing paragraph and character styles. Supports # headers, bold, italic, etc.
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": {
"markdownText": "<markdownText>"
},
"name": "insert_markdown_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageIndex | No | Page index | |
| frameIndex | No | Text frame index (use list_text_frames or get_selected_objects first) | |
| markdownText | Yes | Markdown text to insert | |
| replaceContent | No | Replace existing content or append | |
| useSelectedFrame | No | Use currently selected text frame instead of frameIndex |