set_page_margins
Define custom page margins for DOCX files by specifying top, left, right, and bottom values in centimeters.
Instructions
Set page margins for a DOCX file (in cm)
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": "set_page_margins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_cm | No | Top margin in cm | |
| left_cm | No | Left margin in cm | |
| right_cm | No | Right margin in cm | |
| bottom_cm | No | Bottom margin in cm | |
| file_path | Yes | Absolute path to the .docx file | |
| output_path | No | Save to different path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |