indesign_uxp_set_text_frame
Replace the entire contents of a specific InDesign text frame via UXP by supplying its document and frame IDs. Use this to update frame text programmatically while the frame is unlocked.
Instructions
Replaces the entire contents of one explicitly identified text frame through UXP. The frame must not be locked; this modifies the document and can affect its saved state. Use IDs returned by inspection. After a timeout, the panel may still have completed the write; inspect the frame before retrying and do not retry blindly.
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": {
"document_id": "<document_id>",
"text_frame_id": "<text_frame_id>",
"text": "<text>"
},
"name": "indesign_uxp_set_text_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text content; maximum 50,000 characters | |
| timeout_ms | No | Optional wait in milliseconds; defaults to 30,000 and is limited to 1,000–120,000 | |
| document_id | Yes | Positive numeric Document.id from the inspection result | |
| text_frame_id | Yes | Positive numeric TextFrame.id from the inspection result |