text_setParagraphRuleAbove
Add or modify a rule above a paragraph in Adobe InDesign, setting its color, weight, width, offset, and indents for precise paragraph borders.
Instructions
Add or modify rule above a paragraph
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>",
"paragraphIndex": "<paragraphIndex>",
"ruleOn": "<ruleOn>",
"ruleWeight": "<ruleWeight>",
"ruleColor": "<ruleColor>",
"ruleWidth": "<ruleWidth>",
"ruleOffset": "<ruleOffset>",
"ruleLeftIndent": "<ruleLeftIndent>",
"ruleRightIndent": "<ruleRightIndent>"
},
"name": "text_setParagraphRuleAbove"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruleOn | Yes | ||
| ruleType | No | ||
| pageIndex | Yes | ||
| ruleColor | Yes | ||
| ruleWidth | Yes | ||
| frameIndex | Yes | ||
| ruleOffset | Yes | ||
| ruleWeight | 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. | |
| paragraphIndex | Yes | ||
| ruleLeftIndent | Yes | ||
| ruleRightIndent | Yes |