set_borders
Apply or clear borders on a Google Sheets range. Specify style, color, and outer or inner edges with a single command.
Instructions
Set borders on an A1 range.
style: SOLID | SOLID_MEDIUM | SOLID_THICK | DASHED |
DOTTED | DOUBLE | NONE (use NONE to clear). top/bottom/
left/right are the outer edges; inner_* set borders between 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": {
"spreadsheet_id": "<spreadsheet_id>",
"range": "<range>"
},
"name": "set_borders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| left | No | ||
| color | No | #000000 | |
| range | Yes | ||
| right | No | ||
| style | No | SOLID | |
| bottom | No | ||
| inner_vertical | No | ||
| spreadsheet_id | Yes | ||
| inner_horizontal | No |