工具 API

format_text

格式化段落中的特定文本范围 参数: - file_id: 文件ID - paragraph_index: 段落索引 - start_pos: 起始位置 - end_pos: 结束位置 - font_name: 字体名称 - font_size: 字体大小 - bold: 是否加粗 - italic: 是否斜体 - underline: 是否下划线 - color: 文本颜色(十六进制) 返回: - 操作结果 使用示例: format_text(file_id="a1b2c3d4", paragraph_index=0, start_pos=0, end_pos=10, bold=True, color="FF0000")

其他1 积分

调用信息

工具标识
word.format_text
服务提供方
Word
平均响应
0 ms
近 7 天调用
0

输入参数

file_id必填

string

paragraph_index必填

integer

start_pos必填

integer

end_pos必填

integer

font_name

string

font_size

integer

bold

boolean

italic

boolean

underline

boolean

color

string