style_cells
Format spreadsheet cell ranges by applying bold, italic, font, size, text color, fill, alignment, and number format codes. Pass only the styles you need; others remain unchanged.
Instructions
Format a cell range (e.g. "A1:E1"). bold/italic, text color, cell
fill, size (pt), font, align (left|center|right), and
number_format (a Calc format code, e.g. "$#,##0", "0.0%",
"$#,##0;RED"). Only the args you pass are applied.
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>",
"range": "<range>"
},
"name": "style_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | ||
| fill | No | ||
| font | No | ||
| size | No | ||
| align | No | ||
| color | No | #222222 | |
| range | Yes | ||
| sheet | No | ||
| doc_id | Yes | ||
| italic | No | ||
| number_format | No |