word_set_page_layout
Set page size, orientation, and margins for Word documents. Adjust dimensions precisely to meet formatting requirements.
Instructions
Set page size, orientation, and/or margins for a Word document
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>"
},
"name": "word_set_page_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width_pt | No | Page width, in points | |
| file_path | Yes | Absolute path to the .docx file | |
| height_pt | No | Page height, in points | |
| orientation | No | Page orientation | |
| margin_top_pt | No | Top margin, in points | |
| margin_left_pt | No | Left margin, in points | |
| margin_right_pt | No | Right margin, in points | |
| margin_bottom_pt | No | Bottom margin, in points | |
| margin_footer_pt | No | Footer margin, in points | |
| margin_gutter_pt | No | Gutter margin, in points | |
| margin_header_pt | No | Header margin, in points |