TOOL API
doc. insert_ code_ block
Inserts a native code block into a Tencent Docs document at the given position, with an optional language tag for syntax highlighting. Pass the raw code directly without markdown fences; common leading indentation is removed automatically. Call resolve_document_structure or get_last_operable_pos first to get the correct insertion 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.insert_code_block
- Provider
- Tencent Docs
- Average response
- 0 ms
- Calls in 7 days
- 0
Input parameters
coderequired代码内容
file_id在线文档DOC的文档唯一标识符(与file_url二选一)
file_url腾讯文档的URL链接(推荐),与file_id二选一
idxrequired插入位置索引
language代码语言标签
version_info版本参数