wps-mcp
v2026.11.30WPS Writer, ET and WPP automation for AI clients
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
wps_components
connect: Connect to a native WPS component, launching it when needed. detect: Inspect platform prerequisites without starting applications.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_documents
list: List the full_name identifiers of documents open in one component. create: Create a Writer document, ET workbook or WPP presentation. open: Open a local document; reject a duplicate already open in WPS. save: Save once through WPS, preserving existing destination bytes on failure. Supply file_path for unsaved documents. Replacing a different existing file requires overwrite. A failed native operation may already have changed WPS. close: Close one document with an explicit save or discard choice. info: Read document identity, save state and component-specific structure. export_pdf:…
| Parameter | Type | Description |
|---|---|---|
params * |
wps_et_charts
list: List chart objects on a worksheet. add: Create a native WPS chart from a worksheet range. Geometry is in points. configure: Update a chart's source range, chart type, title or legend. delete: Delete a chart object from a worksheet.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_et_conditional_formats
list: List bounded conditional formats using relative rule indices. add: Append a supported rule while preserving existing formats. update: Verify a styled replacement before deleting the original rule. WPS Modify can silently remove a rule. Preparation failures clean up only the new rule. Once deletion of the old rule starts, failures retain the verified replacement and report partial state instead of discarding the only remaining valid rule. delete: Delete exactly one rule, requiring its complete applies_to range.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_et_names
list: List scoped names while distinguishing formula and external names. set: Bind a scoped name to a local rectangular worksheet range. Existing formula or external names cannot be overwritten. read: Read local range identity and optional bounded cell values. delete: Remove a local range name while preserving its cell contents.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_et_pivot_tables
list: List native pivot tables on the selected worksheet. create: Create a native report from this workbook's literal-header rectangle. Destination columns and all columns to their right must contain no data or other tables. This reserves space for native report growth. On the same worksheet, source data must lie entirely to the left of the destination. configure: Replace validated pivot fields and grand-total settings. Uses the existing local cache source. All output columns must be free of content outside this pivot; source data must stay outside those columns. Refresh explicitly after s…
| Parameter | Type | Description |
|---|---|---|
params * |
wps_et_ranges
read: Read cell values and optionally formulas, bounded by max_cells. write_values: Write an exact rectangular matrix of literal values. Strings never become formulas; null clears cells. write_formulas: Write an exact matrix of explicit formulas and nullable cells. A1 formulas must begin with =; null clears a cell. WPS evaluates expressions. format: Set fonts, fills, borders, number formats, alignment and dimensions. Width/height affect entire columns/rows. merge: Merge or unmerge cells. Merging keeps only the upper-left value; data loss requires explicit opt-in. clear: Clear cell con…
wps_et_sheets
list: List worksheets in an open WPS ET workbook. add: Append a named worksheet to a WPS ET workbook. rename: Rename a worksheet without changing its contents. delete: Delete one worksheet while retaining a visible workbook sheet. The selected sheet and its cell contents are permanently removed. recalculate: Recalculate each worksheet of the selected workbook. freeze: Freeze leading worksheet rows or columns in its native window. Zero row and column counts unfreeze panes. The selected worksheet and window are activated.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_et_tables
list: List native structured tables and their exact column headers. create: Create a structured table while preserving source cell references. Literal headers and neighboring cells are preserved. WPS builds that insert an extra header row are handled only after proving the original headers moved intact. A native cut restores their references; only the confirmed empty inserted data row is then deleted. read: Read native table data while preserving cell text and boundaries. Read the whole table, including headers/totals, with a strict cell limit. resize: Resize a table while retaining its…
| Parameter | Type | Description |
|---|---|---|
params * |
wps_et_validation
read: Read one cell validation rule, prompts, and dropdown settings. set: Add or modify validated cell rules without deleting them first. The target must have uniform validation; use native Add or Modify. clear: Remove native validation while preserving target cell values.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_ppt_animation
copy: Copy effects between shapes on the same slide. transition: Set a transition and optional slide advance timing. add: Add an entrance, exit, emphasis or motion path effect. list: List main and interactive effects with sequence indices. remove: Delete an effect from a main or interactive sequence. clear: Clear all animation sequences and optionally the transition. update: Update one selected effect without retrying failed mutations.
wps_ppt_annotations
add_comment: Add a comment to a slide. Provide text, author name, and optional position. Uses the WPS Presentation Comments.Add API. comments: List all comments on a slide. Returns index, author, text, datetime, and position for each comment. delete_comment: Delete a comment from a slide by its 1-based index. Use wps_ppt_annotations/comments to find the comment index first. add_link: Add a hyperlink to a shape. Supports URLs, file paths, mailto: links, and slide links (via sub_address). Set action_on to 'click' (default) or 'mouseover' for the trigger type. For slide links, use sub_addr…
| Parameter | Type | Description |
|---|---|---|
params * |
wps_ppt_app
selection: Read the current selection in the target window. set_view: Set the WPS Presentation view type and/or zoom level. info: Read the active editor presentation and the default tool target. window: Read the target window, current slide and selection. set_window: Restore, minimize or maximize WPS Presentation.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_ppt_charts
add: Add a chart to a slide. Creates a chart with the specified type and position. Supported types: column, bar, line, pie, scatter, area, doughnut, radar, bubble, 3d_column, 3d_pie, 3d_line, and variants (e.g. column_stacked, line_markers, pie_exploded). You can also pass an XlChartType integer. All positions and sizes are in points (72 points = 1 inch). set_data: Update the chart data range and verify plotted values. This WPS version cannot resize chart series or categories. Counts must match the existing chart, whose source must be a first-sheet column layout: headers in row 1, categorie…
wps_ppt_connectors
add: Connect named shapes with a straight, elbow or curved connector. Sites are one-based indices or top/bottom/left/right directions. Both endpoints are resolved before the new connector is created. format: Set line and arrowhead properties and optionally reconnect endpoints.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_ppt_document
set_tag: Set a tag (key-value pair) on a shape, slide, or presentation. tags: Get all tags from a shape, slide, or presentation. activate: Choose the presentation used by calls without a document. templates: List local WPS and PowerPoint templates without WPS. set_properties: Update built-in document properties, preserving whitespace. properties: Read built-in properties; unavailable properties are null.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_ppt_export
shape: Export a verified shape image to an unused pathname. images: Export images and report requested indices, rendered indices and IDs. clipboard: Copy images and report requested indices, positions and IDs. preview: Return PNG bytes for serialization by the MCP adapter.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_ppt_freeform
build: Create a freeform path using lines or Bézier segments. For auto curves x1/y1 are the endpoint. Corner curves use x1/y1 and x2/y2 as control points and x3/y3 as the endpoint. close_path adds a straight segment back to the starting point. nodes: Read freeform positions, control points and closing nodes. move_node: Move a node and any linked smooth-mode control points. insert_node: Insert a segment and shift subsequent node indices. delete_node: Delete a node's segment or a control point's curve. set_editing: Set node editing mode, allowing control points to reposition. set_segment…
wps_ppt_history
undo: Undo recent actions in WPS Presentation. Performs one or more undo operations. Stops early if no more actions can be undone. Returns the number of actions actually undone. redo: Redo recently undone actions in WPS Presentation. Performs one or more redo operations. Stops early if no more actions can be redone. Returns the number of actions actually redone. begin: Start a new undo entry in WPS Presentation. Call this before a batch of operations so that all subsequent changes can be undone with a single Ctrl+Z. Useful for grouping multiple tool calls into one undoable action.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_ppt_layout
align: Align shapes to each other or relative to slide edges. distribute: Distribute shapes evenly between the outermost shapes or slide edges. get_size: Read slide dimensions in points and inches, preset and orientation. set_size: Apply a size preset, explicit point dimensions, then orientation. background: Set slide backgrounds after validating every slide and any image file. Runtime failures are recorded per slide; already completed backgrounds are retained. flip: Mirror a shape and report its horizontal and vertical flip state. merge: Merge shapes using union, combine, intersect, su…
| Parameter | Type | Description |
|---|---|---|
params * |
wps_ppt_media
add: Use the same WPS insertion contract for audio and video. configure: Set playback, fades and verified native trim points.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_ppt_pictures
search_icons: Search Google's Material Symbols icon library by keyword. crop: Crop a picture shape — rectangular trim and/or crop-to-shape. format: Apply picture brightness, contrast, color and transparency. add_url: Download and embed a picture; fit preserves its aspect ratio. add_icon: Download a public Material icon and embed it using the chosen color. add: Add an image from a file path to a slide.
wps_ppt_placeholders
list: List all placeholders on a slide. Returns index, type, name, position, size, and text preview for each placeholder on the specified slide. get: Get detailed information about a specific placeholder. Find by placeholder_index (1-based) or placeholder_type (e.g. 'title', 'body', 'subtitle', or a PpPlaceholderType int). Returns text content, formatting, and position info. set_text: Set text in a placeholder. Find by placeholder_index (1-based) or placeholder_type (e.g. 'title', 'body', 'subtitle'). Use \n for paragraph breaks. designs: List all designs (slide masters) in the presentat…
| Parameter | Type | Description |
|---|---|---|
params * |
wps_ppt_sections
add: Add a section, warning when an existing section becomes empty. list: List sections; empty sections have null slide boundaries. manage: Rename, move or remove a section while retaining slides.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_ppt_shapes
select: Resolve all named shapes before changing the current selection. lock_aspect_ratio: Lock or unlock the aspect ratio of a shape. copy: Copy a shape from one slide to another slide. Copies the shape via the clipboard and pastes it onto the destination slide. The original shape remains on the source slide. Identify the shape by name (string) or 1-based index (int). group: Replace at least two top-level shapes with a single group. ungroup: Replace a group with its child shapes and return their names. group_items: Read child names, reusable group paths, types and geometry in points. a…
wps_ppt_slides
set_hidden: Set a slide as hidden or visible in the slideshow. add: Add a new slide to the active presentation. To add a slide that looks just like an existing one, pass like_slide_index — it inherits that slide's exact design + layout with no layout-name ambiguity (this only copies the look, not the content; use wps_ppt_slides/duplicate for a full copy). This is the recommended path. Otherwise pass layout_name (a friendly name such as 'blank', 'title', 'title_only', or a custom layout name from the slide master) or layout (a PpSlideLayout integer constant; a name passed here is treated l…
wps_ppt_slideshow
start: Start a show and restore its stored settings afterwards. stop: Stop the selected presentation's slide show, if it is running. next: Advance to the next animation or slide in the selected show. previous: Return to the previous slide in the selected show. goto: Navigate to an absolute slide in the selected show. status: Read the selected presentation's show state.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_ppt_smartart
add: Create SmartArt and populate every requested node. modify: Edit a SmartArt node or apply a diagram-wide style. options: List available SmartArt options in the WPS locale.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_ppt_style
set_default: Set future shape defaults from a template or explicit properties. copy: Copy formatting from a source shape to one or more target shapes. Uses PickUp/Apply to transfer fill, line, shadow, and other visual formatting from the source shape to each target shape on the same slide. Identify shapes by name (string) or 1-based index (int). apply: Preflight all options and shapes, then apply each change in order. Native failures are reported per shape and operation. Successful changes remain applied; a failed native operation may have partially changed its target and is never automati…
wps_ppt_tables
add: Add a table to a slide. Creates a table with the specified number of rows and columns. All positions and sizes are in points (72 points = 1 inch). get_data: Get all cell text values from a table. Returns a 2D array of cell text, plus row and column counts. Identify the table by shape name or 1-based shape index. set_cell: Set text and/or formatting for a table cell. Access cell by 1-based row and column. Optionally set font properties, text alignment, and cell background color. set_data: Batch-set table cell text from a 2D array. Writes multiple cells at once: data=[["Q1","$1.2M"],…
wps_ppt_text
set: Replace text spans or formatted runs using native UTF-16 offsets. get: Read text, UTF-16 positions, formatting and optional measurements. format: Set font properties on all text in a shape. format_range: Validate all spans before applying font properties in order. paragraph: Set alignment, spacing, and indentation on one or all paragraphs. bullets: Set list numbering, nesting, font and color overrides. replace: Find or replace original matches using one-based UTF-16 spans. frame: Set auto-fit, margins, wrapping, orientation, and vertical alignment. all: Extract Markdown and option…
wps_ppt_themes
replace_font: Replace a font throughout the selected presentation. fonts: List all fonts used in the active presentation. set_fonts: Set separate Latin and East Asian fonts across the deck. apply: Apply a theme file to the selected presentation. colors: Read all twelve colors from the first slide master. set_colors: Apply validated colors to every slide master. Explicit slots override a preset, which overrides generated colors. headers_footers: Set slide footers; fixed date text overrides its format.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_writer_bookmarks
list: List document bookmarks with their names, text and native ranges. add: Create a named bookmark over a validated UTF-16 interval. Set replace_existing explicitly to move an existing bookmark. delete: Delete a bookmark without deleting its text.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_writer_comments
list: Paginate native comments with their separate document anchors. Use start_index and count to paginate one-based comment indices. add: Add a range comment with optional author and initials. update: Update comment text or attribution while preserving its anchor. delete: Delete selected original comments or an explicit entire set. Set all=true explicitly to select the entire collection.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_writer_cross_references
targets: List valid bookmark names or native heading and note indices. insert: Insert and verify a native reference while restoring selection. Supported targets are bookmarks, headings, footnotes, and endnotes. Use targets immediately before inserting: non-bookmark indices follow WPS's cross-reference dialog order. Preserve the target selection and previous window; return field_index only after confirming a new reference at the requested position. list: List supported reference fields in the main document story. Include REF, PAGEREF, and note-reference fields. update: Refresh one unlocke…
| Parameter | Type | Description |
|---|---|---|
params * |
wps_writer_images
add: Embed a local image as an inline shape. Sizes use points; one dimension preserves aspect ratio, two set an explicit size.
| Parameter | Type | Description |
|---|---|---|
params * | object |
wps_writer_mail_merge
inspect: Inspect native merge state, fields, and source schema. Connected data source record values are omitted. field: Insert one validated native merge field at a UTF-16 position. The position is zero-based; existing text is not replaced. connect: Connect an existing local CSV as a read-only form-letter source. The source remains attached until disconnect; keep it available on disk. A current source must be disconnected first. Arbitrary SQL and connection strings are not accepted. Export spreadsheet data to CSV first; native XLSX selection cannot run unattended. execute: Merge a record…
| Parameter | Type | Description |
|---|---|---|
params * |
wps_writer_notes
list: List one native note kind with separate anchor and text offsets. add: Insert a footnote or endnote at a main-story position. Native numbering is used unless reference_mark is supplied. update: Replace a note's literal text without replacing its reference mark. delete: Delete one note and its corresponding main-story reference. WPS renumbers the remaining notes.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_writer_pages
sections: List sections and current page dimensions/margins in points. setup: Set section dimensions, margins, and orientation in points. Header and footer distances also use points. read_header_footer: Read one header or footer variant and its preceding-section link. write_header_footer: Replace header/footer text. Defaults to unlinking the preceding section; enabling link_to_previous also edits linked sections. First/even variants enable their page settings. insert_break: Insert a supported native break at a UTF-16 position. Supported kinds are page, line, next-page section, and conti…
| Parameter | Type | Description |
|---|---|---|
params * |
wps_writer_revisions
state: Read native revision tracking and document revision count. configure: Configure tracking for future edits without resolving revisions. list: List revision metadata with native UTF-16 text boundaries. Each item includes its author, date, native type, and text range. accept: Accept selected original revisions or an explicit entire set. Set all=true explicitly to select the entire collection. reject: Reject selected original revisions or an explicit entire set. Set all=true explicitly to select the entire collection.
| Parameter | Type | Description |
|---|---|---|
params * |
wps_writer_statistics
read: Read native document counts and UTF-16 content boundaries. Includes WPS page, word, character, and document structure counts.
| Parameter | Type | Description |
|---|---|---|
params * | object |
wps_writer_styles
list: List native styles with optional kind, usage, and origin filters. read: Read formatting by local name or a negative built-in style ID. create: Create a style after validating all inheritance dependencies. update: Update native style inheritance and formatting for existing uses. apply: Apply a supported native style to a validated UTF-16 interval. Only paragraph, linked, and character styles apply to text ranges. delete: Delete a custom style using native replacement formatting.
wps_writer_tables
list: List native table bounds including tables with merged cells. read: Read every table cell with its row, column and text. Preserves meaningful trailing whitespace and handles merged cells. add: Insert a rectangular table at a native position. Zero/false are retained; null creates an empty cell. Indices start at one. write: Preflight every target cell before writing literal table data. The target rectangle must fit an existing unmerged table. change: Insert or delete a table row/column. Insert before position or omit to append; deletion requires a position. delete: Delete the selec…
| Parameter | Type | Description |
|---|---|---|
params * |
wps_writer_text
read: Read main-story text using native UTF-16 range boundaries. Positions are zero-based UTF-16 units and end is exclusive. An omitted end reads to the document end. WPS paragraph and control markers are retained. paragraphs: Read paragraphs with native range positions. Collection indices start at one. insert: Insert literal text at a collapsed native UTF-16 position. Use a carriage return for a paragraph break. replace: Replace a native text interval while preserving whitespace. The selected interval uses an inclusive start and exclusive end. delete: Delete a native [start, end) text…
| Parameter | Type | Description |
|---|---|---|
params * |
wps_writer_toc
list: List contents tables with one-based indices and native positions. add: Insert a contents table from supported native heading levels. The insertion range is collapsed and heading levels are limited to 1..9. update: Refresh one TOC's entries and pages, or only its page numbers. delete: Delete only the specified TOC, including its generated content.
| Parameter | Type | Description |
|---|---|---|
params * |