分类

Word文本提取器

从Word文档中提取文本内容,支持格式选项、段落选择和多语言处理

Click to upload file or drag and drop file here

Maximum file size: 50MB Supported formats: application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/msword

支持最大50MB的Word文档(.docx, .doc)

指定要提取的段落(1-10为范围,5为单段落,1,3,5为多段落)。留空则提取所有段落。

尽可能保持原始布局、间距和格式

清理多余的空格和换行符

为提取的文本添加行号

API 文档

请求端点

POST /zh/api/tools/word-text-extractor

请求参数

参数名 类型 必填 描述
wordFile file (需要先上传) 支持最大50MB的Word文档(.docx, .doc)
paragraphRange text 指定要提取的段落(1-10为范围,5为单段落,1,3,5为多段落)。留空则提取所有段落。
outputFormat select -
preserveFormatting checkbox 尽可能保持原始布局、间距和格式
removeExtraWhitespace checkbox 清理多余的空格和换行符
includeLineNumbers checkbox 为提取的文本添加行号
encoding select -

文件类型参数需要先通过 POST /upload/word-text-extractor 上传获取 filePath,然后将 filePath 传递给对应的文件字段。

响应格式

{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}
文本: 文本

AI MCP 文档

将此工具添加到您的 MCP 服务器配置中:

{
  "mcpServers": {
    "elysiatools-word-text-extractor": {
      "name": "word-text-extractor",
      "description": "从Word文档中提取文本内容,支持格式选项、段落选择和多语言处理",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=word-text-extractor",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。

支持 URL 文件链接或 Base64 编码作为文件参数。

如果遇见问题,请联系我们:[email protected]