Word Format Paragraphs
word_format_paragraphsSets spacing, keep-together, keep-with-next, and widow control on every paragraph containing a string, returning the number of paragraphs changed.
Instructions
Set layout properties on every paragraph containing a string.
keep_with_next ties a heading or a caption to what follows, keep_together forbids splitting a paragraph across pages, widow_control switches widow and orphan control on. Spacing is in points. Returns how many paragraphs changed.
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": {
"contains": "<contains>"
},
"name": "word_format_paragraphs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| contains | Yes | ||
| space_after | No | ||
| space_before | No | ||
| keep_together | No | ||
| widow_control | No | ||
| keep_with_next | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |