import_from_document
Copy paragraph, character, and object styles plus parent pages from another InDesign document into the active one, overwriting matching names by default or renaming them when overwrite is disabled.
Instructions
Copy paragraph styles, character styles, object styles and/or parent pages from another .indd/.indt into the active document (e.g. start a new book with the exact setup of a finished one). Existing items with the same name are overwritten unless overwrite:false (then renamed).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>"
},
"name": "import_from_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | ||
| overwrite | No | ||
| parentPages | No | ||
| objectStyles | No | ||
| characterStyles | No | ||
| paragraphStyles | No |