format_alignment
Apply horizontal and vertical alignment, text wrapping, and rotation to a range of cells in an Excel workbook.
Instructions
Apply alignment formatting to a range of cells.
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": {
"workbook_path": "<workbook_path>",
"sheet_name": "<sheet_name>",
"range_ref": "<range_ref>"
},
"name": "format_alignment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workbook_path | Yes | Path to the Excel workbook | |
| sheet_name | Yes | Name of the worksheet | |
| range_ref | Yes | Range to format (e.g., 'A1:B10') | |
| horizontal | No | Horizontal alignment ('left', 'center', 'right') | |
| vertical | No | Vertical alignment ('top', 'center', 'bottom') | |
| wrap_text | No | Enable text wrapping | |
| text_rotation | No | Text rotation angle (0-180) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||