TOOL API

doc.modify_paragraph

Modifies properties of existing paragraphs in a Tencent Docs document, such as alignment, line spacing, paragraph spacing, style, indentation, block quotes and numbering. Use insert_tasks_with_content to add new task items and insert_paragraph to add new list items instead. Call resolve_document_structure first to get the document structure and correct position indexes. Only pass the fields you want to change; unset fields keep their current values. indent, block_quote, numbering and highlight_block are standalone operations and cannot be combined with other properties in the same call. 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 credits

Call information

Tool slug
tencent-docs.doc.modify_paragraph
Provider
Tencent Docs
Average response
0 ms
Calls in 7 days
0

Input parameters

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

段落样式名称

rangesrequired

段落范围列表

spacing_after

段后间距(磅)

spacing_before

段前间距(磅)

version_info

版本参数