SERVICE & TOOLS
Excel
Excel files — create, read, modify with formulas, formatting, charts, pivot tables
29 available tools
download_ excel_ file
使用示例: download_excel_file(file_id="a1b2c3d4")
apply_ formula
Apply Excel formula in a cell Parameters: - file_id: File ID - sheet_name: Worksheet name - cell: Cell address (e.g., "A1") - formula: Excel formula (e.g., "=SUM(A1:A10)") Returns: - Operation resul…
create_ table
从指定数据范围创建Excel表格 参数: - file_id: 文件ID - sheet_name: 工作表名称 - data_range: 数据范围 - table_name: 表格名称(可选) - table_style: 表格样式(默认 "TableStyleMedium9")
create_ workbook
参数: - filename: 文件名(默认 "new_workbook.xlsx")
format_ range
Format a range of cells Parameters: - file_id: File ID - sheet_name: Sheet name - start_cell: Starting cell - end_cell: Ending cell (optional) - bold: Bold or not - it…
list_ excel_ files
使用示例: list_excel_files()
read_ data_ from_ excel
Read Excel worksheet data. Parameters: file_id (file ID), sheet_name (worksheet name), start_cell (starting cell, default A1), end_cell (ending cell, optional), preview_only (whether to return preview…
write_ data_ to_ excel
使用示例: write_data_to_excel( file_id="a1b2c3d4", sheet_name="Sheet1", data=[["姓名", "年龄"], ["张三", 25], ["李四", 30]], start_cell="A1" )
copy_ range
Copy cell range to another location. Parameters: - file_id: File ID; - sheet_name: Source sheet name; - source_start: Source range start cell; - source_end: Source range end cell; - target_start: Targ…
copy_ worksheet
Copy worksheet. Parameters: - file_id: File ID; - source_sheet: Source sheet name; - target_sheet: Target sheet name
create_ chart
Create chart in worksheet Parameters: - file__id: File ID - sheet_name: Sheet name - data_range: Data range (e.g., "A1:D10") - chart_type: Chart type (bar, line, pie, scatter, etc.) - target_cell: Ch…
create_ pivot_ table
Create pivot table Parameters: - file_id: File ID - sheet_name: Sheet name - data_range: Data range - rows: Row field list - values: Value field list - columns: Column field list (optional) - agg_fun…
create_ worksheet
Create a new worksheet in a workbook. Parameters: file_id, sheet_name
delete_ excel_ file
使用示例: delete_excel_file(file_id="a1b2c3d4")
delete_ range
Delete a range of cells and shift remaining cells Parameters: - file_id: File ID - sheet_name: Sheet name - start_cell: Start cell - end_cell: End cell - shift_direction: Shift direction ("up" or "le…
delete_ sheet_ columns
Delete columns Parameters: - file_id: File ID - sheet_name: Sheet name - start_col: Starting column number - count: Number of columns to delete (default 1)
delete_ sheet_ rows
Delete rows Parameters: - file_id: File ID - sheet_name: Sheet name - start_row: Starting row number - count: Number of rows to delete (default 1)
delete_ worksheet
Delete worksheet Parameters: - file_id: File ID - sheet_name: Name of the worksheet to delete
get_ data_ validation_ info
Get all data validation rules in a worksheet Parameters: - file_id: File ID - sheet_name: Sheet name
get_ merged_ cells
Get all merged cells in a worksheet Parameters: - file_id: File ID - sheet_name: Sheet name
get_ workbook_ metadata
Get workbook metadata, including worksheet list, ranges, etc. Parameters: - file_id: File ID - include_ranges: Include range information or not
insert_ columns
Insert columns Parameters: - file_id: File ID - sheet_name: Sheet name - start_col: Starting column number - count: Number of columns to insert (default 1)
insert_ rows
Insert rows Parameters: - file_id: File ID - sheet_name: Sheet name - start_row: Starting row number - count: Number of rows to insert (default 1)
merge_ cells
Merge cell range Parameters: - file_id: File ID - sheet_name: Sheet name - start_cell: Start cell - end_cell: End cell
rename_ worksheet
Rename worksheet
unmerge_ cells
Unmerge cells Parameters: - file_id: File ID - sheet_name: Sheet name - start_cell: Start cell - end_cell: End cell
upload_ excel_ file
参数: - file_url: Excel 文件来源(支持 .xlsx, .xls)。**支持两种形式**: 1) http(s):// 公网 URL,例如 https://example.com/data.xlsx 2) RFC 2397 data: URI,例如 `data:application/vnd.openxmlformat…
validate_ excel_ range
Validate if range exists and format is correct Parameters: - file_id: File ID - sheet_name: Sheet name - start_cell: Start cell - end_cell: End cell (optional)
validate_ formula_ syntax
Validate Excel formula syntax (not applied) Parameters: - file_id: File ID - sheet_name: Sheet name - cell: Cell address - formula: Formula to validate