apply_hwp_paragraph_style
Apply paragraph formatting such as alignment, indentation, and line spacing to a specific paragraph in an HWPX file.
Instructions
Apply paragraph formatting (alignment·indent·line_spacing) to the Nth paragraph in an .hwpx. Adds a new paraPr to header.xml and retargets the paragraph's paraPrIDRef. align: LEFT|CENTER|RIGHT|JUSTIFY|DISTRIBUTE. Args: file_path, paragraph_index, align/indent/line_spacing (any subset), output_path (optional).
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": {
"file_path": "<file_path>",
"paragraph_index": "<paragraph_index>"
},
"name": "apply_hwp_paragraph_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| paragraph_index | Yes | ||
| align | No | ||
| indent | No | ||
| line_spacing | No | ||
| output_path | No |