Skip to content

Tools Reference

You do not call these tools directly. Claude calls them for you when you describe what you want to do. The examples below show what to say to Claude and what happens behind the scenes.

The tools fall into three groups:

GroupToolsUse this
Bulk (recommended)extract_divi_text, extract_wordpress_text, submit_bulk_translationAlways
Utilityget_translation_status, server_infoFor status and debugging
Legacy (deprecated)start_divi_translation, start_wordpress_translation, submit_translationAvoid — may fail on large documents

Reads a Divi page file from disk, tokenises the content (separating shortcodes from translatable text), and returns the text in numbered chunk blocks ready for translation.

Parameters:

ParameterTypeRequiredDescription
inputPathstringAbsolute path to the source Divi file
outputPathstringAbsolute path where the translated file will be saved
targetLangstringTarget language code (e.g. fr, de, es)

Returns:

  • extractionId — a 16-character hex identifier for this session (e.g. 41167e5c31ab74c1)
  • The full text to translate, wrapped in {{CHUNK_XXX}} / {{/CHUNK_XXX}} markers

Example prompt:

Translate the Divi file to French:
- inputPath: /home/user/pages/home.txt
- outputPath: /home/user/pages/home.fr.txt
- targetLang: fr
Use extract_divi_text, translate keeping the {{CHUNK_XXX}} markers, then use submit_bulk_translation.

Connects to the WordPress database, retrieves a post by ID, and returns its content plus metadata (title, slug, excerpt) in chunk format.

Parameters:

ParameterTypeRequiredDescription
postIdintegerWordPress post ID
targetLangstringTarget language code

Returns:

  • extractionId — session identifier
  • Post metadata block (title, slug, excerpt) in {{POST_TITLE}}, {{POST_SLUG}}, {{POST_EXCERPT}} markers
  • Post content in {{CHUNK_XXX}} markers

Example output format:

POST METADATA (translate these too):
======================================
{{POST_TITLE}}
Welcome to Our Store
{{/POST_TITLE}}
{{POST_SLUG}}
welcome-to-our-store
{{/POST_SLUG}}
{{POST_EXCERPT}}
Discover our products and services.
{{/POST_EXCERPT}}
CONTENT TO TRANSLATE:
=====================
{{CHUNK_001}}
<h2>Our story</h2>
<p>We have been building...</p>
{{/CHUNK_001}}

Example prompt:

Translate WordPress post ID 42 to Spanish.
Use extract_wordpress_text, translate keeping all markers, then use submit_bulk_translation.

Receives the extractionId from a previous extraction and the complete translated text. The server matches each chunk by its number, reassembles the original Divi structure, and writes the output file (or updates the WordPress post).

Parameters:

ParameterTypeRequiredDescription
extractionIdstringThe ID returned by extract_divi_text or extract_wordpress_text
translatedTextstringThe full translated content with all {{CHUNK_XXX}} markers preserved

Example:

{
"extractionId": "41167e5c31ab74c1",
"translatedText": "{{CHUNK_001}}\n<h2>Notre histoire</h2>\n<p>Nous construisons depuis...</p>\n{{/CHUNK_001}}"
}

The complete bulk workflow is three steps:

1. extract_divi_text / extract_wordpress_text
↓ returns extractionId + text with {{CHUNK_XXX}} markers
2. Claude translates the text
↓ (no tool calls during translation)
3. submit_bulk_translation(extractionId, translatedText)
↓ server reassembles and writes output

Shows the current state of any active translation session: how many chunks have been processed, how many remain, and what file is being translated.

Parameters: none

Example prompt:

“What is the current translation status?”


Returns the server version, MCP protocol version, MySQL connection status, number of active sessions, and the list of available tools.

Parameters: none

Example prompt:

“Run server_info”

Example output:

Divi Translator MCP v4.4.0
Protocol: 2025-11-25
MySQL: connected (wp_mysite)
Active sessions: 0
Tools: extract_divi_text, extract_wordpress_text, submit_bulk_translation,
get_translation_status, server_info, start_divi_translation,
start_wordpress_translation, submit_translation

These tools translate documents chunk by chunk, requiring one tool call per chunk. They can fail on large documents when Claude’s context window fills up. Use the bulk tools instead.

ToolDescription
start_divi_translationStarts a file-based translation, returns the first chunk
start_wordpress_translationStarts a WordPress post translation, returns the first chunk
submit_translationSubmits the current chunk translation and returns the next chunk