{"at":"2026-11-22T23:37:28.076Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-22T23:37:28.655Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-22T23:37:31.772Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-22T23:37:32.310Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":true},"tools":{"listChanged":true}},"instructions":"InDesign MCP server\n==================\n\nDrives a running Adobe InDesign through a local bridge. Tools are grouped by\nobject: document, page, text, style, object, image, table, colour, font, export.\n\nSESSION BOOTSTRAP\n- InDesign must be running and the bridge reachable. If a call fails with code\n  \"bridge_not_connected\", stop and tell the user to launch InDesign and the\n  bridge (the UXP panel, or ./start-bridge.sh on macOS). Do not retry in a\n  loop — the bridge cannot appear on its own.\n- Check the connection once at the start with document_listOpen, not every turn.\n\nSTATE BEFORE ACTION\n- Call document_getState before mutating an existing document: it returns the\n  front document's geometry, the other open documents, the active layer and the\n  selection in one round-trip, and its output is the source of truth. Do not\n  assume geometry.\n- Every tool takes an optional document_id: a document name (as document_listOpen\n  reports it) or a 0-based index. Pass it to act on a specific open document.\n  Without it a tool acts on the front document, so when document_getState shows\n  more than one document open, pass document_id rather than relying on the front\n  tab — and do not assume the front one is the intended target.\n\nCLOSING AND SAVING\n- document_close defaults saveOptions to \"no\": it closes without saving and can\n  never raise a dialog. Call document_save first when the work should be kept.\n  Never pass \"ask\" while acting unattended — it opens a modal save dialog that\n  blocks the script until the bridge times out and can leave InDesign wedged.\n- document_save defaults to saving in place. Pass filePath to save as.\n\nPREFER TYPED TOOLS OVER RAW SCRIPT\n- Use the typed tools. Do not reach for raw ExtendScript to work around a failed\n  tool: eval, Function, require, exec, spawn and fork are refused by the server's\n  security policy and fail with code \"script_blocked_by_policy\". When a typed\n  tool fails, read the error envelope and act on suggested_next_tool.\n\nERRORS ARE STRUCTURED\n- A failed call returns JSON: { ok: false, code, message, suggested_next_tool? }.\n  Frequent codes: invalid_reference (stale page or frame index — re-read state\n  with document_getInfo), execution_timeout (InDesign is busy — probe with\n  document_listOpen), missing_font (font_missing_check), link_missing\n  (image_getLinks).\n\nVERIFY WHAT YOU CHANGED\n- Call preview_document to look at the result before reporting success, rather\n  than assuming a change landed as intended. It renders the front document by\n  default; pass document_id to render another open document.\n\nMULTI-STEP EDITS\n- Wrap a multi-step call in undo_beginGroup / undo_endGroup so the whole call is\n  one undo step and one Undo reverts it. Separate tool calls cannot be merged\n  into a single step — each remains its own entry.\n- To flow a story across pages, find where it lands with document_getStoryPages\n  or document_getPageStories instead of assuming.\n- Two jobs are one call, not a chain: recipe_flowTextStory (place a text file\n  and flow it to the end, adding pages) and recipe_exportPreset (export with a\n  named PDF preset). Each is one round-trip and one undo group.","protocolVersion":"2025-11-25","serverInfo":{"name":"indesign-nutria-mcp","version":"1.6.1"}}}}
{"at":"2026-11-22T23:37:32.310Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-22T23:37:32.310Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-22T23:37:32.319Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Create a new InDesign document with specified dimensions, margins, and settings","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"bleed":{"additionalProperties":false,"properties":{"bottom":{"default":3,"minimum":0,"type":"number"},"left":{"default":3,"minimum":0,"type":"number"},"right":{"default":3,"minimum":0,"type":"number"},"top":{"default":3,"minimum":0,"type":"number"}},"type":"object"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"facingPages":{"default":false,"type":"boolean"},"height":{"default":297,"exclusiveMinimum":0,"type":"number"},"margins":{"additionalProperties":false,"default":{"bottom":12,"left":12,"right":12,"top":12},"properties":{"bottom":{"default":12,"minimum":0,"type":"number"},"left":{"default":12,"minimum":0,"type":"number"},"right":{"default":12,"minimum":0,"type":"number"},"top":{"default":12,"minimum":0,"type":"number"}},"type":"object"},"orientation":{"default":"portrait","enum":["portrait","landscape"],"type":"string"},"pages":{"default":1,"exclusiveMinimum":0,"type":"integer"},"slug":{"additionalProperties":false,"properties":{"bottom":{"default":0,"minimum":0,"type":"number"},"left":{"default":0,"minimum":0,"type":"number"},"right":{"default":0,"minimum":0,"type":"number"},"top":{"default":0,"minimum":0,"type":"number"}},"type":"object"},"width":{"default":210,"exclusiveMinimum":0,"type":"number"}},"type":"object"},"name":"document_create"},{"description":"Open an existing InDesign document from file path","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"filePath":{"minLength":1,"type":"string"},"showWindow":{"default":true,"type":"boolean"}},"required":["filePath"],"type":"object"},"name":"document_open"},{"description":"Save the active InDesign document, optionally to a specific path","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"filePath":{"type":"string"},"saveOptions":{"default":"yes","enum":["yes","no","ask"],"type":"string"}},"type":"object"},"name":"document_save"},{"description":"Close the active InDesign document with save options","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"saveOptions":{"default":"no","enum":["yes","no","ask"],"type":"string"}},"type":"object"},"name":"document_close"},{"description":"Get detailed information about the active document including page count, dimensions, and margins","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"document_getInfo"},{"description":"List all currently open InDesign documents","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"document_listOpen"},{"description":"Get the editing state in one call: the front document (name, path, page count, size, margins), the index of that document, the names of every open document, the active layer, and how many objects are selected. Prefer this over chaining document_getInfo and document_listOpen","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"document_getState"},{"description":"Get all stories that appear on a specific page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex"],"type":"object"},"name":"document_getPageStories"},{"description":"Get all pages covered by a specific story (for finding which pages a story lives on)","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"storyIndex":{"minimum":0,"type":"integer"}},"required":["storyIndex"],"type":"object"},"name":"document_getStoryPages"},{"description":"Add a new page to the active document at a specified position","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"position":{"default":"atEnd","enum":["atEnd","atBeginning","before","after"],"type":"string"},"referencePage":{"minimum":0,"type":"integer"}},"type":"object"},"name":"page_add"},{"description":"Delete a page from the active document by index","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"index":{"minimum":0,"type":"integer"}},"required":["index"],"type":"object"},"name":"page_delete"},{"description":"Duplicate a page in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"index":{"minimum":0,"type":"integer"}},"required":["index"],"type":"object"},"name":"page_duplicate"},{"description":"Move a page to a new position in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"index":{"minimum":0,"type":"integer"},"toIndex":{"minimum":0,"type":"integer"}},"required":["index","toIndex"],"type":"object"},"name":"page_move"},{"description":"Get detailed information about a specific page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"index":{"minimum":0,"type":"integer"}},"required":["index"],"type":"object"},"name":"page_getInfo"},{"description":"List all pages in the active document with their properties","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"page_listAll"},{"description":"Apply a master spread to a page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"masterName":{"type":"string"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","masterName"],"type":"object"},"name":"page_applyMaster"},{"description":"Add a text frame to a specified page with content","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"bounds":{"additionalProperties":false,"properties":{"bottom":{"type":"number"},"left":{"type":"number"},"right":{"type":"number"},"top":{"type":"number"}},"required":["top","left","bottom","right"],"type":"object"},"content":{"default":"","type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","bounds"],"type":"object"},"name":"text_addFrame"},{"description":"Set content of a text frame","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"content":{"type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","frameIndex","content"],"type":"object"},"name":"text_setContent"},{"description":"Get content from a text frame","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"includeControlChars":{"default":false,"description":"Include BOM (\\ufeff) and control chars (\\u0004) in output","type":"boolean"},"pageIndex":{"minimum":0,"type":"integer"},"timeout":{"description":"Custom timeout in ms","maximum":300000,"minimum":1000,"type":"integer"}},"required":["pageIndex","frameIndex"],"type":"object"},"name":"text_getContent"},{"description":"List all stories in the active document with optional timeout and max results","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"includeControlChars":{"default":false,"description":"Include BOM and control characters in content preview","type":"boolean"},"maxResults":{"default":500,"description":"Maximum number of stories to return","maximum":5000,"minimum":1,"type":"integer"},"timeout":{"description":"Custom timeout in ms for large documents","maximum":300000,"minimum":1000,"type":"integer"}},"type":"object"},"name":"text_getStories"},{"description":"Apply a paragraph style to a text range","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"paragraphIndex":{"minimum":0,"type":"integer"},"styleName":{"type":"string"}},"required":["pageIndex","frameIndex","styleName"],"type":"object"},"name":"text_applyParagraphStyle"},{"description":"Find and replace text content","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"findWhat":{"type":"string"},"replaceWith":{"type":"string"},"scope":{"default":"document","enum":["document","story","selection"],"type":"string"}},"required":["findWhat","replaceWith"],"type":"object"},"name":"text_findReplace"},{"description":"List all text frames on a page with optional timeout","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"includeControlChars":{"default":false,"description":"Include BOM and control characters in content preview","type":"boolean"},"pageIndex":{"minimum":0,"type":"integer"},"timeout":{"description":"Custom timeout in ms for large documents","maximum":300000,"minimum":1000,"type":"integer"}},"required":["pageIndex"],"type":"object"},"name":"text_getTextFrames"},{"description":"List all paragraph styles in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"style_listParagraph"},{"description":"List all character styles in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"style_listCharacter"},{"description":"List all object styles in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"style_listObject"},{"description":"Create a new paragraph style","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"basedOn":{"type":"string"},"color":{"type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"fontFamily":{"type":"string"},"fontStyle":{"type":"string"},"leading":{"exclusiveMinimum":0,"type":"number"},"name":{"type":"string"},"pointSize":{"exclusiveMinimum":0,"type":"number"},"properties":{"additionalProperties":{},"type":"object"},"spaceAfter":{"minimum":0,"type":"number"},"spaceBefore":{"minimum":0,"type":"number"}},"required":["name"],"type":"object"},"name":"style_createParagraph"},{"description":"Create a new character style","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"basedOn":{"type":"string"},"color":{"type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"fontFamily":{"type":"string"},"fontStyle":{"type":"string"},"name":{"type":"string"},"pointSize":{"exclusiveMinimum":0,"type":"number"},"properties":{"additionalProperties":{},"type":"object"}},"required":["name"],"type":"object"},"name":"style_createCharacter"},{"description":"Duplicate a style","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"name":{"type":"string"},"newName":{"type":"string"},"type":{"enum":["paragraph","character","object"],"type":"string"}},"required":["type","name","newName"],"type":"object"},"name":"style_duplicate"},{"description":"Delete a style","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"name":{"type":"string"},"type":{"enum":["paragraph","character","object"],"type":"string"}},"required":["type","name"],"type":"object"},"name":"style_delete"},{"description":"List all placed images in a page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex"],"type":"object"},"name":"image_list"},{"description":"Get link status for all placed images","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"image_getLinks"},{"description":"Create a geometric shape (rectangle, ellipse, polygon, line)","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"bounds":{"additionalProperties":false,"properties":{"bottom":{"type":"number"},"left":{"type":"number"},"right":{"type":"number"},"top":{"type":"number"}},"required":["top","left","bottom","right"],"type":"object"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"fillColor":{"type":"string"},"layerIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"strokeColor":{"type":"string"},"strokeWeight":{"default":1,"minimum":0,"type":"number"},"type":{"enum":["rectangle","ellipse","polygon","line"],"type":"string"}},"required":["pageIndex","type","bounds"],"type":"object"},"name":"shape_create"},{"description":"List all shapes on a page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex"],"type":"object"},"name":"shape_list"},{"description":"List all groups in a page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex"],"type":"object"},"name":"group_list"},{"description":"Ungroup a group by index","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"groupIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","groupIndex"],"type":"object"},"name":"group_ungroup"},{"description":"Export the active document to a specified format (PDF, JPG, PNG, EPUB, HTML, package)","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"filePath":{"type":"string"},"format":{"enum":["pdf","epub","html","jpg","png","package"],"type":"string"},"options":{"additionalProperties":{},"type":"object"}},"required":["format"],"type":"object"},"name":"export_document"},{"description":"Export every InDesign (.indd) file in a folder to PDF in one run — opens each document invisibly and reports per-file results","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"folderPath":{"description":"Absolute folder containing .indd files","minLength":1,"type":"string"},"outputDir":{"description":"Defaults to the same folder","type":"string"},"overwrite":{"default":false,"type":"boolean"},"timeoutMs":{"default":300000,"minimum":1000,"type":"integer"}},"required":["folderPath"],"type":"object"},"name":"export_batchFolder"},{"description":"Run a preflight check on the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"profile":{"type":"string"},"waitForCompletion":{"default":true,"type":"boolean"}},"type":"object"},"name":"export_preflight"},{"description":"Get all swatches (colors, gradients, tints) from the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"export_getSwatches"},{"description":"Get all fonts used in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"export_getFonts"},{"description":"List all master spreads in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"export_getMasterSpreads"},{"description":"List all tables in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageIndex":{"minimum":0,"type":"integer"}},"type":"object"},"name":"export_getTables"},{"description":"List XML tags in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"export_getXmlTags"},{"description":"Execute arbitrary ExtendScript code in InDesign","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"code":{"maxLength":50000,"minLength":1,"type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"required":["code"],"type":"object"},"name":"export_executeScript"},{"description":"Execute arbitrary ExtendScript code with optional debug mode that returns line-level error stack traces","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"code":{"maxLength":100000,"minLength":1,"type":"string"},"debug":{"default":false,"description":"Enable debug mode: wraps code in try/catch and returns ExtendScript error stack","type":"boolean"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"timeout":{"description":"Custom timeout in ms","maximum":300000,"minimum":1000,"type":"integer"}},"required":["code"],"type":"object"},"name":"script_run"},{"description":"Create a new master spread with a given name and page count","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"name":{"minLength":1,"type":"string"},"pageCount":{"default":1,"maximum":10,"minimum":1,"type":"integer"}},"required":["name"],"type":"object"},"name":"master_create"},{"description":"Duplicate an existing master spread","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"name":{"minLength":1,"type":"string"},"newName":{"minLength":1,"type":"string"}},"required":["name","newName"],"type":"object"},"name":"master_duplicate"},{"description":"Apply a master spread to a specific page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"masterName":{"minLength":1,"type":"string"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","masterName"],"type":"object"},"name":"master_apply"},{"description":"Delete a master spread by name","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"name":{"minLength":1,"type":"string"}},"required":["name"],"type":"object"},"name":"master_delete"},{"description":"List all master spreads with page count","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"master_list"},{"description":"List all pages on a master spread","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"name":{"minLength":1,"type":"string"}},"required":["name"],"type":"object"},"name":"master_getPages"},{"description":"Create a table on a page at specified bounds with row/column count","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"bounds":{"additionalProperties":false,"properties":{"bottom":{"type":"number"},"left":{"type":"number"},"right":{"type":"number"},"top":{"type":"number"}},"required":["top","left","bottom","right"],"type":"object"},"columns":{"default":3,"minimum":1,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageIndex":{"minimum":0,"type":"integer"},"rows":{"default":3,"minimum":1,"type":"integer"}},"required":["pageIndex","bounds"],"type":"object"},"name":"table_create"},{"description":"List all tables on a page or in the document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageIndex":{"minimum":0,"type":"integer"}},"type":"object"},"name":"table_list"},{"description":"Add a row to a table at a specific index","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"atIndex":{"minimum":0,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageIndex":{"minimum":0,"type":"integer"},"tableIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","tableIndex"],"type":"object"},"name":"table_addRow"},{"description":"Add a column to a table at a specific index","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"atIndex":{"minimum":0,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageIndex":{"minimum":0,"type":"integer"},"tableIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","tableIndex"],"type":"object"},"name":"table_addColumn"},{"description":"Delete a row from a table","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageIndex":{"minimum":0,"type":"integer"},"rowIndex":{"minimum":0,"type":"integer"},"tableIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","tableIndex","rowIndex"],"type":"object"},"name":"table_deleteRow"},{"description":"Delete a column from a table","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"columnIndex":{"minimum":0,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageIndex":{"minimum":0,"type":"integer"},"tableIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","tableIndex","columnIndex"],"type":"object"},"name":"table_deleteColumn"},{"description":"Set content of a specific cell","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"column":{"minimum":0,"type":"integer"},"content":{"type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageIndex":{"minimum":0,"type":"integer"},"row":{"minimum":0,"type":"integer"},"tableIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","tableIndex","row","column","content"],"type":"object"},"name":"table_setCell"},{"description":"Get detailed info about a table (rows, columns, cell contents)","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageIndex":{"minimum":0,"type":"integer"},"tableIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","tableIndex"],"type":"object"},"name":"table_getInfo"},{"description":"Merge a range of cells into one","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"endColumn":{"minimum":0,"type":"integer"},"endRow":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"startColumn":{"minimum":0,"type":"integer"},"startRow":{"minimum":0,"type":"integer"},"tableIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","tableIndex","startRow","startColumn","endRow","endColumn"],"type":"object"},"name":"table_mergeCells"},{"description":"Split a merged cell","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"columnIndex":{"minimum":0,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"horizontal":{"default":true,"type":"boolean"},"pageIndex":{"minimum":0,"type":"integer"},"rowIndex":{"minimum":0,"type":"integer"},"tableIndex":{"minimum":0,"type":"integer"},"vertical":{"default":true,"type":"boolean"}},"required":["pageIndex","tableIndex","rowIndex","columnIndex"],"type":"object"},"name":"table_splitCell"},{"description":"Set a cell's fill color and tint","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"columnIndex":{"minimum":0,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"fillColor":{"type":"string"},"pageIndex":{"minimum":0,"type":"integer"},"rowIndex":{"minimum":0,"type":"integer"},"tableIndex":{"minimum":0,"type":"integer"},"tintPercent":{"maximum":100,"minimum":0,"type":"number"}},"required":["pageIndex","tableIndex","rowIndex","columnIndex","fillColor"],"type":"object"},"name":"table_setCellFill"},{"description":"Set cell edge stroke properties","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"columnIndex":{"minimum":0,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"edge":{"enum":["top","bottom","left","right","all"],"type":"string"},"pageIndex":{"minimum":0,"type":"integer"},"rowIndex":{"minimum":0,"type":"integer"},"strokeColor":{"type":"string"},"strokeType":{"type":"string"},"strokeWeight":{"minimum":0,"type":"number"},"tableIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","tableIndex","rowIndex","columnIndex","edge","strokeWeight"],"type":"object"},"name":"table_setCellStroke"},{"description":"Set cell inset spacing","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"bottom":{"minimum":0,"type":"number"},"columnIndex":{"minimum":0,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"left":{"minimum":0,"type":"number"},"pageIndex":{"minimum":0,"type":"integer"},"right":{"minimum":0,"type":"number"},"rowIndex":{"minimum":0,"type":"integer"},"tableIndex":{"minimum":0,"type":"integer"},"top":{"minimum":0,"type":"number"}},"required":["pageIndex","tableIndex","rowIndex","columnIndex","top","bottom","left","right"],"type":"object"},"name":"table_setCellInset"},{"description":"Set cell text alignment","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"columnIndex":{"minimum":0,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"horizontalAlignment":{"enum":["left","center","right","justify"],"type":"string"},"pageIndex":{"minimum":0,"type":"integer"},"rowIndex":{"minimum":0,"type":"integer"},"tableIndex":{"minimum":0,"type":"integer"},"verticalAlignment":{"enum":["top","center","bottom","justify"],"type":"string"}},"required":["pageIndex","tableIndex","rowIndex","columnIndex"],"type":"object"},"name":"table_setCellAlignment"},{"description":"Set header and footer row counts","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"footerRows":{"default":0,"minimum":0,"type":"integer"},"headerRows":{"default":0,"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"repeatHeader":{"default":true,"type":"boolean"},"tableIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","tableIndex"],"type":"object"},"name":"table_setHeaderFooter"},{"description":"Set row height or column width","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"index":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"size":{"minimum":0,"type":"number"},"tableIndex":{"minimum":0,"type":"integer"},"type":{"enum":["row","column"],"type":"string"},"units":{"default":"points","enum":["points","mm","inches"],"type":"string"}},"required":["pageIndex","tableIndex","type","index","size"],"type":"object"},"name":"table_setRowColumnSize"},{"description":"List all document links with status and file path","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"resources_listLinks"},{"description":"Update/relink a specific link by index to a new file","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"linkIndex":{"minimum":0,"type":"integer"},"newFilePath":{"minLength":1,"type":"string"}},"required":["linkIndex","newFilePath"],"type":"object"},"name":"resources_updateLink"},{"description":"Re-establish all broken/modified links","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"resources_updateAllLinks"},{"description":"Embed a linked file into the document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"linkIndex":{"minimum":0,"type":"integer"}},"required":["linkIndex"],"type":"object"},"name":"resources_embedLink"},{"description":"Unembed a file and save as linked resource","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"filePath":{"minLength":1,"type":"string"},"linkIndex":{"minimum":0,"type":"integer"}},"required":["linkIndex","filePath"],"type":"object"},"name":"resources_unembedLink"},{"description":"Get detailed status for a specific link","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"linkIndex":{"minimum":0,"type":"integer"}},"required":["linkIndex"],"type":"object"},"name":"resources_getLinkInfo"},{"description":"List all open books in InDesign","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"book_list"},{"description":"Open an InDesign book file (.indb)","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"filePath":{"minLength":1,"type":"string"}},"required":["filePath"],"type":"object"},"name":"book_open"},{"description":"List all documents in a book","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"bookIndex":{"minimum":0,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"required":["bookIndex"],"type":"object"},"name":"book_getDocuments"},{"description":"Synchronize book documents with the style source","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"bookIndex":{"minimum":0,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"required":["bookIndex"],"type":"object"},"name":"book_synchronize"},{"description":"List all hyperlinks in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"interactive_listHyperlinks"},{"description":"Add a hyperlink to a text selection or page item","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndex":{"minimum":0,"type":"integer"},"name":{"minLength":1,"type":"string"},"pageIndex":{"minimum":0,"type":"integer"},"url":{"format":"uri","type":"string"}},"required":["name","url","pageIndex","itemIndex"],"type":"object"},"name":"interactive_addHyperlink"},{"description":"Delete a hyperlink by index","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"index":{"minimum":0,"type":"integer"}},"required":["index"],"type":"object"},"name":"interactive_deleteHyperlink"},{"description":"List all buttons in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"interactive_listButtons"},{"description":"List all cross-reference anchors in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"interactive_listAnchors"},{"description":"List all XML tags in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"xml_listTags"},{"description":"Create a new XML tag","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"name":{"minLength":1,"type":"string"}},"required":["name"],"type":"object"},"name":"xml_addTag"},{"description":"Delete an XML tag by name","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"name":{"minLength":1,"type":"string"}},"required":["name"],"type":"object"},"name":"xml_deleteTag"},{"description":"Apply an XML tag to a page item","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"tagName":{"minLength":1,"type":"string"}},"required":["tagName","pageIndex","itemIndex"],"type":"object"},"name":"xml_tagPageItem"},{"description":"Export document structure as XML","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"filePath":{"minLength":1,"type":"string"}},"required":["filePath"],"type":"object"},"name":"xml_export"},{"description":"Import XML file into the document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"filePath":{"minLength":1,"type":"string"}},"required":["filePath"],"type":"object"},"name":"xml_import"},{"description":"Create or modify a Table of Contents style in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"betweenEntryAndNumber":{"default":"\t","type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"entryStyle":{"type":"string"},"includeParagraphStyles":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"pageNumberStyle":{"default":"afterEntry","enum":["beforeEntry","afterEntry","noPageNumber"],"type":"string"},"replaceExisting":{"default":true,"type":"boolean"},"title":{"type":"string"},"titleStyle":{"type":"string"}},"required":["name"],"type":"object"},"name":"toc_createStyle"},{"description":"Generate a Table of Contents on a specified page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"bounds":{"additionalProperties":false,"properties":{"bottom":{"type":"number"},"left":{"type":"number"},"right":{"type":"number"},"top":{"type":"number"}},"required":["top","left","bottom","right"],"type":"object"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"layerIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"styleName":{"type":"string"},"title":{"type":"string"}},"required":["styleName","pageIndex"],"type":"object"},"name":"toc_generate"},{"description":"List all Table of Contents styles in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"toc_listStyles"},{"description":"Update (regenerate) an existing TOC from its story","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"storyIndex":{"minimum":0,"type":"integer"},"styleName":{"type":"string"}},"required":["storyIndex"],"type":"object"},"name":"toc_update"},{"description":"Add a footnote to a specific paragraph in a story","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"numberingType":{"default":"decimal","enum":["decimal","lowerRoman","upperRoman","lowerAlpha","upperAlpha"],"type":"string"},"paragraphIndex":{"minimum":0,"type":"integer"},"prefix":{"type":"string"},"startingNumber":{"minimum":1,"type":"integer"},"storyIndex":{"minimum":0,"type":"integer"},"suffix":{"type":"string"},"text":{"type":"string"}},"required":["storyIndex","paragraphIndex","text"],"type":"object"},"name":"note_addFootnote"},{"description":"List all footnotes in a story or the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"storyIndex":{"minimum":0,"type":"integer"}},"type":"object"},"name":"note_listFootnotes"},{"description":"Set footnote options for the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"layout":{"enum":["column","section"],"type":"string"},"numberingType":{"enum":["decimal","lowerRoman","upperRoman","lowerAlpha","upperAlpha"],"type":"string"},"prefix":{"type":"string"},"separator":{"type":"string"},"startingNumber":{"minimum":1,"type":"integer"},"suffix":{"type":"string"}},"type":"object"},"name":"note_footnoteOptions"},{"description":"Add an endnote to a story","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"numberingType":{"default":"decimal","enum":["decimal","lowerRoman","upperRoman","lowerAlpha","upperAlpha"],"type":"string"},"storyIndex":{"minimum":0,"type":"integer"},"text":{"type":"string"}},"required":["storyIndex","text"],"type":"object"},"name":"note_addEndnote"},{"description":"Add an index entry for the current selection","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageRange":{"default":"single","enum":["single","toNextStyle","overNext","nextPages"],"type":"string"},"pageReferenceType":{"default":"regular","enum":["bold","italic","regular"],"type":"string"},"sortBy":{"type":"string"},"subTopic":{"type":"string"},"topic":{"type":"string"}},"required":["topic"],"type":"object"},"name":"index_addEntry"},{"description":"Generate the index on a specified page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"bounds":{"additionalProperties":false,"properties":{"bottom":{"type":"number"},"left":{"type":"number"},"right":{"type":"number"},"top":{"type":"number"}},"required":["top","left","bottom","right"],"type":"object"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"includeBookDocuments":{"default":false,"type":"boolean"},"pageIndex":{"minimum":0,"type":"integer"},"title":{"type":"string"}},"required":["pageIndex"],"type":"object"},"name":"index_generate"},{"description":"List all index topics in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"index_listTopics"},{"description":"Create a new index topic","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"name":{"type":"string"},"parent":{"type":"string"}},"required":["name"],"type":"object"},"name":"index_createTopic"},{"description":"Find text using GREP pattern in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"grepWhat":{"type":"string"},"includeFootnotes":{"default":false,"type":"boolean"},"includeMasterPages":{"default":false,"type":"boolean"},"scope":{"default":"document","enum":["document","story","selection"],"type":"string"}},"required":["grepWhat"],"type":"object"},"name":"grep_find"},{"description":"Find and replace text using GREP pattern","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"grepWhat":{"type":"string"},"replaceWith":{"type":"string"},"scope":{"default":"document","enum":["document","story","selection"],"type":"string"}},"required":["grepWhat","replaceWith"],"type":"object"},"name":"grep_replace"},{"description":"Find text with specific formatting","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"findWhat":{"type":"string"},"format":{"additionalProperties":false,"properties":{"allCaps":{"type":"boolean"},"bold":{"type":"boolean"},"color":{"type":"string"},"font":{"type":"string"},"italic":{"type":"boolean"},"size":{"type":"number"},"style":{"type":"string"}},"type":"object"},"scope":{"default":"document","enum":["document","story","selection"],"type":"string"}},"required":["findWhat"],"type":"object"},"name":"grep_findFormat"},{"description":"Find and replace text while changing formatting","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"findWhat":{"type":"string"},"format":{"additionalProperties":false,"properties":{"allCaps":{"type":"boolean"},"bold":{"type":"boolean"},"color":{"type":"string"},"font":{"type":"string"},"italic":{"type":"boolean"},"size":{"type":"number"},"style":{"type":"string"}},"type":"object"},"replaceWith":{"type":"string"}},"required":["findWhat","replaceWith"],"type":"object"},"name":"grep_replaceFormat"},{"description":"Link (thread) two text frames together","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"sourceFrameIndex":{"minimum":0,"type":"integer"},"sourcePageIndex":{"minimum":0,"type":"integer"},"targetFrameIndex":{"minimum":0,"type":"integer"},"targetPageIndex":{"minimum":0,"type":"integer"}},"required":["sourcePageIndex","sourceFrameIndex","targetPageIndex","targetFrameIndex"],"type":"object"},"name":"text_linkFrames"},{"description":"Unlink a text frame from its thread","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","frameIndex"],"type":"object"},"name":"text_unlinkFrames"},{"description":"Set column count and gutter for a text frame","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"count":{"maximum":12,"minimum":1,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"gutter":{"default":12,"minimum":0,"type":"number"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","frameIndex","count"],"type":"object"},"name":"text_setColumns"},{"description":"Set text wrap preferences for an object","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndex":{"minimum":0,"type":"integer"},"mode":{"enum":["none","boundingBox","objectShape","contour"],"type":"string"},"offset":{"default":7.055,"minimum":0,"type":"number"},"pageIndex":{"minimum":0,"type":"integer"},"side":{"default":"both","enum":["both","left","right","towardSpine","awayFromSpine"],"type":"string"}},"required":["pageIndex","itemIndex","mode"],"type":"object"},"name":"text_setTextWrap"},{"description":"Set drop cap options for a paragraph","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"characterStyle":{"type":"string"},"characters":{"default":1,"maximum":10,"minimum":1,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"lines":{"default":3,"maximum":10,"minimum":1,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"paragraphIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","frameIndex","paragraphIndex"],"type":"object"},"name":"text_setDropCap"},{"description":"Set keep options (widow/orphan control) for a paragraph","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"keepWithNext":{"default":0,"maximum":5,"minimum":0,"type":"integer"},"keepWithPrevious":{"default":false,"type":"boolean"},"linesTogether":{"default":2,"maximum":10,"minimum":1,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"paragraphIndex":{"minimum":0,"type":"integer"},"startParagraph":{"default":"anywhere","enum":["anywhere","nextColumn","nextPage","nextOddPage","nextEvenPage"],"type":"string"}},"required":["pageIndex","frameIndex"],"type":"object"},"name":"text_setKeepOptions"},{"description":"Set text frame inset spacing","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"bottom":{"minimum":0,"type":"number"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"left":{"minimum":0,"type":"number"},"pageIndex":{"minimum":0,"type":"integer"},"right":{"minimum":0,"type":"number"},"top":{"minimum":0,"type":"number"}},"required":["pageIndex","frameIndex","top","left","bottom","right"],"type":"object"},"name":"text_setInsetSpacing"},{"description":"Set auto-sizing type for a text frame","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"autoSizingType":{"enum":["off","heightOnly","widthAndHeight","heightAndWidth"],"type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"referencePoint":{"enum":["topLeft","topCenter","topRight","leftCenter","center","rightCenter","bottomLeft","bottomCenter","bottomRight"],"type":"string"}},"required":["pageIndex","frameIndex","autoSizingType"],"type":"object"},"name":"text_setAutoSize"},{"description":"Set vertical justification for a text frame","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"justification":{"enum":["top","center","bottom","justify"],"type":"string"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","frameIndex","justification"],"type":"object"},"name":"text_setVerticalJustification"},{"description":"Set first baseline options for a text frame","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"minOffset":{"minimum":0,"type":"number"},"offsetType":{"enum":["leading","capHeight","xHeight","baseline","ascent","fixedHeight","leadingFixed","minimum"],"type":"string"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","frameIndex","offsetType"],"type":"object"},"name":"text_setFirstBaseline"},{"description":"Set whether text frame ignores text wrap","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"ignoreWrap":{"type":"boolean"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","frameIndex","ignoreWrap"],"type":"object"},"name":"text_setIgnoreWrap"},{"description":"Add or modify rule above a paragraph","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"paragraphIndex":{"minimum":0,"type":"integer"},"ruleColor":{"type":"string"},"ruleLeftIndent":{"type":"number"},"ruleOffset":{"type":"number"},"ruleOn":{"type":"boolean"},"ruleRightIndent":{"type":"number"},"ruleType":{"type":"string"},"ruleWeight":{"type":"number"},"ruleWidth":{"enum":["column","text","custom"],"type":"string"}},"required":["pageIndex","frameIndex","paragraphIndex","ruleOn","ruleWeight","ruleColor","ruleWidth","ruleOffset","ruleLeftIndent","ruleRightIndent"],"type":"object"},"name":"text_setParagraphRuleAbove"},{"description":"Add or modify rule below a paragraph","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"paragraphIndex":{"minimum":0,"type":"integer"},"ruleColor":{"type":"string"},"ruleLeftIndent":{"type":"number"},"ruleOffset":{"type":"number"},"ruleOn":{"type":"boolean"},"ruleRightIndent":{"type":"number"},"ruleType":{"type":"string"},"ruleWeight":{"type":"number"},"ruleWidth":{"enum":["column","text","custom"],"type":"string"}},"required":["pageIndex","frameIndex","paragraphIndex","ruleOn","ruleWeight","ruleColor","ruleWidth","ruleOffset","ruleLeftIndent","ruleRightIndent"],"type":"object"},"name":"text_setParagraphRuleBelow"},{"description":"Set tab stops for a paragraph","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"paragraphIndex":{"minimum":0,"type":"integer"},"tabStops":{"items":{"additionalProperties":false,"properties":{"alignment":{"enum":["left","center","right","decimal","character"],"type":"string"},"character":{"default":"","type":"string"},"leader":{"default":"","type":"string"},"position":{"type":"number"}},"required":["position","alignment"],"type":"object"},"type":"array"}},"required":["pageIndex","frameIndex","paragraphIndex","tabStops"],"type":"object"},"name":"text_setTabs"},{"description":"Set hyphenation settings for a paragraph","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"hyphenation":{"type":"boolean"},"letterSpacing":{"type":"number"},"maxConsecutiveHyphens":{"minimum":0,"type":"integer"},"minWordLength":{"minimum":1,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"paragraphIndex":{"minimum":0,"type":"integer"},"wordSpacing":{"type":"number"}},"required":["pageIndex","frameIndex","paragraphIndex","hyphenation"],"type":"object"},"name":"text_setHyphenation"},{"description":"Get detailed formatting (font, size, style, character style) for each text style range in a paragraph","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"includeControlChars":{"default":false,"description":"Include BOM/control chars in range text","type":"boolean"},"paragraphIndex":{"minimum":0,"type":"integer"},"storyIndex":{"minimum":0,"type":"integer"}},"required":["storyIndex","paragraphIndex"],"type":"object"},"name":"text_getFormatting"},{"description":"Apply a character style to a range of characters within a paragraph","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"endChar":{"minimum":1,"type":"integer"},"paragraphIndex":{"minimum":0,"type":"integer"},"startChar":{"minimum":0,"type":"integer"},"storyIndex":{"minimum":0,"type":"integer"},"styleName":{"type":"string"}},"required":["storyIndex","paragraphIndex","startChar","endChar","styleName"],"type":"object"},"name":"text_applyCharStyle"},{"description":"Apply font family, style, and/or size to a range of characters within a paragraph","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"endChar":{"minimum":1,"type":"integer"},"fontFamily":{"description":"Font family name (e.g. \"Minion Pro\")","type":"string"},"fontStyle":{"description":"Font style (e.g. \"Bold\", \"Italic\", \"Regular\")","type":"string"},"paragraphIndex":{"minimum":0,"type":"integer"},"pointSize":{"exclusiveMinimum":0,"type":"number"},"startChar":{"minimum":0,"type":"integer"},"storyIndex":{"minimum":0,"type":"integer"}},"required":["storyIndex","paragraphIndex","startChar","endChar"],"type":"object"},"name":"text_applyFont"},{"description":"Search text within a story using a GREP pattern, returning match positions and context","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"maxResults":{"default":200,"maximum":5000,"minimum":1,"type":"integer"},"pattern":{"description":"GREP search pattern","type":"string"},"storyIndex":{"minimum":0,"type":"integer"},"timeout":{"maximum":300000,"minimum":1000,"type":"integer"}},"required":["storyIndex","pattern"],"type":"object"},"name":"text_search"},{"description":"Find text ranges with specific formatting (font family, style, or size) within a story","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"fontFamily":{"description":"Font family to search for","type":"string"},"fontStyle":{"description":"Font style to search for (e.g. \"Bold\", \"Italic\")","type":"string"},"maxResults":{"default":200,"maximum":5000,"minimum":1,"type":"integer"},"pointSize":{"description":"Font size in points","type":"number"},"storyIndex":{"minimum":0,"type":"integer"},"timeout":{"maximum":300000,"minimum":1000,"type":"integer"}},"required":["storyIndex"],"type":"object"},"name":"text_searchFormatting"},{"description":"Create a cross-reference in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"appliedFormat":{"default":"Full Paragraph & Page Number","type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"sourceText":{"type":"string"},"targetName":{"type":"string"},"targetType":{"enum":["paragraph","anchor","table","footnote","endnote"],"type":"string"}},"required":["sourceText","targetType","targetName"],"type":"object"},"name":"xref_create"},{"description":"List all cross-references in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"xref_list"},{"description":"Update the format of a cross-reference","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"appliedFormat":{"type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"index":{"minimum":0,"type":"integer"}},"required":["index","appliedFormat"],"type":"object"},"name":"xref_updateFormat"},{"description":"Apply a drop shadow effect to an object","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"angle":{"default":135,"maximum":360,"minimum":-360,"type":"number"},"blur":{"default":5,"minimum":0,"type":"number"},"color":{"default":"Black","type":"string"},"distance":{"default":7,"minimum":0,"type":"number"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndex":{"minimum":0,"type":"integer"},"mode":{"default":"multiply","enum":["multiply","screen","normal"],"type":"string"},"opacity":{"default":75,"maximum":100,"minimum":0,"type":"number"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","itemIndex"],"type":"object"},"name":"effect_applyDropShadow"},{"description":"Apply a feather effect to an object","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"chamferWidth":{"default":0,"minimum":0,"type":"number"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndex":{"minimum":0,"type":"integer"},"noise":{"default":0,"maximum":100,"minimum":0,"type":"number"},"pageIndex":{"minimum":0,"type":"integer"},"type":{"default":"basic","enum":["basic","directional","gradient"],"type":"string"},"width":{"default":5,"minimum":0,"type":"number"}},"required":["pageIndex","itemIndex"],"type":"object"},"name":"effect_applyFeather"},{"description":"Set transparency and blend mode for an object","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"blendMode":{"default":"normal","enum":["normal","multiply","screen","overlay","darken","lighten","colorDodge","colorBurn","hardLight","softLight","difference","exclusion"],"type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"isolatedBlending":{"default":false,"type":"boolean"},"itemIndex":{"minimum":0,"type":"integer"},"knockoutGroup":{"default":false,"type":"boolean"},"opacity":{"default":100,"maximum":100,"minimum":0,"type":"number"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","itemIndex"],"type":"object"},"name":"effect_applyTransparency"},{"description":"Apply a gradient feather effect to an object","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"angle":{"default":0,"maximum":360,"minimum":-360,"type":"number"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"endPoint":{"additionalProperties":false,"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"itemIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"startPoint":{"additionalProperties":false,"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"type":{"default":"linear","enum":["linear","radial"],"type":"string"}},"required":["pageIndex","itemIndex"],"type":"object"},"name":"effect_applyGradientFeather"},{"description":"Align objects on a page relative to selection, margins, or page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"alignMode":{"enum":["left","center","right","top","middle","bottom"],"type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndices":{"items":{"minimum":0,"type":"integer"},"minItems":1,"type":"array"},"pageIndex":{"minimum":0,"type":"integer"},"relativeTo":{"default":"selection","enum":["selection","margins","page"],"type":"string"}},"required":["pageIndex","itemIndices","alignMode"],"type":"object"},"name":"transform_align"},{"description":"Distribute objects evenly on a page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"bounds":{"default":"selection","enum":["selection","margins","page"],"type":"string"},"distributeMode":{"enum":["left","center","horizontalSpace","right","top","middle","vertical","bottom"],"type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndices":{"items":{"minimum":0,"type":"integer"},"minItems":2,"type":"array"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","itemIndices","distributeMode"],"type":"object"},"name":"transform_distribute"},{"description":"Rotate an object by a specified angle","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"angle":{"type":"number"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndex":{"minimum":0,"type":"integer"},"layerIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","itemIndex","angle"],"type":"object"},"name":"transform_rotate"},{"description":"Scale an object by percentages","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"isPercentage":{"default":true,"type":"boolean"},"itemIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"scaleX":{"default":100,"maximum":10000,"minimum":0.1,"type":"number"},"scaleY":{"default":100,"maximum":10000,"minimum":0.1,"type":"number"}},"required":["pageIndex","itemIndex"],"type":"object"},"name":"transform_scale"},{"description":"Flip an object horizontally or vertically","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"axis":{"enum":["horizontal","vertical"],"type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","itemIndex","axis"],"type":"object"},"name":"transform_flip"},{"description":"Create a table style in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"alternatingFillColors":{"items":{"type":"string"},"type":"array"},"alternatingFills":{"default":"none","enum":["everyRow","everyColumn","none"],"type":"string"},"basedOn":{"type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"fillColor":{"type":"string"},"name":{"type":"string"},"spaceAfter":{"minimum":0,"type":"number"},"spaceBefore":{"minimum":0,"type":"number"},"strokeColor":{"type":"string"},"strokeWeight":{"minimum":0,"type":"number"}},"required":["name"],"type":"object"},"name":"tableStyle_create"},{"description":"List all table styles in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"tableStyle_list"},{"description":"Create a cell style in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"basedOn":{"type":"string"},"bottomInset":{"minimum":0,"type":"number"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"fillColor":{"type":"string"},"leftInset":{"minimum":0,"type":"number"},"name":{"type":"string"},"paragraphStyle":{"type":"string"},"rightInset":{"minimum":0,"type":"number"},"strokeColor":{"type":"string"},"strokeWeight":{"minimum":0,"type":"number"},"topInset":{"minimum":0,"type":"number"}},"required":["name"],"type":"object"},"name":"cellStyle_create"},{"description":"List all cell styles in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"cellStyle_list"},{"description":"Create a new section starting at a specified page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"includePrefix":{"default":false,"type":"boolean"},"name":{"type":"string"},"numberingStyle":{"default":"decimal","enum":["decimal","lowerRoman","upperRoman","lowerAlpha","upperAlpha"],"type":"string"},"pageNumberStart":{"default":1,"minimum":1,"type":"integer"},"sectionPrefix":{"type":"string"},"startPageIndex":{"minimum":0,"type":"integer"}},"required":["startPageIndex"],"type":"object"},"name":"section_create"},{"description":"List all sections in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"section_list"},{"description":"Update page numbering for a section","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"numberingStyle":{"enum":["decimal","lowerRoman","upperRoman","lowerAlpha","upperAlpha"],"type":"string"},"pageNumberStart":{"minimum":1,"type":"integer"},"sectionIndex":{"minimum":0,"type":"integer"}},"required":["sectionIndex","pageNumberStart"],"type":"object"},"name":"section_setNumbering"},{"description":"Delete a section by its index","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"sectionIndex":{"minimum":0,"type":"integer"}},"required":["sectionIndex"],"type":"object"},"name":"section_delete"},{"description":"Create a new color swatch","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"black":{"default":100,"maximum":100,"minimum":0,"type":"number"},"blue":{"default":0,"maximum":255,"minimum":0,"type":"number"},"colorType":{"default":"process","enum":["process","spot"],"type":"string"},"cyan":{"default":0,"maximum":100,"minimum":0,"type":"number"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"green":{"default":0,"maximum":255,"minimum":0,"type":"number"},"magenta":{"default":0,"maximum":100,"minimum":0,"type":"number"},"model":{"enum":["cmyk","rgb","lab","spot"],"type":"string"},"name":{"type":"string"},"red":{"default":0,"maximum":255,"minimum":0,"type":"number"},"yellow":{"default":0,"maximum":100,"minimum":0,"type":"number"}},"required":["name","model"],"type":"object"},"name":"color_swatch_create"},{"description":"List all color swatches in the document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"color_swatch_list"},{"description":"Delete a color swatch by name","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"name":{"type":"string"}},"required":["name"],"type":"object"},"name":"color_swatch_delete"},{"description":"Create a gradient swatch","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"name":{"type":"string"},"stops":{"items":{"additionalProperties":false,"properties":{"color":{"type":"string"},"position":{"maximum":100,"minimum":0,"type":"number"}},"required":["color","position"],"type":"object"},"maxItems":10,"minItems":2,"type":"array"},"type":{"default":"linear","enum":["linear","radial"],"type":"string"}},"required":["name","stops"],"type":"object"},"name":"color_gradient_create"},{"description":"Apply a color swatch to selected item (fill or stroke)","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"swatchName":{"type":"string"},"target":{"default":"fill","enum":["fill","stroke","both"],"type":"string"}},"required":["swatchName"],"type":"object"},"name":"color_apply"},{"description":"List all inks in the document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"color_ink_list"},{"description":"List all available fonts","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"font_list"},{"description":"Search fonts by name","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"query":{"type":"string"}},"required":["query"],"type":"object"},"name":"font_find"},{"description":"Change font of selected text","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"fontName":{"type":"string"},"fontStyle":{"type":"string"},"size":{"exclusiveMinimum":0,"type":"number"}},"required":["fontName"],"type":"object"},"name":"font_change"},{"description":"Insert a special glyph at the cursor position","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"fontName":{"type":"string"},"glyphId":{"minimum":0,"type":"integer"}},"required":["glyphId"],"type":"object"},"name":"font_glyph_insert"},{"description":"Check for missing fonts in the document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"font_missing_check"},{"description":"Place an image from a file path onto a page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"filePath":{"type":"string"},"height":{"exclusiveMinimum":0,"type":"number"},"pageIndex":{"minimum":0,"type":"integer"},"width":{"exclusiveMinimum":0,"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["pageIndex","filePath","x","y"],"type":"object"},"name":"image_place"},{"description":"Adjust image properties (brightness, contrast, etc.)","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"brightness":{"maximum":100,"minimum":-100,"type":"number"},"contrast":{"maximum":100,"minimum":-100,"type":"number"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","itemIndex"],"type":"object"},"name":"image_adjust"},{"description":"Fit image content to its frame","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"fitting":{"enum":["fill","proportional","fitContentToFrame","fitFrameToContent","center"],"type":"string"},"itemIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","itemIndex","fitting"],"type":"object"},"name":"image_fit"},{"description":"Relink/replace an image with a new file","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"filePath":{"type":"string"},"itemIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","itemIndex","filePath"],"type":"object"},"name":"image_relink"},{"description":"Get metadata for an image on a page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","itemIndex"],"type":"object"},"name":"image_info"},{"description":"Create a new layer in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"guideLayer":{"default":false,"type":"boolean"},"locked":{"default":false,"type":"boolean"},"name":{"default":"Layer","type":"string"},"printable":{"default":true,"type":"boolean"},"visible":{"default":true,"type":"boolean"}},"type":"object"},"name":"layer_create"},{"description":"List all layers in the active document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"layer_list"},{"description":"Move a layer to a new position in the layer stack","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"layerIndex":{"minimum":0,"type":"integer"},"newIndex":{"minimum":0,"type":"integer"}},"required":["layerIndex","newIndex"],"type":"object"},"name":"layer_reorder"},{"description":"Set layer properties (visibility, lock, etc.)","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"layerIndex":{"minimum":0,"type":"integer"},"locked":{"type":"boolean"},"printable":{"type":"boolean"},"visible":{"type":"boolean"}},"required":["layerIndex"],"type":"object"},"name":"layer_setProperties"},{"description":"Delete a layer","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"layerIndex":{"minimum":0,"type":"integer"}},"required":["layerIndex"],"type":"object"},"name":"layer_delete"},{"description":"Create a rectangle on a page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"cornerRadius":{"minimum":0,"type":"number"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"fillColor":{"type":"string"},"height":{"exclusiveMinimum":0,"type":"number"},"pageIndex":{"minimum":0,"type":"integer"},"strokeColor":{"type":"string"},"strokeWeight":{"default":0,"minimum":0,"type":"number"},"width":{"exclusiveMinimum":0,"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["pageIndex","x","y","width","height"],"type":"object"},"name":"shape_rectangle_create"},{"description":"Create an ellipse or circle on a page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"fillColor":{"type":"string"},"height":{"exclusiveMinimum":0,"type":"number"},"pageIndex":{"minimum":0,"type":"integer"},"strokeColor":{"type":"string"},"strokeWeight":{"default":0,"minimum":0,"type":"number"},"width":{"exclusiveMinimum":0,"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["pageIndex","x","y","width","height"],"type":"object"},"name":"shape_ellipse_create"},{"description":"Create a polygon on a page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"fillColor":{"type":"string"},"height":{"exclusiveMinimum":0,"type":"number"},"numberOfSides":{"default":6,"maximum":100,"minimum":3,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"strokeColor":{"type":"string"},"strokeWeight":{"default":0,"minimum":0,"type":"number"},"width":{"exclusiveMinimum":0,"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["pageIndex","x","y","width","height"],"type":"object"},"name":"shape_polygon_create"},{"description":"Create a graphic line on a page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"pageIndex":{"minimum":0,"type":"integer"},"strokeColor":{"type":"string"},"strokeWeight":{"default":1,"minimum":0,"type":"number"},"x1":{"type":"number"},"x2":{"type":"number"},"y1":{"type":"number"},"y2":{"type":"number"}},"required":["pageIndex","x1","y1","x2","y2"],"type":"object"},"name":"shape_line_create"},{"description":"Modify properties of an existing shape","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"cornerRadius":{"minimum":0,"type":"number"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"fillColor":{"type":"string"},"height":{"exclusiveMinimum":0,"type":"number"},"itemIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"strokeColor":{"type":"string"},"strokeWeight":{"minimum":0,"type":"number"},"width":{"exclusiveMinimum":0,"type":"number"},"x":{"type":"number"},"y":{"type":"number"}},"required":["pageIndex","itemIndex"],"type":"object"},"name":"shape_modify"},{"description":"Delete a shape from a page","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","itemIndex"],"type":"object"},"name":"shape_delete"},{"description":"Undo the last operation","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"undo"},{"description":"Redo the last undone operation","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"redo"},{"description":"Get undo/redo state information","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"undo_history"},{"description":"Begin an undo group. While active, each subsequent script runs as a single undo step, so one Undo reverts a whole tool call (e.g. a multi-step recipe). It cannot merge separate calls into one step — each call is still its own undo entry. Call undo_endGroup() to restore the default.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"undo_beginGroup"},{"description":"End the undo group and restore the default undo behavior","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"undo_endGroup"},{"description":"Create an anchored object at an insertion point or attach to a text frame","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"anchorPoint":{"default":"topLeft","enum":["topLeft","topCenter","topRight","leftCenter","center","rightCenter","bottomLeft","bottomCenter","bottomRight"],"type":"string"},"anchoredPosition":{"default":"custom","enum":["inline","aboveLine","custom"],"type":"string"},"contentType":{"enum":["textFrame","rectangle","oval"],"type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"height":{"minimum":0,"type":"number"},"insertionIndex":{"minimum":0,"type":"integer"},"spaceAbove":{"default":0,"minimum":0,"type":"number"},"storyIndex":{"minimum":0,"type":"integer"},"width":{"minimum":0,"type":"number"},"xOffset":{"default":0,"type":"number"},"yOffset":{"default":0,"type":"number"}},"required":["storyIndex","insertionIndex","contentType","width","height"],"type":"object"},"name":"anchoredObject_create"},{"description":"Reposition an anchored object","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"anchorPoint":{"enum":["topLeft","topCenter","topRight","leftCenter","center","rightCenter","bottomLeft","bottomCenter","bottomRight"],"type":"string"},"anchoredPosition":{"enum":["inline","aboveLine","custom"],"type":"string"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"spaceAbove":{"minimum":0,"type":"number"},"xOffset":{"type":"number"},"yOffset":{"type":"number"}},"required":["pageIndex","itemIndex"],"type":"object"},"name":"anchoredObject_setPosition"},{"description":"Release anchored object to regular page item","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","itemIndex"],"type":"object"},"name":"anchoredObject_release"},{"description":"Get anchored object settings","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","itemIndex"],"type":"object"},"name":"anchoredObject_getSettings"},{"description":"Set multiple anchored object properties","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"itemIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"properties":{"additionalProperties":{},"type":"object"}},"required":["pageIndex","itemIndex","properties"],"type":"object"},"name":"anchoredObject_setProperties"},{"description":"Define a new numbered or bulleted list","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"continueNumbering":{"default":true,"type":"boolean"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"name":{"minLength":1,"type":"string"},"type":{"enum":["bulleted","numbered"],"type":"string"}},"required":["name","type"],"type":"object"},"name":"list_define"},{"description":"Apply a list to a specific paragraph","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"level":{"default":1,"minimum":1,"type":"integer"},"listName":{"minLength":1,"type":"string"},"pageIndex":{"minimum":0,"type":"integer"},"paragraphIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","frameIndex","paragraphIndex","listName"],"type":"object"},"name":"list_applyToParagraph"},{"description":"Apply a list to the current text selection","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"level":{"default":1,"minimum":1,"type":"integer"},"listName":{"minLength":1,"type":"string"}},"required":["listName"],"type":"object"},"name":"list_applyToSelection"},{"description":"Remove list formatting from a paragraph","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"paragraphIndex":{"minimum":0,"type":"integer"}},"required":["pageIndex","frameIndex","paragraphIndex"],"type":"object"},"name":"list_removeFromParagraph"},{"description":"List all defined lists in the document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"list_list"},{"description":"Restart numbering at a specific paragraph","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"frameIndex":{"minimum":0,"type":"integer"},"pageIndex":{"minimum":0,"type":"integer"},"paragraphIndex":{"minimum":0,"type":"integer"},"startNumber":{"minimum":1,"type":"integer"}},"required":["pageIndex","frameIndex","paragraphIndex","startNumber"],"type":"object"},"name":"list_restartNumbering"},{"description":"Select a data source (CSV/TSV/XML) file for data merge","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"filePath":{"type":"string"}},"required":["filePath"],"type":"object"},"name":"dataMerge_selectDataSource"},{"description":"List available data merge fields from the current data source","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"dataMerge_listFields"},{"description":"Merge records into the document using the selected data source","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"alertWhenOverset":{"default":true,"type":"boolean"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"generatePreview":{"default":false,"type":"boolean"},"linkImages":{"default":false,"type":"boolean"},"recordsPerPage":{"default":1,"minimum":1,"type":"integer"}},"type":"object"},"name":"dataMerge_mergeRecords"},{"description":"Export the merged document to a file","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"format":{"enum":["pdf","jpg","indd"],"type":"string"},"outputPath":{"type":"string"}},"required":["format","outputPath"],"type":"object"},"name":"dataMerge_export"},{"description":"Remove the current data source from the document","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."}},"type":"object"},"name":"dataMerge_removeDataSource"},{"description":"Render a page of the active document as an image (PNG or JPEG) so you can visually inspect layout, colors and typography","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"documentIndex":{"minimum":0,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"format":{"default":"png","enum":["png","jpeg"],"type":"string"},"pageIndex":{"default":0,"minimum":0,"type":"integer"},"resolutionPpi":{"default":150,"maximum":600,"minimum":72,"type":"integer"}},"type":"object"},"name":"preview_document"},{"description":"Place a text file and flow it across as many pages as it needs in one call — creates the frames, links them, adds pages when it runs out, and reports where the story ended and whether it still overflows","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"documentIndex":{"description":"Index into the open-document list (see document_getState); defaults to the front document","minimum":0,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"filePath":{"description":"Absolute path to the text file to place (.txt, .rtf, .docx, … or a text-only .indd)","minLength":1,"type":"string"},"maxPages":{"default":10,"description":"Hard cap on frames created; if reached, the remaining overset text is reported, not thrown","maximum":50,"minimum":1,"type":"integer"},"pageIndex":{"default":0,"description":"Page to start the story on (0-based)","minimum":0,"type":"integer"},"timeout":{"description":"Custom timeout in ms","maximum":300000,"minimum":1000,"type":"integer"}},"required":["filePath"],"type":"object"},"name":"recipe_flowTextStory"},{"description":"Export the active document to PDF using a named PDF export preset in one call — validates the preset first and, if it is wrong, fails with the list of valid preset names","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"documentIndex":{"description":"Index into the open-document list (see document_getState); defaults to the front document","minimum":0,"type":"integer"},"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"filePath":{"description":"Absolute path of the PDF to write","minLength":1,"type":"string"},"presetName":{"description":"Name of an existing PDF export preset, e.g. \"[Press Quality]\" — the error lists the valid names","minLength":1,"type":"string"},"timeout":{"description":"Custom timeout in ms","maximum":300000,"minimum":1000,"type":"integer"}},"required":["presetName","filePath"],"type":"object"},"name":"recipe_exportPreset"},{"description":"Report document change activity pushed by the plugin over the bridge — no InDesign round-trip. Pass `since` (epoch ms) to learn whether anything changed after that moment, e.g. to skip re-rendering a preview when nothing changed.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"document_id":{"anyOf":[{"minLength":1,"type":"string"},{"minimum":0,"type":"integer"}],"description":"Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document."},"since":{"type":"number"}},"type":"object"},"name":"changes_getStatus"}]}}}
