工具 API

slide_move_slide

将一个或多个幻灯片页面移动至演示文稿中的新位置。请务必首先调用 slide_get_sections 和 slide_get_info,以获取当前的章节列表和幻灯片索引。请在 before_slide_index 和 after_section_id 这两个参数中仅选择其中一个进行提供,以指定被移动幻灯片的最终落点位置。(SLIDE) 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.slide_move_slide
服务提供方
腾讯文档
平均响应
0 ms
近 7 天调用
0

输入参数

after_section_id

现有幻灯片节的 ID。适用于非空和空的幻灯片节——当目标节还没有幻灯片时,请使用 after_section_id(空节没有 first_slide_index,因此 before_slide_index 无法准确地定位它们)。传递空字符串 "" 可以将幻灯片移动到演示文稿的最开头。与 before_slide_index 互斥

before_slide_index

基于 0 的幻灯片索引。被移动的幻灯片将被插入到当前位于该索引位置的幻灯片之前(即被移动的第一张幻灯片最终将占据该索引位置)。若要将幻灯片移动至第 i 个章节的开头,请传入该章节的 first_slide_index(此时被移动的幻灯片将成为该章节新的首张幻灯片,并将原有的首张幻灯片向后顺延)。取值范围:[0, slide_count];若传入 slide_count,则表示将幻灯片追加至整个演示文稿的末尾。与 after_section_id 互斥

file_id

文档ID,与 file_url 二选一

file_url

在线幻灯片URL,与 file_id 二选一

page_indices

待移动幻灯片的 0-based 页索引列表(整数数组),长度 >= 1