工具 API
doc. modify_ paragraph
修改已有段落的属性(DOC),支持设置对齐方式、行间距、段前段后间距、段落样式、缩进、引用、编号等。本工具用于在原有段落上修改属性,如需添加新的待办事项内容请使用 insert_tasks_with_content,如需添加新的列表项目请使用 insert_paragraph。ranges 为段落范围列表,每项包含 begin 和 end(字符位置索引)。所有属性均为可选,只传入需要修改的字段即可,未传入的字段保持原样。使用前请先调用 resolve_document_structure 获取文档结构以确定正确的位置索引。注意:indent、block_quote、numbering、highlight_block 为独立操作,与其他属性互斥,不可同时传入。 if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to let the user pick the target account before invoking this tool.
调用信息
- 工具标识
- tencent-docs.doc.modify_paragraph
- 服务提供方
- 腾讯文档
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
block_quote设置引用
file_id在线文档DOC的文档唯一标识符(与file_url二选一)
file_url腾讯文档的URL链接(推荐),与file_id二选一
first_line_indent首行缩进(磅pt),传0或负值取消。与first_line_indent_chars二选一,chars优先
first_line_indent_chars首行缩进(字符数),传0或负值取消。与first_line_indent二选一,本参数优先
has_block_quote是否显式设置引用
has_first_line_indent是否显式设置first_line_indent
has_first_line_indent_chars是否显式设置first_line_indent_chars
has_line_spacing是否显式设置行间距
has_spacing_after是否显式设置段后间距
has_spacing_before是否显式设置段前间距
highlight_block高亮块操作
indent缩进操作:increase/decrease
jc对齐方式:left/center/right/both/distribute
line_spacing行间距数值
line_spacing_rule行间距规则:1=auto,2=exact,3=atLeast
numbering编号类型:bullet/decimal/task/none
numbering_level编号级别(1-9)
p_style段落样式名称
ranges必填段落范围列表
spacing_after段后间距(磅)
spacing_before段前间距(磅)
version_info版本参数