format_layout
Apply paragraph spacing, alignment, pagination flags, table row height, and cell padding to DOCX/ODT files or Google Docs, with revision-aware property changes.
Instructions
Apply layout controls (paragraph spacing, paragraph alignment and pagination flags, table row height, cell padding). paragraph_properties sets alignment (w:jc) and sets (true) or removes (false) direct pageBreakBefore/keepNext/keepLines; requests that change nothing are no-ops. Google Docs supports paragraph spacing only. Surface: revisionable — DOCX geometry edits emit native property-change revisions (w:pPrChange/w:trPrChange/w:tcPrChange).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "format_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strict | No | ||
| file_path | No | Path to the DOCX or ODT file. | |
| row_height | No | ||
| cell_padding | No | ||
| google_doc_id | No | Google Doc ID or URL (alternative to file_path). Extract from URL: docs.google.com/document/d/{ID}/edit | |
| paragraph_spacing | No | ||
| paragraph_properties | No |