text_setContent
Sets or replaces the text content of a specified InDesign text frame by page and frame index, optionally targeting a named or indexed open document.
Instructions
Set content of a text 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>",
"frameIndex": "<frameIndex>",
"content": "<content>"
},
"name": "text_setContent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| pageIndex | Yes | ||
| frameIndex | 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. |