set_page_style
Set page orientation and margins for an open HWP document, specifying portrait or landscape and top, bottom, left, right margins in points.
Instructions
Set page style for the document.
Args: doc_id: Document ID from open_document orientation: "portrait" or "landscape" margin_top: Top margin in pt margin_bottom: Bottom margin in pt margin_left: Left margin in pt margin_right: Right margin in pt
Returns: Style confirmation
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": {
"doc_id": "<doc_id>"
},
"name": "set_page_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| margin_top | No | ||
| margin_left | No | ||
| orientation | No | ||
| margin_right | No | ||
| margin_bottom | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||