excel_set_alignment
Set cell alignment and text layout options, including horizontal/vertical alignment, wrapping, indent, rotation, and fit, for cells in an Excel worksheet.
Instructions
Set cell alignment
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": {
"filename": "<filename>",
"worksheet": "<worksheet>",
"startCell": "<startCell>"
},
"name": "excel_set_alignment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indent | No | Indent level (0-255) | |
| endCell | No | End cell (optional) | |
| filename | Yes | Opened workbook name | |
| vertical | No | Vertical (top/middle/bottom/justify/distributed) | |
| wrapText | No | Wrap text | |
| startCell | Yes | Start cell (e.g., A1) | |
| worksheet | Yes | Worksheet name | |
| horizontal | No | Horizontal (left/center/right/fill/justify/distributed) | |
| shrinkToFit | No | Shrink to fit | |
| textRotation | No | Rotation angle (0-180) |