123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167 |
- [
- {
- "name": "add_paragraph_to_docx",
- "description": "向Word文档添加段落",
- "parameters": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string",
- "description": "段落内容"
- }
- },
- "required": ["text"]
- }
- },
- {
- "name": "create_new_document",
- "description": "创建一个新的Word文档",
- "parameters": {
- "type": "object",
- "properties": {},
- "required": []
- }
- },
- {
- "name": "save_document",
- "description": "保存Word文档",
- "parameters": {
- "type": "object",
- "properties": {
- "file_path": {
- "type": "string",
- "description": "文档保存路径"
- }
- },
- "required": ["file_path"]
- }
- },
- {
- "name": "set_global_font",
- "description": "设置文档的全局字体",
- "parameters": {
- "type": "object",
- "properties": {
- "font_name": {
- "type": "string",
- "description": "字体名称"
- },
- "font_size": {
- "type": "number",
- "description": "字体大小(磅)"
- },
- "font_color": {
- "type": "string",
- "description": "字体颜色(RGB格式,如'FF0000'表示红色)"
- }
- }
- }
- },
- {
- "name": "open_document",
- "description": "打开现有的Word文档",
- "parameters": {
- "type": "object",
- "properties": {
- "file_path": {
- "type": "string",
- "description": "文档路径"
- }
- },
- "required": ["file_path"]
- }
- },
- {
- "name": "add_heading",
- "description": "添加标题",
- "parameters": {
- "type": "object",
- "properties": {
- "text": {
- "type": "string",
- "description": "标题文本"
- },
- "level": {
- "type": "integer",
- "description": "标题级别(1-9)",
- "default": 1
- }
- },
- "required": ["text"]
- }
- },
- {
- "name": "add_table",
- "description": "添加表格",
- "parameters": {
- "type": "object",
- "properties": {
- "rows": {
- "type": "integer",
- "description": "表格行数"
- },
- "cols": {
- "type": "integer",
- "description": "表格列数"
- },
- "data": {
- "type": "array",
- "description": "表格数据,二维数组,每个元素代表一个单元格的内容",
- "items": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "required": ["rows", "cols"]
- }
- },
- {
- "name": "add_picture",
- "description": "添加图片",
- "parameters": {
- "type": "object",
- "properties": {
- "image_path": {
- "type": "string",
- "description": "图片文件路径"
- },
- "width": {
- "type": "number",
- "description": "图片宽度(厘米)"
- },
- "height": {
- "type": "number",
- "description": "图片高度(厘米)"
- }
- },
- "required": ["image_path"]
- }
- },
- {
- "name": "add_page_break",
- "description": "添加分页符",
- "parameters": {
- "type": "object",
- "properties": {},
- "required": []
- }
- },
- {
- "name": "set_paragraph_style",
- "description": "设置段落样式",
- "parameters": {
- "type": "object",
- "properties": {
- "paragraph_index": {
- "type": "integer",
- "description": "段落索引"
- },
- "style_name": {
- "type": "string",
- "description": "样式名称"
- }
- },
- "required": ["paragraph_index", "style_name"]
- }
- },
- {
- "name": "set_font",
- "description": "设置文本字体",
- "parameters": {
- "type": "object",
- "properties": {
- "paragraph_index": {
- "type": "integer",
- "description": "段落索引"
- },
- "run_index": {
- "type": "integer",
- "description": "文本运行索引"
- },
- "font_name": {
- "type": "string",
- "description": "字体名称"
- },
- "font_size": {
- "type": "integer",
- "description": "字体大小"
- },
- "bold": {
- "type": "boolean",
- "description": "是否加粗"
- },
- "italic": {
- "type": "boolean",
- "description": "是否斜体"
- },
- "underline": {
- "type": "boolean",
- "description": "是否下划线"
- },
- "color": {
- "type": "string",
- "description": "字体颜色,如'FF0000'表示红色"
- }
- },
- "required": ["paragraph_index", "run_index"]
- }
- },
- {
- "name": "set_paragraph_alignment",
- "description": "设置段落对齐方式",
- "parameters": {
- "type": "object",
- "properties": {
- "paragraph_index": {
- "type": "integer",
- "description": "段落索引"
- },
- "alignment": {
- "type": "string",
- "description": "对齐方式:LEFT, CENTER, RIGHT, JUSTIFY",
- "enum": ["LEFT", "CENTER", "RIGHT", "JUSTIFY"]
- }
- },
- "required": ["paragraph_index", "alignment"]
- }
- },
- {
- "name": "set_paragraph_spacing",
- "description": "设置段落间距",
- "parameters": {
- "type": "object",
- "properties": {
- "paragraph_index": {
- "type": "integer",
- "description": "段落索引"
- },
- "before": {
- "type": "integer",
- "description": "段前间距(磅)"
- },
- "after": {
- "type": "integer",
- "description": "段后间距(磅)"
- },
- "line_spacing": {
- "type": "number",
- "description": "行间距(倍数)"
- }
- },
- "required": ["paragraph_index"]
- }
- },
- {
- "name": "add_section",
- "description": "添加新的节",
- "parameters": {
- "type": "object",
- "properties": {
- "start_type": {
- "type": "string",
- "description": "节的开始类型:NEW_PAGE, EVEN_PAGE, ODD_PAGE, CONTINUOUS",
- "enum": ["NEW_PAGE", "EVEN_PAGE", "ODD_PAGE", "CONTINUOUS"]
- }
- },
- "required": []
- }
- },
- {
- "name": "set_section_orientation",
- "description": "设置节的页面方向",
- "parameters": {
- "type": "object",
- "properties": {
- "section_index": {
- "type": "integer",
- "description": "节索引"
- },
- "orientation": {
- "type": "string",
- "description": "页面方向:PORTRAIT, LANDSCAPE",
- "enum": ["PORTRAIT", "LANDSCAPE"]
- }
- },
- "required": ["section_index", "orientation"]
- }
- },
- {
- "name": "set_section_page_size",
- "description": "设置节的页面大小",
- "parameters": {
- "type": "object",
- "properties": {
- "section_index": {
- "type": "integer",
- "description": "节索引"
- },
- "width": {
- "type": "number",
- "description": "页面宽度(厘米)"
- },
- "height": {
- "type": "number",
- "description": "页面高度(厘米)"
- }
- },
- "required": ["section_index", "width", "height"]
- }
- },
- {
- "name": "set_section_margins",
- "description": "设置节的页边距",
- "parameters": {
- "type": "object",
- "properties": {
- "section_index": {
- "type": "integer",
- "description": "节索引"
- },
- "top": {
- "type": "number",
- "description": "上边距(厘米)"
- },
- "right": {
- "type": "number",
- "description": "右边距(厘米)"
- },
- "bottom": {
- "type": "number",
- "description": "下边距(厘米)"
- },
- "left": {
- "type": "number",
- "description": "左边距(厘米)"
- }
- },
- "required": ["section_index"]
- }
- },
- {
- "name": "add_header",
- "description": "添加页眉",
- "parameters": {
- "type": "object",
- "properties": {
- "section_index": {
- "type": "integer",
- "description": "节索引"
- },
- "text": {
- "type": "string",
- "description": "页眉文本"
- }
- },
- "required": ["section_index", "text"]
- }
- },
- {
- "name": "add_footer",
- "description": "添加页脚",
- "parameters": {
- "type": "object",
- "properties": {
- "section_index": {
- "type": "integer",
- "description": "节索引"
- },
- "text": {
- "type": "string",
- "description": "页脚文本"
- }
- },
- "required": ["section_index", "text"]
- }
- },
- {
- "name": "add_page_number",
- "description": "添加页码",
- "parameters": {
- "type": "object",
- "properties": {
- "section_index": {
- "type": "integer",
- "description": "节索引"
- },
- "position": {
- "type": "string",
- "description": "页码位置:HEADER, FOOTER",
- "enum": ["HEADER", "FOOTER"]
- },
- "alignment": {
- "type": "string",
- "description": "页码对齐方式:LEFT, CENTER, RIGHT",
- "enum": ["LEFT", "CENTER", "RIGHT"]
- },
- "format": {
- "type": "string",
- "description": "页码格式:如'第 {0} 页',其中{0}将被替换为页码"
- }
- },
- "required": ["section_index", "position"]
- }
- },
- {
- "name": "merge_table_cells",
- "description": "合并表格单元格",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引"
- },
- "start_row": {
- "type": "integer",
- "description": "起始行索引"
- },
- "start_col": {
- "type": "integer",
- "description": "起始列索引"
- },
- "end_row": {
- "type": "integer",
- "description": "结束行索引"
- },
- "end_col": {
- "type": "integer",
- "description": "结束列索引"
- }
- },
- "required": ["table_index", "start_row", "start_col", "end_row", "end_col"]
- }
- },
- {
- "name": "set_table_cell_text",
- "description": "设置表格单元格文本",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引"
- },
- "row": {
- "type": "integer",
- "description": "行索引"
- },
- "col": {
- "type": "integer",
- "description": "列索引"
- },
- "text": {
- "type": "string",
- "description": "单元格文本"
- }
- },
- "required": ["table_index", "row", "col", "text"]
- }
- },
- {
- "name": "set_table_style",
- "description": "设置表格样式",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引"
- },
- "style_name": {
- "type": "string",
- "description": "样式名称"
- }
- },
- "required": ["table_index", "style_name"]
- }
- },
- {
- "name": "set_table_cell_background",
- "description": "设置表格单元格背景色",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引"
- },
- "row": {
- "type": "integer",
- "description": "行索引"
- },
- "col": {
- "type": "integer",
- "description": "列索引"
- },
- "color": {
- "type": "string",
- "description": "背景颜色,如'FF0000'表示红色"
- }
- },
- "required": ["table_index", "row", "col", "color"]
- }
- },
- {
- "name": "set_table_cell_vertical_alignment",
- "description": "设置表格单元格垂直对齐方式",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引"
- },
- "row": {
- "type": "integer",
- "description": "行索引"
- },
- "col": {
- "type": "integer",
- "description": "列索引"
- },
- "alignment": {
- "type": "string",
- "description": "垂直对齐方式:TOP, CENTER, BOTTOM",
- "enum": ["TOP", "CENTER", "BOTTOM"]
- }
- },
- "required": ["table_index", "row", "col", "alignment"]
- }
- },
- {
- "name": "set_table_width",
- "description": "设置表格宽度",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引"
- },
- "width": {
- "type": "number",
- "description": "表格宽度(厘米)"
- }
- },
- "required": ["table_index", "width"]
- }
- },
- {
- "name": "set_table_column_width",
- "description": "设置表格列宽",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引"
- },
- "col": {
- "type": "integer",
- "description": "列索引"
- },
- "width": {
- "type": "number",
- "description": "列宽(厘米)"
- }
- },
- "required": ["table_index", "col", "width"]
- }
- },
- {
- "name": "add_hyperlink",
- "description": "添加超链接",
- "parameters": {
- "type": "object",
- "properties": {
- "paragraph_index": {
- "type": "integer",
- "description": "段落索引"
- },
- "text": {
- "type": "string",
- "description": "链接文本"
- },
- "url": {
- "type": "string",
- "description": "链接URL"
- }
- },
- "required": ["paragraph_index", "text", "url"]
- }
- },
- {
- "name": "add_bookmark",
- "description": "添加书签",
- "parameters": {
- "type": "object",
- "properties": {
- "paragraph_index": {
- "type": "integer",
- "description": "段落索引"
- },
- "bookmark_name": {
- "type": "string",
- "description": "书签名称"
- },
- "text": {
- "type": "string",
- "description": "书签文本"
- }
- },
- "required": ["paragraph_index", "bookmark_name", "text"]
- }
- },
- {
- "name": "add_table_of_contents",
- "description": "添加目录",
- "parameters": {
- "type": "object",
- "properties": {
- "title": {
- "type": "string",
- "description": "目录标题"
- },
- "levels": {
- "type": "integer",
- "description": "包含的标题级别数",
- "default": 3
- }
- },
- "required": ["title"]
- }
- },
- {
- "name": "set_table_borders",
- "description": "设置表格边框样式",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引"
- },
- "border_style": {
- "type": "string",
- "description": "边框样式,可选值: 'single', 'thick', 'double', 'dotted', 'dashed', 'none'",
- "enum": ["single", "thick", "double", "dotted", "dashed", "none"],
- "default": "single"
- },
- "border_width": {
- "type": "number",
- "description": "边框宽度,单位为磅",
- "default": 1
- },
- "border_color": {
- "type": "string",
- "description": "边框颜色,十六进制RGB值,如'000000'表示黑色",
- "default": "000000"
- },
- "apply_to": {
- "type": "string",
- "description": "应用边框的位置,可选值: 'all', 'outside', 'inside', 'top', 'bottom', 'left', 'right'",
- "enum": ["all", "outside", "inside", "top", "bottom", "left", "right"],
- "default": "all"
- },
- "first_row": {
- "type": "boolean",
- "description": "是否为第一行应用特殊边框",
- "default": false
- },
- "first_column": {
- "type": "boolean",
- "description": "是否为第一列应用特殊边框",
- "default": false
- },
- "last_row": {
- "type": "boolean",
- "description": "是否为最后一行应用特殊边框",
- "default": false
- },
- "last_column": {
- "type": "boolean",
- "description": "是否为最后一列应用特殊边框",
- "default": false
- }
- },
- "required": ["table_index"]
- }
- },
- {
- "name": "set_cell_borders",
- "description": "设置单元格边框样式",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引"
- },
- "row": {
- "type": "integer",
- "description": "行索引"
- },
- "col": {
- "type": "integer",
- "description": "列索引"
- },
- "border_style": {
- "type": "string",
- "description": "边框样式,可选值: 'single', 'thick', 'double', 'dotted', 'dashed', 'none'",
- "enum": ["single", "thick", "double", "dotted", "dashed", "none"],
- "default": "single"
- },
- "border_width": {
- "type": "number",
- "description": "边框宽度,单位为磅",
- "default": 1
- },
- "border_color": {
- "type": "string",
- "description": "边框颜色,十六进制RGB值,如'000000'表示黑色",
- "default": "000000"
- },
- "apply_to": {
- "type": "string",
- "description": "应用边框的位置,可选值: 'all', 'top', 'bottom', 'left', 'right'",
- "enum": ["all", "top", "bottom", "left", "right"],
- "default": "all"
- }
- },
- "required": ["table_index", "row", "col"]
- }
- },
- {
- "name": "add_table_standard_borders",
- "description": "为表格添加标准边框(所有单元格都有边框)",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引"
- }
- },
- "required": ["table_index"]
- }
- },
- {
- "name": "copy_excel_to_word",
- "description": "将Excel表格复制到Word文档",
- "parameters": {
- "type": "object",
- "properties": {
- "excel_path": {
- "type": "string",
- "description": "Excel文件路径"
- },
- "word_path": {
- "type": "string",
- "description": "Word文件路径,如果为null则创建新文档"
- },
- "sheet_name": {
- "type": "string",
- "description": "要复制的工作表名称,如果为null则复制第一个工作表"
- },
- "output_path": {
- "type": "string",
- "description": "输出Word文件路径,如果为null则覆盖原文件"
- }
- },
- "required": ["excel_path"]
- }
- },
- {
- "name": "copy_excel_range_to_word",
- "description": "将Excel表格的指定区域复制到Word文档",
- "parameters": {
- "type": "object",
- "properties": {
- "excel_path": {
- "type": "string",
- "description": "Excel文件路径"
- },
- "word_path": {
- "type": "string",
- "description": "Word文件路径,如果为null则创建新文档"
- },
- "sheet_name": {
- "type": "string",
- "description": "要复制的工作表名称"
- },
- "range_str": {
- "type": "string",
- "description": "要复制的单元格区域,如'A1:C5'"
- },
- "output_path": {
- "type": "string",
- "description": "输出Word文件路径,如果为null则覆盖原文件"
- }
- },
- "required": ["excel_path", "sheet_name", "range_str"]
- }
- },
- {
- "name": "add_table_row",
- "description": "在Word文档中的表格添加一行",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引,默认为第一个表格",
- "default": 0
- },
- "position": {
- "type": "integer",
- "description": "要插入行的位置,如果为null则添加到表格末尾"
- }
- },
- "required": ["table_index", "position"]
- }
- },
- {
- "name": "add_table_column",
- "description": "在Word文档中的表格添加一列",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引,默认为第一个表格",
- "default": 0
- },
- "position": {
- "type": "integer",
- "description": "要插入列的位置,如果为null则添加到表格末尾"
- }
- },
- "required": ["table_index", "position"]
- }
- },
- {
- "name": "delete_table_row",
- "description": "删除Word文档中表格的一行",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引,默认为第一个表格",
- "default": 0
- },
- "row_index": {
- "type": "integer",
- "description": "要删除的行索引"
- }
- },
- "required": ["table_index", "row_index"]
- }
- },
- {
- "name": "delete_table_column",
- "description": "删除Word文档中表格的一列",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引,默认为第一个表格",
- "default": 0
- },
- "column_index": {
- "type": "integer",
- "description": "要删除的列索引"
- }
- },
- "required": ["table_index", "column_index"]
- }
- },
- {
- "name": "get_table_dimensions",
- "description": "获取表格的维度(行数和列数)",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引,默认为第一个表格",
- "default": 0
- }
- },
- "required": ["table_index"]
- }
- },
- {
- "name": "get_table_cell_text",
- "description": "获取表格单元格的文本内容",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引,默认为第一个表格",
- "default": 0
- },
- "row": {
- "type": "integer",
- "description": "行索引",
- "default": 0
- },
- "col": {
- "type": "integer",
- "description": "列索引",
- "default": 0
- }
- },
- "required": ["table_index", "row", "col"]
- }
- },
- {
- "name": "get_table_row",
- "description": "获取表格中一行的所有单元格文本",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引,默认为第一个表格",
- "default": 0
- },
- "row": {
- "type": "integer",
- "description": "行索引",
- "default": 0
- }
- },
- "required": ["table_index", "row"]
- }
- },
- {
- "name": "get_table_column",
- "description": "获取表格中一列的所有单元格文本",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引,默认为第一个表格",
- "default": 0
- },
- "col": {
- "type": "integer",
- "description": "列索引",
- "default": 0
- }
- },
- "required": ["table_index", "col"]
- }
- },
- {
- "name": "get_table_range",
- "description": "获取表格中指定范围的单元格文本",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引,默认为第一个表格",
- "default": 0
- },
- "start_row": {
- "type": "integer",
- "description": "起始行索引",
- "default": 0
- },
- "start_col": {
- "type": "integer",
- "description": "起始列索引",
- "default": 0
- },
- "end_row": {
- "type": "integer",
- "description": "结束行索引,如果为null则取最后一行"
- },
- "end_col": {
- "type": "integer",
- "description": "结束列索引,如果为null则取最后一列"
- }
- },
- "required": ["table_index", "start_row", "start_col"]
- }
- },
- {
- "name": "get_all_tables_info",
- "description": "获取文档中所有表格的基本信息",
- "parameters": {
- "type": "object",
- "properties": {}
- },
- "required": []
- },
- {
- "name": "set_table_data",
- "description": "批量设置表格数据",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引,默认为第一个表格",
- "default": 0
- },
- "data": {
- "type": "array",
- "description": "二维数组数据,如[[1,2,3],[4,5,6]]",
- "items": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "start_row": {
- "type": "integer",
- "description": "起始行索引",
- "default": 0
- },
- "start_col": {
- "type": "integer",
- "description": "起始列索引",
- "default": 0
- },
- "clear_existing": {
- "type": "boolean",
- "description": "是否清除现有内容",
- "default": false
- }
- },
- "required": ["table_index", "data", "start_row", "start_col", "clear_existing"]
- }
- },
- {
- "name": "set_table_row_data",
- "description": "设置表格一行的数据",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引,默认为第一个表格",
- "default": 0
- },
- "row": {
- "type": "integer",
- "description": "行索引",
- "default": 0
- },
- "data": {
- "type": "array",
- "description": "一维数组数据,如[1,2,3]",
- "items": {
- "type": "string"
- }
- },
- "start_col": {
- "type": "integer",
- "description": "起始列索引",
- "default": 0
- },
- "clear_existing": {
- "type": "boolean",
- "description": "是否清除现有内容",
- "default": false
- }
- },
- "required": ["table_index", "row", "data", "start_col", "clear_existing"]
- }
- },
- {
- "name": "set_table_column_data",
- "description": "设置表格一列的数据",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引,默认为第一个表格",
- "default": 0
- },
- "col": {
- "type": "integer",
- "description": "列索引",
- "default": 0
- },
- "data": {
- "type": "array",
- "description": "一维数组数据,如[1,2,3]",
- "items": {
- "type": "string"
- }
- },
- "start_row": {
- "type": "integer",
- "description": "起始行索引",
- "default": 0
- },
- "clear_existing": {
- "type": "boolean",
- "description": "是否清除现有内容",
- "default": false
- }
- },
- "required": ["table_index", "col", "data", "start_row", "clear_existing"]
- }
- },
- {
- "name": "clear_table_range",
- "description": "清除表格中指定范围的内容",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引,默认为第一个表格",
- "default": 0
- },
- "start_row": {
- "type": "integer",
- "description": "起始行索引",
- "default": 0
- },
- "start_col": {
- "type": "integer",
- "description": "起始列索引",
- "default": 0
- },
- "end_row": {
- "type": "integer",
- "description": "结束行索引,如果为null则取最后一行"
- },
- "end_col": {
- "type": "integer",
- "description": "结束列索引,如果为null则取最后一列"
- }
- },
- "required": ["table_index", "start_row", "start_col", "end_row", "end_col"]
- }
- },
- {
- "name": "get_table_detail_by_id",
- "description": "获取表格的详细信息,包括所有单元格的内容和基本格式",
- "parameters": {
- "type": "object",
- "properties": {
- "table_index": {
- "type": "integer",
- "description": "表格索引,默认为第一个表格",
- "default": 0
- }
- },
- "required": ["table_index"]
- }
- }
- ]
|