set_keep_with_next
Prevent page breaks between a paragraph and the next paragraph by enabling or disabling the keep-with-next property. Useful for maintaining cohesion in document layout.
Instructions
Keep this paragraph on the same page as the next paragraph.
Args: para_id: paraId of the target paragraph. enabled: True to enable keep-with-next, False to remove it.
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": {
"para_id": "<para_id>",
"enabled": "<enabled>"
},
"name": "set_keep_with_next"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | ||
| para_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |