Tencent Docs
Paste the following prompt into your AI chat to install this skill:
Please install @tencent-adm/tencent-docs according to the guide at https://skillhub.cn/install/skillhub.md.
About this skill
The Problem to Solve
When building automation workflows or AI Agents, there's a frequent need to programmatically create, read, or edit cloud documents. However, different document types (e.g., PPT, Excel, Smart Canvas) have their own distinct APIs and internal structures. Developers must adapt to multiple API endpoints, handling varied parameters and return formats, which introduces significant integration complexity and maintenance overhead. A specific and common need is how to efficiently and securely operate on all file types within the Tencent Docs ecosystem using a unified approach.
How the Skill Works
The Tencent Docs MCP skill encapsulates this complexity into a structured set of tools and routing rules.
1. Document Type Routing & Tool Set Separation
The skill's core is the Scenario Routing Table. It first identifies the document category (e.g., sheet, slide, smartcanvas) via file ID or link prefix, then strictly routes to the corresponding tool set. For example:
- For PPT / Slides (file link contains
/slide/or when "presentation" is mentioned), it must use theslide-mcpservice'sslide_*tools and follow its dedicated workflow. - For Smart Canvas, use
create_smartcanvas_by_mdxfor creation orsmartcanvas.*tools for editing. - For Excel, it uses the
sheet-mcp'ssheet.*tools.
This design ensures each document type is handled by APIs specifically designed for it, preventing structural corruption from using incorrect tools (corresponding to error code 400016).
2. Key Workflows
- Document Creation: Routes to corresponding
create_*methods based on intent keywords (e.g., "report," "PPT," "mind map"). For instance, usecreate_mind_by_markdownfor mind maps andcreate_flowchart_by_mermaidfor flowcharts. - Content Editing & Management: Editing requires first determining the original file type before using the appropriate tools. File management operations (rename, move, permissions) use the
manage.*tool set. - Batch Operations: To optimize performance and cost, when performing consecutive multiple writes to the same document (e.g., inserting multiple rows into a sheet), the skill mandates using batch interfaces (like
smartsheet.add_records) for a single submission instead of looping through single-write interfaces.
3. Public Capabilities & Conversions
The skill also provides cross-type public capabilities:
- get_content: A universal interface for reading document content.
- Web Clipping: Converts URL content into a Smart Canvas document via scrape_url.
- Local File Upload: Uses the import_file.sh script to import local files.
- OCR Image Recognition: Converts images into Word or Excel documents.
Applicable Boundaries & Caveats
- Special Case for PPT Tasks: All PPT-related needs (generation, editing, continuation) must be handled through the
slide-mcp's dedicated tool chain. Usingdoc-mcpor general tools will result in incorrect content or behavior. - Authorization & Quotas: Local authorization must be completed before use (error code
400006). Lack of VIP permissions (400007) or credits (400008) will restrict certain functions. - Parameters & Formats: The
mdxparameter in document creation tools directly supports Markdown syntax. For OCR, you must choose between a public URL or base64; local images must be processed via a specific script. - Asynchronous Tasks: For asynchronous operations like web clipping, it's recommended to use a dedicated sub-session for polling to avoid blocking the main interaction flow.
Essentially, this skill serves as a protocol layer for developers. It aggregates disparate document APIs logically and enforces best practices (like type matching and batch writes), making it possible to build reliable document automation workflows.
Use Cases
- When a product manager needs to create a multi-page presentation with charts and animations from scratch, they use the slide-mcp workflow, defining structure via JSX and calling slide_* tools to generate the final PPT.
- When an operations specialist needs to merge data from multiple Excel sources and update a specific cell range in one go, they use the sheet-mcp's set_range_value batch interface, avoiding individual cell calls.
- When a content creator finds a technical article while browsing the web and wants to quickly save its full content as an editable smart canvas for later organization, they use the scrape_url web clipping workflow to automatically capture and convert it.
- When a data analyst receives scanned invoice images and needs to extract numbers and summarize them into an online sheet, they use the ocr.toexcel tool to recognize image content and generate a structured smart sheet.
Best For
- An operations analyst who needs to automatically aggregate sales data from multiple departments monthly and generate visual reports.
- A teacher designing course materials who wants to quickly convert Markdown student notes into a well-formatted online smart canvas for class access.
- A legal assistant who frequently processes scanned contract documents and hopes to use image OCR to quickly extract text and create editable Word documents.
- A market researcher who needs to regularly scrape competitor pricing information from multiple web pages and update it into a shared sheet.
Related Skills
User-driven slide design skill that strictly follows source material, features efficient building, and incorporates multi-stage quality assurance with critic loops.
Converts scripts into Jobins-style minimalist tech vertical HTML presentations with strong visual contrast and rhythm.
A PPT generation tool based on design systems, narrative direction, and industrialized delivery, ensuring presentations are structured, visually unified, and impactful.
Auto-formats Word documents to strictly comply with Bowei's internal style guide and the national standard GB/T 15834, fixing page layout, fonts, spacing, and Chinese punctuation automatically.