工具 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.

productivityOAuth1 积分

调用信息

工具标识
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

版本参数