tencent-local-office-edit

Edit local Office and WPS documents in real time through the editor_sdk MCP service.

68|25|Updated Jul 24, 2026
One-click install
npx skills add https://github.com/rojim666/SztuCode --skill tencent-local-office-edit-rojim666
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tencent-local-office-edit
Source: https://github.com/rojim666/SztuCode/tree/main/py-runtime/src/sztu_code/core/prompts/workbuddy/skills/tencent-local-office-edit
Command: npx skills add https://github.com/rojim666/SztuCode --skill tencent-local-office-edit-rojim666

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Editing local Word, Excel, and PowerPoint files programmatically usually means blind batch scripts with no visual feedback. This Skill connects to a locally running editor_sdk MCP service so an agent can open, edit, and save Office/WPS files on disk while the user watches every change live in the editor preview. ## Core Features & Use Cases - Three document categories: doc tools (37) for Word/WPS text documents, sheet tools (51) for Excel spreadsheets, and slide tools (77) for PowerPoint presentations, covering formats like docx, xlsx, pptx, csv, and wps. - Real-time visible editing: files opened via present_files appear in the user's preview panel, edits stream live, and save_file persists changes without closing the user's view. - Safe spreadsheet writes: hard rules require probing the used range and inserting dimensions before writing, preventing silent overwrites of existing data, hyperlinks, and styles. - Use Case: Ask the agent to append two rows of sales data to a local xlsx file; it probes the used range, inserts rows at the correct position, writes the values, and saves while you watch. ## Quick Start Open my local report.docx in the preview panel and insert a summary paragraph at the beginning, then save it.

Frequently Asked Questions about tencent-local-office-edit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I edit a local docx or xlsx file with an AI agent?▼

Present the file with present_files so it appears in the preview panel, then resolve its file_id via get_pool_status and call the doc_ or sheet_ tools through edsdk.py. Finish with save_file; do not call close_file or the user's live view closes.

How do I add rows to an Excel file without overwriting data?▼

First call sheet_get_used_range to find the real boundary, then sheet_insert_dimension to create empty rows, and only then write values with sheet_set_range_value. Writing directly into the used range silently overwrites existing content, hyperlinks, and styles.

Which Office and WPS file formats are supported?▼

Supported formats include doc/docx/dot/wps/wpt for documents, xls/xlsx/xlt/csv/tsv for spreadsheets, and ppt/pptx/pps/pot for slides. Macro-enabled formats open but macros do not execute, and WPS-specific et/ett/dps/dpt formats are unsupported.

Why must I run edsdk.py schema before calling an edit tool?▼

Each tool has required parameters and coordinate conventions such as UTF-16 offsets for doc and 0-based indices with pt units for slide. Querying the schema for the specific tool prevents parameter errors that occur when guessing from one-line summaries.

Why are my edits not visible in the preview panel?▼

This happens when open_file creates a separate background instance instead of reusing the one registered by present_files. Resolve the UUID file_id from get_pool_status after presenting, and avoid calling open_file again on an already-presented file.