TOOL API

doc.set_table_layout

Sets row heights and column widths for a table in a Tencent Docs document, locating the table by the GCP position of any cell inside it. Use mode=auto to fit columns evenly to the page width (any col_widths_dxa you pass is ignored and row heights are left unchanged), or mode=manual to set each row and column from the dxa arrays, where 0 keeps the existing value. In manual mode you must call get_table_info first to get the current row_count, col_count, row heights and cell widths before choosing target values; auto mode needs no lookup. Call resolve_document_structure first to find the correct position index. 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.set_table_layout
Provider
Tencent Docs
Average response
0 ms
Calls in 7 days
0

Input parameters

col_widths_dxa

每列列宽(dxa)

file_id

在线文档DOC的文档唯一标识符(与file_url二选一)

file_url

腾讯文档的URL链接(推荐),与file_id二选一

idxrequired

表格内任意cell的GCP位置

moderequired

布局模式:auto/manual

row_heights_dxa

每行行高(dxa)

version_info

版本参数