Skip to main content

Calc capabilities

Calc has the largest toolset of the three applications. The full per-tool list, with the risk level of each, is on Agent tools.

These 42 tools are specific to Calc. Tools shared by all applications are on Agent tools.

Advanced​

ToolWhat it doesChanges the documentRisk
build_dashboardRenders an entire spreadsheet dashboard from a structured CalcPlan in a SINGLE tool call.yesmedium
create_chartCreates a chart from a data range.yesmedium
create_pivot_tableCreates a pivot table on a new sheet from source data.yesmedium
execute_scriptRuns arbitrary Python UNO code in LibreOffice Calc.yeshigh

Analysis​

ToolWhat it doesChanges the documentRisk
get_spreadsheet_infoGets metadata for all sheets: names, used ranges, row/column counts.nolow
read_spreadsheetReads cell values and formulas from a sheet or named range.nolow

Annotation​

ToolWhat it doesChanges the documentRisk
insert_cell_commentInserts or removes a comment on a cell.yeslow

Editing​

ToolWhat it doesChanges the documentRisk
auto_filterApplies or removes an AutoFilter on a data range.yeslow
clear_rangeClears cell contents, formatting, or both in a range.yesmedium
data_validationSets data validation rules on a cell range.yesmedium
find_replace_cellsFinds and replaces text or values across Calc cells.yesmedium
insert_hyperlinkInserts a clickable URL hyperlink into a cell.yeslow
remove_duplicatesRemoves duplicate rows from a range based on one or more columns.yeshigh
sort_rangeSorts a cell range by a column.yesmedium
text_to_columnsSplits text in a column by a delimiter into multiple columns.yesmedium
transpose_rangeCopies a source range and pastes it transposed (rows become columns, columns become rows) at a target cell.yesmedium
write_cellsWrites values, formulas, or text to cells as a 2-D array.yesmedium

Export​

ToolWhat it doesChanges the documentRisk
export_csvExports the active sheet as a CSV file.nohigh
export_xlsxExports the spreadsheet as an Excel .xlsx file to the given path.nohigh

Formatting​

ToolWhat it doesChanges the documentRisk
conditional_formatApplies conditional formatting rules to a cell range.yesmedium
format_cellsFormats cell appearance: bold, italic, font size, text/background color, number format, alignment, borders.yeslow
freeze_panesFreezes rows and/or columns so they stay visible when scrolling.yeslow
hide_show_columnsHides or shows columns by index range.yeslow
hide_show_rowsHides or shows rows by index range.yeslow
merge_cellsMerges or unmerges a range of cells.yesmedium
set_column_widthSets the width of a column in cm.yeslow
set_print_areaDefines or clears the print area on a sheet.yeslow
set_row_heightSets the height of a row in cm.yeslow

Import​

ToolWhat it doesChanges the documentRisk
import_csvImports a CSV file as a NEW sheet in the current spreadsheet.yesmedium

Media​

ToolWhat it doesChanges the documentRisk
insert_imageInsert an image onto the active Calc sheet from a local file or URL.yesmedium
insert_shapeInsert a drawing shape onto the active Calc sheet.yesmedium

Structure​

ToolWhat it doesChanges the documentRisk
add_sheetAdds a new empty sheet to the spreadsheet.yesmedium
copy_sheetCopies an existing sheet (with all data and formatting) to a new name within the same spreadsheet.yeshigh
create_named_rangeDefines a named range in the spreadsheet.yeslow
delete_columnsDeletes N columns starting at the given 0-based column index.yesmedium
delete_rowsDeletes N rows starting at the given 0-based row index.yesmedium
delete_sheetDeletes a sheet by name.yeshigh
group_rows_columnsGroups or ungroups rows/columns for outline view.yeslow
insert_columnsInserts N empty columns to the left of the given 0-based column index.yesmedium
insert_rowsInserts N empty rows above the given 0-based row index.yesmedium
protect_sheetProtects or unprotects a sheet with an optional password.yesmedium
rename_sheetRenames a sheet from old_name to new_name.yeslow