image_fit
Fit an image to its InDesign frame by applying fill, proportional, content-to-frame, frame-to-content, or center fitting.
Instructions
Fit image content to its frame
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": {
"pageIndex": "<pageIndex>",
"itemIndex": "<itemIndex>",
"fitting": "<fitting>"
},
"name": "image_fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fitting | Yes | ||
| itemIndex | Yes | ||
| pageIndex | Yes | ||
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. |