Document Tools
Extract text content from Word documents with support for formatting options, paragraph selection, and multi-language processing
Appelez cet outil depuis votre code en trois langages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/word-text-extractor' \
-F 'file=@/path/to/wordFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/fr/api/tools/word-text-extractor' \
-F 'wordFile=/path/to/file.ext' \
-F 'paragraphRange=e.g., 1-10 or 5 or 1,3,5' \
-F 'outputFormat=plain' \
-F 'preserveFormatting=true' \
-F 'removeExtraWhitespace=false' \
-F 'includeLineNumbers=false' \
-F 'encoding=utf-8'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/word-text-extractor| Nom | Type | Requis | Description |
|---|---|---|---|
| wordFile | fileupload requis | Oui | Supports Word documents (.docx, .doc) up to 50MB |
| paragraphRange | text | Non | Specify paragraphs to extract (1-10 for range, 5 for single paragraph, 1,3,5 for multiple). Leave empty for all paragraphs. |
| outputFormat | select | Non | — |
| preserveFormatting | checkbox | Non | Keep original layout, spacing, and formatting as much as possible |
| removeExtraWhitespace | checkbox | Non | Clean up excessive spaces and line breaks |
| includeLineNumbers | checkbox | Non | Add line numbers to the extracted text |
| encoding | select | Non | — |
Résultat texte
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-word-text-extractor": {
"name": "word-text-extractor",
"description": "Extract text content from Word documents with support for formatting options, paragraph selection, and multi-language processing",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=word-text-extractor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "word-text-extractor",
"arguments": {
"wordFile": "https://example.com/file.ext",
"paragraphRange": "e.g., 1-10 or 5 or 1,3,5",
"outputFormat": "plain",
"preserveFormatting": true,
"removeExtraWhitespace": false,
"includeLineNumbers": false,
"encoding": "utf-8"
}
}
}Des questions ou un problème ? Contactez [email protected]